CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DialogFrame.h
Go to the documentation of this file.
1 #ifndef PF_DialogFrame_h
2 #define PF_DialogFrame_h
3 
4 #include <TGClient.h>
5 #include <TGButton.h>
6 #include <TGButtonGroup.h>
7 #include <TGDoubleSlider.h>
8 #include <TGNumberEntry.h>
9 #include <TGFrame.h>
10 #include <TGLabel.h>
11 #include <TButton.h>
12 #include <TCanvas.h>
13 #include <TMarker.h>
14 #include <TGraph.h>
15 #include <RQ_OBJECT.h>
16 
17 
18 #include <string>
19 
20 class PFRootEventManager;
21 class DisplayManager;
22 
23 class DialogFrame : public TGMainFrame {
24  RQ_OBJECT("DialogFrame")
25 
26  private:
27 
28  static const int EN=1; // id threshold energy field
29  static const int ENER=10; // id threshold energy slider
30  static const int MAXL=20;
31  static const int PARTTYPE=30;
32  static const int PFBLOCK=40;
33 
34 
36 
38  TGCompositeFrame *mainFrame_;
39  TGCompositeFrame *cmdFrame_;
40 
41 
42  TGCheckButton *selectObject_[8];
43  TGCheckButton *printButton_[7];
44  TGDoubleHSlider *thresholdS_[6];
45  TGNumberEntryField *threshEntry_[6];
46  TGNumberEntryField *maxLineEntry_;
47  TGNumberEntryField *particleTypeEntry_;
49  TGTextButton *reProcessButton;
50  //int eventNr_;
51  //int maxEvents_;
52  //TButton *Modify_;
53  //TButton *Cancel_;
54  TCanvas *attrView_;
55  TMarker *thisClusPattern_;
56  TGraph *trackPattern_;
58 
59 
60  public:
61  DialogFrame(PFRootEventManager *evman, DisplayManager *dm,const TGWindow *p,UInt_t w,UInt_t h);
62  virtual ~DialogFrame();
63 
64  void closeCanvasAttr();
65  void createCmdFrame();
66  void createCanvasAttr();
67  void doLookForGenParticle();
68  void doNextEvent();
69  void doPreviousEvent();
70  void doModifyOptions(unsigned obj);
71  void doModifyPtThreshold(unsigned obj,double val);
72  void isPFBlockVisible();
73  void areBremVisible();
74  void doPrint();
75  void doPrintGenParticles();
76  void doReProcessEvent();
77  void selectPrintOption(int opt);
78  //void modifyGraphicAttributes();
79  void modifyAttr();
80  void updateDisplay();
81  void unZoom();
82 
83  virtual bool ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
84  virtual void CloseWindow();
85 
86  ClassDef(DialogFrame,1)
87 };
88 #endif
virtual void CloseWindow()
Definition: DialogFrame.cc:305
void doModifyPtThreshold(unsigned obj, double val)
Definition: DialogFrame.cc:348
void doModifyOptions(unsigned obj)
Definition: DialogFrame.cc:318
TGTextButton * exitButton
Definition: DialogFrame.h:48
void doReProcessEvent()
Definition: DialogFrame.cc:395
TGNumberEntryField * threshEntry_[6]
Definition: DialogFrame.h:45
DialogFrame(PFRootEventManager *evman, DisplayManager *dm, const TGWindow *p, UInt_t w, UInt_t h)
Definition: DialogFrame.cc:26
TMarker * thisClusPattern_
Definition: DialogFrame.h:55
static const int MAXL
Definition: DialogFrame.h:30
TGTextButton * previousButton
Definition: DialogFrame.h:48
void areBremVisible()
Definition: DialogFrame.cc:407
TCanvas * attrView_
Definition: DialogFrame.h:54
TGCheckButton * selectObject_[8]
Definition: DialogFrame.h:42
TGNumberEntryField * particleTypeEntry_
Definition: DialogFrame.h:47
TGCompositeFrame * cmdFrame_
Definition: DialogFrame.h:39
static const int ENER
Definition: DialogFrame.h:29
void modifyAttr()
Definition: DialogFrame.cc:465
void doPrintGenParticles()
Definition: DialogFrame.cc:390
void createCanvasAttr()
Definition: DialogFrame.cc:56
virtual bool ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
Definition: DialogFrame.cc:478
TGCheckButton * printButton_[7]
Definition: DialogFrame.h:43
TGNumberEntryField * maxLineEntry_
Definition: DialogFrame.h:46
static const int PFBLOCK
Definition: DialogFrame.h:32
void updateDisplay()
Definition: DialogFrame.cc:444
TGraph * trackPattern_
Definition: DialogFrame.h:56
void closeCanvasAttr()
Definition: DialogFrame.cc:46
TGDoubleHSlider * thresholdS_[6]
Definition: DialogFrame.h:44
unsigned int UInt_t
Definition: FUTypes.h:12
void selectPrintOption(int opt)
Definition: DialogFrame.cc:415
DisplayManager * display_
Definition: DialogFrame.h:37
TGTextButton * nextButton
Definition: DialogFrame.h:48
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
TGCompositeFrame * mainFrame_
Definition: DialogFrame.h:38
void createCmdFrame()
Definition: DialogFrame.cc:94
void doPrint()
Definition: DialogFrame.cc:385
void doPreviousEvent()
Definition: DialogFrame.cc:377
void doLookForGenParticle()
Definition: DialogFrame.cc:311
TGraph * simplePartPattern_
Definition: DialogFrame.h:57
void isPFBlockVisible()
Definition: DialogFrame.cc:401
void unZoom()
Definition: DialogFrame.cc:450
static const int EN
Definition: DialogFrame.h:28
virtual ~DialogFrame()
Definition: DialogFrame.cc:343
PFRootEventManager * evMan_
Definition: DialogFrame.h:35
T w() const
TGTextButton * reProcessButton
Definition: DialogFrame.h:49
ROOT interface to particle flow package.
void doNextEvent()
Definition: DialogFrame.cc:369
static const int PARTTYPE
Definition: DialogFrame.h:31