GTS/TFndGtsMonFrame.h

00001 // @(#)fROOT/GTS:$Name:  $:$Id: TFndGtsMonFrame.h,v 1.12 2007/09/05 09:44:53 Diego_Faso Exp $
00002 // Revision Author: Diego Faso <mailto:faso@to.infn.it>, 2005/06/24
00003 // Original Author: P. Cerello <mailto:cerello@to.infn.it>, 2001
00004 
00005 #ifndef FROOT_TFndGtsMonFrame
00006 #define FROOT_TFndGtsMonFrame
00007 
00009 //                                                    //
00010 //                 TFndGtsMonFrame                    //
00011 //                                                    //
00012 //  GUI for the GTS monitoring                        //
00013 //                                                    //
00015 
00016 #include "FROOT.h"
00017 
00018 #include <Riostream.h>
00019 #ifdef _FND_ONL_USE_MAP_FILES_
00020 #include "TMapFile.h"
00021 #endif
00022 #include "TFile.h"
00023 #include "TCanvas.h"
00024 #include "TButton.h"
00025 #include "TFndMonFrame.h"
00026 #include "TH1.h"
00027 #include "TH2.h"
00028 
00029 
00030 class TFndGtsMonFrame : public TFndMonFrame {
00031 
00032 private:
00033 
00034   static const Int_t fNPads = 4;
00035   static const Int_t fNBut = 6;
00036 
00037 #if defined _FND_ONL_USE_MAP_FILES_
00038   TMapFile *fGtsMapFile;
00039 #elif defined _FND_ONL_USE_SHARED_FILES_
00040   TFile *fGtsMapFile;
00041 #endif
00042   
00043   TPad          *fButPad;
00044   TButton       *fSelBut[fNBut];
00045 
00046   /*   TH1F *hists[fNPads]; */
00047 
00048   Int_t fCurBut;
00049   //  TBrowser *fBrowser;
00050 
00051   void DrawButtons();
00052   void ResetFrameColors();
00053 
00054  public:
00055 
00056   TFndGtsMonFrame(TString filename=0);
00057   ~TFndGtsMonFrame();
00058 
00059   void Open();
00060   void Close();
00061   Bool_t ReloadMapFiles(); // return true if map-files were found
00062 
00063   Bool_t StartInterface();
00064   TButton *HighlightButtons();
00065   void RefreshSingleMonView();
00066 
00067   void DisplaySelector();
00068   void DisplayMalus();
00069   void DisplayPatternUnits_1_2();
00070   void DisplayPatternUnits_3_4();
00071   void Display_Tofino_MT();
00072   void Display_Tofone_MT();
00073 
00074  private:
00075   void Init();
00076   void ResetDisplayPad(Int_t dividex,Int_t dividey);
00077 
00078   ClassDef(TFndGtsMonFrame,0) // GUI for the GTS monitor
00079 };
00080 #endif // FROOT_TFndGtsMonFrame
00081 
00082 
00083 
00084 
00085 
00086 
00087 
00088 
00089 
00090 
00091 
00092 
00093 
00094 
00095 
00096 
00097 
00098 
00099 
00100 
00101 

Generated on Tue Oct 16 15:40:46 2007 by  doxygen 1.5.2