00001
00002
00003
00004
00005 #ifndef FROOT_TFndLmdMonFrame
00006 #define FROOT_TFndLmdMonFrame
00007
00009
00010
00011
00012
00013
00014
00015
00016
00017
00019
00020 #include "FROOT.h"
00021
00022 #include <string.h>
00023 #include <Riostream.h>
00024 #include "TObject.h"
00025 #include "TBrowser.h"
00026 #include "TString.h"
00027 #ifdef _FND_ONL_USE_MAP_FILES_
00028 #include "TMapFile.h"
00029 #endif
00030 #include "TFile.h"
00031 #include "TButton.h"
00032 #include "TH1.h"
00033 #include "TH2.h"
00034 #include "TFndMonFrame.h"
00035
00036 class TCanvas;
00037 class TPad;
00038
00039 class TFndLmdMonFrame : public TFndMonFrame {
00040
00041 private:
00042
00043 Int_t fNWires;
00044 Int_t fIO;
00045 Int_t fdch;
00046 Int_t fwir;
00047
00048 #if defined _FND_ONL_USE_MAP_FILES_
00049 TMapFile *maps;
00050 TMapFile *iadc;
00051 TMapFile *itdc;
00052 TMapFile *oadc;
00053 TMapFile *otdc;
00054 #elif defined _FND_ONL_USE_SHARED_FILES_
00055 TFile *maps;
00056 TFile *iadc;
00057 TFile *itdc;
00058 TFile *oadc;
00059 TFile *otdc;
00060 #endif
00061
00062 TPad *fInnPad;
00063 TPad *fOutPad;
00064 TPad *fMultPad;
00065 TPad *fWirePad;
00066 TPad *fAllPad;
00067
00068 TButton *fChSelBut[16];
00069 TButton *fAllButton[11];
00070
00071 TButton *fWireBut[23];
00072 TButton *zoombutton[4];
00073
00074 TH1F *fhists;
00075 TH2F *h2;
00076 TH1D *sly;
00077
00078 Int_t fWhichGroup;
00079 Int_t fAllId;
00080
00081
00082
00083 void ResetFrameColors();
00084 void DrawButtons();
00085 void DrawHist(Int_t opt, Int_t flg=0,Char_t *DrawOpt="");
00086
00087 private:
00088 void Init();
00089
00090 public:
00091
00092 TFndLmdMonFrame(TString filename=0);
00093 ~TFndLmdMonFrame();
00094 void Open();
00095 void Close();
00096 Bool_t ReloadMapFiles();
00097
00098 Bool_t StartInterface();
00099 TButton *HighlightButtons(Int_t which_group,Int_t All_id=0);
00100 void RefreshSingleMonView();
00101
00102 void RebuildWirePad();
00103 void DrawWirePad();
00104 void SelectWire(Int_t w){ fwir=w; }
00105 void SelectChamber(Int_t io, Int_t d);
00106
00107 void DisplayMaps();
00108 void DisplayHist();
00109 void DisplayAllHist(Int_t io, Int_t option);
00110
00111 ClassDef(TFndLmdMonFrame,0)
00112 };
00113 #endif // FROOT_TFndLmdMonFrame