EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FairBoxSetEditor.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file FairBoxSetEditor.h
1 // -------------------------------------------------------------------------
2 // ----- FairBoxSetEditor header file -----
3 // ----- Created 26/03/09 by T. Stockmanns -----
4 // -------------------------------------------------------------------------
5 
6 
18 #ifndef FairBoxSetEditor_H
19 #define FairBoxSetEditor_H
20 
21 #include "FairBoxSet.h"
22 
23 #include "TGedFrame.h"
24 #include "TEveDigitSetEditor.h"
25 #include "TGFrame.h"
26 #include "TEveGValuators.h"
27 
28 class TGNumberEntry;
29 //class TGVerticalFrame;
30 //class TEveGValuator;
31 
32 class FairBoxSetEditor : public TGedFrame
33 {
34 
35  public:
36 
37  FairBoxSetEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30,
38  UInt_t options = kChildFrame, Pixel_t back=GetDefaultFrameBackground());
39  virtual ~FairBoxSetEditor() {};
40 
41  virtual void Init();
42 
43  virtual void SetModel(TObject* obj) {
44  fM = dynamic_cast<FairBoxSet*>(obj);
45  fTimeWindowPlus->SetNumber(fM->GetTimeWindowPlus());
46  fTimeWindowMinus->SetNumber(fM->GetTimeWindowMinus());
47  }
48 
49  virtual void TimeWindow();
50 
51  TGVerticalFrame* fInfoFrame;
52  TGNumberEntry* fTimeWindowPlus;
53  TGNumberEntry* fTimeWindowMinus;
54 
55 
56  protected:
59 
60 
61 
62  private:
65 
66 
68 
69 };
70 
71 
72 #endif