source: JEM-EUSO/esaf_cc_at_lal/packages/common/eventviewer/include/EFocalSurfacePainterEditor.hh @ 114

Last change on this file since 114 was 114, checked in by moretto, 11 years ago

actual version of ESAF at CCin2p3

File size: 4.6 KB
Line 
1// $Id: EFocalSurfacePainterEditor.hh 2782 2007-07-16 09:25:45Z thea $
2// Author: Alessandro Thea   2005/02/20
3
4/*****************************************************************************
5 * ESAF: Euso Simulation and Analysis Framework                              *
6 *                                                                           *
7 *  Id: EFocalSurfacePainterEditor                                           *
8 *  Package: <packagename>                                                   *
9 *  Coordinator: <coordinator>                                               *
10 *                                                                           *
11 *****************************************************************************/
12
13#ifndef __EFOCAlSURFACEPAINTEREDITOR_HH__
14#define __EFOCALSURFACEPAINTEREDITOR_HH__
15
16#include "TGedFrame.h"
17#include "EFocalSurfacePainter.hh"
18
19class TList;
20class TGComboBox;
21class TGColorSelect;
22class TGedPatternSelect;
23class TGHSlider;
24class TGCheckButton;
25class TGButtonGroup;
26class TGRadioButton;
27class TGTab;
28class TGLabel;
29class TGNumberEntry;
30
31enum Threshold_t {
32    kNONE,
33    kABSOLUTE,
34    kRELATIVE
35};
36
37////////////////////////////////////////////////////////////////////////////////
38//                                                                            //
39// EFocalSurfacePainterEditor                                                 //
40//                                                                            // 
41// <brief class description>                                                  // 
42//                                                                            // 
43////////////////////////////////////////////////////////////////////////////////
44
45class EFocalSurfacePainterEditor : public TGedFrame {
46public:
47    EFocalSurfacePainterEditor(const TGWindow* p = 0 , Int_t width = 140, Int_t height = 30, UInt_t options = kChildFrame, Pixel_t back = GetDefaultFrameBackground());
48    virtual ~EFocalSurfacePainterEditor();
49
50//    virtual void   SetModel(TVirtualPad *pad, TObject *obj, Int_t event);
51    virtual void   SetModel(TObject *obj);
52
53    void ConnectSignals2Slots();
54   
55    virtual void DoMapID( Int_t );
56    virtual void DoIntegral( Int_t );
57    virtual void DoTrigger( Int_t );
58    virtual void DoViewRangeSliderMoved( Int_t );
59    virtual void DoGtuSliderMoved( Int_t );
60    virtual void DoGtuEntrySet();
61    virtual void DoCountsSliderMoved( Int_t );
62    virtual void DoCountsEntrySet();
63    virtual void DoThresholdSliderMoved( Int_t );
64    virtual void DoAlphaEntrySet();
65    virtual void DoAddGtuCount(Bool_t);
66    virtual void DoAddEmptyPixels(Bool_t);
67    virtual void DoDrawNightRate(Bool_t);
68    virtual void DoDrawNightCounts(Bool_t);
69    virtual void DoAddOffPixels(Bool_t on);
70    virtual void DoThreshold(Threshold_t);
71    virtual void DoPmtFillColor(Pixel_t);
72    virtual void DoEmptyPmtFillColor(Pixel_t);
73   
74private:
75
76    void CreateThresholdTab();
77    void CreateColorTab();
78
79    EFocalSurfacePainter* fPainter;
80    Int_t  fCurrentMapID;
81    Int_t  fCurrentIntegral;
82    Int_t  fCurrentTrigger;
83
84//    TGComboBox* BuildNspreadComboBox(TGFrame* parent, Int_t id);
85    TGComboBox* BuildMapIDCombo(TGFrame* parent, Int_t id);
86    TGComboBox* BuildIntegralCombo(TGFrame* parent, Int_t id);
87    TGComboBox* BuildChipTriggerCombo(TGFrame* parent, Int_t id);
88
89//    TGTab* fTab;
90    TGCompositeFrame* fColor; 
91    TGCompositeFrame* fColorContainer;
92    TGCompositeFrame* fThreshold; 
93    TGCompositeFrame* fThresholdContainer;
94    TGComboBox* fMapIDCombo; //     font size combo box
95    TGComboBox* fIntegralCombo; //     font size combo box
96    TGComboBox* fTriggerCombo; //     font size combo box
97    TGHSlider* fGtuSlider;
98    TGNumberEntry* fGtuEntry;
99    TGHSlider* fViewRangeSlider;
100    TGHSlider* fCountsSlider;
101    TGHSlider* fThresholdSlider;
102    TGNumberEntry* fAlphaEntry;
103    TGNumberEntry* fCountsEntry;
104    TGLabel *fViewRMinLabel;
105    TGLabel *fViewRMaxLabel;
106    TGLabel *fGtuMinLabel;
107    TGLabel *fGtuMaxLabel;
108    TGLabel *fAlphaMinLabel;
109    TGLabel *fAlphaMaxLabel;
110//    TGCheckButton* fMakeTimeInt;
111    TGCheckButton* fAddGtuCount;
112    TGCheckButton* fAddEmptyPixels;
113    TGCheckButton* fAddOffPixels;
114    TGCheckButton* fDrawNightRate;
115    TGCheckButton* fDrawNightCounts;
116    TGButtonGroup* fThresholdType;
117    TGRadioButton* fThNone;
118    TGRadioButton* fThAbs;
119    TGRadioButton* fThRel;
120    TGColorSelect* fPmtColorSelect;  //  fill color widget
121    TGColorSelect* fEmptyPmtColorSelect;  //  fill color widget
122
123    TList* fGarbage;
124
125    ClassDef(EFocalSurfacePainterEditor,0)
126};
127
128#endif  /* __EFOCALSURFACEPAINTEREDITOR_HH__ */
129
Note: See TracBrowser for help on using the repository browser.