#include #include #include #include #include #include #include #include #include #include #include #include #include class TGWindow; class TGMainFrame; class TRootEmbeddedCanvas; class MyMainFrame { RQ_OBJECT("MyMainFrame") private: TGMainFrame *fMain; TRootEmbeddedCanvas *fEcanvas; Int_t RadioId; // Bin selector 1=Angle bin, 2=Energy-bin Int_t FileId; // File selector char hnameB[128]; // histogram name BCAL char hnameF[128]; // histogram name FCAL char geomName[128]; // holds geometry tag char geomName1[128]; // holds geometry tag2 TFile *INF; char FileName[128]; TGLabel *FileLabel; TGLabel *UnitLabel; TGNumberEntry *InputBin[2]; Float_t InputVal; // input value [deg] or [GeV] Int_t Bin; // translation of InputVal into Bin number TH1D* hFcal; TH1D* hBcal; public: MyMainFrame(const TGWindow *p,UInt_t w,UInt_t h); virtual ~MyMainFrame(); Int_t DoDraw(); Int_t HandleRadioButtons(Int_t but); Int_t openFile(Int_t id); Int_t BinValueInput(); Int_t setGeomTag(Int_t id); };