FEDRA emulsion software from the OPERA Collaboration
EGraphTool.h
Go to the documentation of this file.
1 #ifndef EGRAPHTOOL_H
2 #define EGRAPHTOOL_H 1
3 
4 #include <TApplication.h>
5 #include <TGClient.h>
6 #include <TGToolBar.h>
7 #include <TGMenu.h>
8 #include <TFile.h>
9 #include <TTree.h>
10 #include "EGraphRec.h"
11 #include <iostream>
12 
13 using namespace std;
14 using namespace TMath;
15 
16 class EGraphTool : public TGMainFrame {
17  public:
18 
19  EGraphTool (const TGWindow *p, UInt_t w, UInt_t h);
20  virtual ~EGraphTool();
21 
22  void ProcessEvent();
23  void ExitApplication();
24  Bool_t ProcessMessage(Long_t msg, Long_t param, Long_t);
25 
26  private:
27 
28  Int_t fEventId;
29  Int_t fEvtNumber;
31  TTree *fEvtTree;
32 
33  TGVerticalFrame *fMainFrame;
34  TGLayoutHints *fLayout1;
35  TGLayoutHints *fLayout2;
36  TGLayoutHints *fLayout3;
38  TGPopupMenu *fMenuFile;
39  TGToolBar *fToolBar;
40 
41  void DrawFrame();
42  void AddMenuBar(TGVerticalFrame *frame);
43  void InitVariables();
44  void InitDrawVariables();
45  void InitInputFile(TString inputFileName);
46  void CloseInputFile();
47 
48  ClassDef(EGraphTool,0)
49 };
50 
51 #endif
Definition: EGraphRec.h:24
Definition: EGraphTool.h:16
TFile * fInputTreeFile
Definition: EGraphTool.h:30
TGLayoutHints * fLayout1
Definition: EGraphTool.h:34
Int_t fEvtNumber
Definition: EGraphTool.h:29
TGLayoutHints * fLayout3
Definition: EGraphTool.h:36
TGVerticalFrame * fMainFrame
Definition: EGraphTool.h:33
TGPopupMenu * fMenuFile
Definition: EGraphTool.h:38
TTree * fEvtTree
Definition: EGraphTool.h:31
TGToolBar * fToolBar
Definition: EGraphTool.h:39
TGLayoutHints * fLayout2
Definition: EGraphTool.h:35
Int_t fEventId
Definition: EGraphTool.h:28
EGraphRec * fEmGraphRec
Definition: EGraphTool.h:37
p
Definition: testBGReduction_AllMethods.C:8
void w(int rid=2, int nviews=2)
Definition: test.C:27