00001
00002
00003
00004
00005 #ifndef FROOT_TFndTofMonFrame
00006 #define FROOT_TFndTofMonFrame
00007
00009
00010
00011
00012
00013
00014
00015
00017
00018 #include "FROOT.h"
00019
00020
00021 #include <Riostream.h>
00022 #include "TObject.h"
00023
00024 #include "TString.h"
00025 #ifdef _FND_ONL_USE_MAP_FILES_
00026 #include "TMapFile.h"
00027 #endif
00028 #include "TFile.h"
00029 #include "TCanvas.h"
00030 #include "TButton.h"
00031 #include "TH2.h"
00032 #include "TH1.h"
00033 #include "TObjArray.h"
00034
00035 #include "TFndMonFrame.h"
00036
00037 class TFndTofMonFrame : public TFndMonFrame {
00038
00039 private:
00040
00041 Int_t fIO;
00042 Int_t fCurSlab;
00043 Int_t fNSlabs[2];
00044
00045 #if defined _FND_ONL_USE_MAP_FILES_
00046 TMapFile *fGenMapFile;
00047 TMapFile *fAdcMapFile;
00048 TMapFile *fTdcMapFile;
00049 #elif defined _FND_ONL_USE_SHARED_FILES_
00050 TFile *fGenMapFile;
00051 TFile *fAdcMapFile;
00052 TFile *fTdcMapFile;
00053 #endif
00054
00055 TPad *fSlabPad[5];
00056 TPad *fAllPad[2];
00057
00058 TButton *fSlabButton[84];
00059 TButton *fAllButton[9];
00060
00061 TH1F *hists;
00062 TH2F *h2;
00063
00064 Int_t fWhichGroup;
00065 Int_t fAllId;
00066
00067 private:
00068
00069 void Init();
00070 void DrawButtons();
00071 void ResetFrameColors();
00072 void DrawHist(Int_t opt, Int_t flg=0, Char_t *DrawOpt="");
00073
00074 public:
00075
00076 TFndTofMonFrame(TString filename=0);
00077 ~TFndTofMonFrame();
00078 void Open();
00079 void Close();
00080 Bool_t ReloadMapFiles();
00081
00082 Bool_t StartInterface(Int_t ring);
00083 void SelectSlab(Int_t s);
00084 void DisplayMaps();
00085 void DisplayHist();
00086 void DisplayAllHist(Int_t io, Int_t option);
00087 TButton *HighlightButtons(Int_t which_group,Int_t All_id=0);
00088 void RefreshSingleMonView();
00089
00090 ClassDef(TFndTofMonFrame,0)
00091 };
00092 #endif // FROOT_TFndTofMonFrame
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110
00111
00112
00113