KaliVeda
Toolkit for HIC analysis
KVSpIdGUI.h
1 
4 #ifndef __KVSPIDGUI_H
5 #define __KVSPIDGUI_H
6 
7 #include "TGFrame.h"
8 #include "TGMenu.h"
9 #include "TGListBox.h"
10 #include "TGButtonGroup.h"
11 #include "TGButton.h"
12 #include "KVIDGraph.h"
13 #include "RQ_OBJECT.h"
14 #include <TGComboBox.h>
15 #include <TGLabel.h>
16 #include <TGNumberEntry.h>
17 #include <TGTextEntry.h>
18 #include <TGProgressBar.h>
19 #include <TGComboBox.h>
20 #include "KVCanvas.h"
21 #include "KVIDZALine.h"
22 #include "KVIDZAGrid.h"
23 #include "KVSpiderIdentificator.h"
24 
30 class KVSpIdGUI {
31  RQ_OBJECT("KVSpIdGUI")
32 
33 public:
37  kNone
38  };
39 
40 protected:
41  TGTransientFrame* fMain;
42 
43  TGHorizontalFrame* fHdataFrame;
44  TGLabel* fHdataNameLabel;
45  TGLabel* fGNameLabel;
46 
48  TGGroupFrame* fInitFrame;
49 
50  TGHorizontalFrame* fZpFrame;
51  TGLabel* fZpLabel;
52  TGNumberEntry* fZpEntry;
53  TGCheckButton* fZpRadio;
54 
55  TGHorizontalFrame* fSpiderFactorFrame;
56  TGLabel* fSpiderFactorLabel;
57  TGNumberEntry* fSpiderFactorEntry;
58  TGCheckButton* fSpiderFactorRadio;
59 
61  TGGroupFrame* fOptFrame;
62 
63  TGHorizontalFrame* fTypeFrame;
64  TGLabel* fTypeLabel;
65  TGComboBox* fTypeChoice;
66 
67  TGHorizontalFrame* fPiedFrame;
68  TGLabel* fPiedLabel;
69  TGComboBox* fPiedChoice;
70 
71  TGHorizontalFrame* fNPointsFrame;
72  TGLabel* fNPointsLabel;
73  TGNumberEntry* fNPointsEntry;
74 
75  TGHorizontalFrame* fDebugFrame;
76  TGCheckButton* fDebugBut;
77  TGCheckButton* fCutBut;
78 
80  TGGroupFrame* fAdOptFrame;
81 
82  TGHorizontalFrame* fAngleUpFrame;
83  TGLabel* fAngleUpLabel;
84  TGNumberEntry* fAngleUpEntry;
85 
86  TGLabel* fAngleDownLabel;
87  TGNumberEntry* fAngleDownEntry;
88 
89  TGLabel* fApertureLabel;
90  TGNumberEntry* fApertureUpEntry;
91 
93  TGHProgressBar* fProgressBar;
94 
95  TGHorizontalFrame* fButtonsFrame;
96  TGTextButton* fTestButton;
97  TGTextButton* fCloseButton;
98 
99  KVIDGraph* fGrid;
100  TH2* fHisto;
101  TH2F* fScaledHisto;
102 
103  KVSpiderIdentificator* fIdentificator;
104 
105  static Int_t fZp;
106  static Double_t fSpFactor;
107  static Double_t fAlpha;
108  static Bool_t fDebug;
109  static Bool_t fPiedestal;
110  static Bool_t fUseZp;
111  static Bool_t fUseCut;
112  static Int_t fAnglesUp;
113  static Int_t fAnglesDown;
114  static Int_t fMatrixType;
115  static Int_t fPiedType;
116  static Int_t fNPoints;
117 
118  Double_t fXm;
119  Double_t fYm;
120  Double_t fPdx;
121  Double_t fPdy;
122 
123  Double_t fSfx;
124  Double_t fSfy;
125 
126  Bool_t fUserParameter;
127  TString fOption;
128 
129 public:
130  KVSpIdGUI(KVIDGraph* g = 0, TH2* data_histo = 0, Double_t xm = -1.,
131  Double_t ym = -1., Double_t pdx = -1., Double_t pdy = -1., const char* opt = "DRLF");
132  KVSpIdGUI(const KVSpIdGUI&) ;
133  virtual ~KVSpIdGUI();
134 
135  void DoClose();
136  void CloseWindow();
137  void SpiderIdentification();
138 
139  void SetDebug(Bool_t deb)
140  {
141  fDebug = deb;
142  }
143  void SetUseCut(Bool_t uc)
144  {
145  fUseCut = uc;
146  }
147  void SetPiedestal(Bool_t pied)
148  {
149  fPiedestal = pied;
150  }
151  void SetUserParameter(Bool_t par);
152 
154 
155  ClassDef(KVSpIdGUI, 1) //
156 };
157 
158 #endif
int Int_t
#define RQ_OBJECT(sender_class)
bool Bool_t
double Double_t
#define ClassDef(name, id)
Base class for particle identification in a 2D map.
Definition: KVIDGraph.h:31
virtual ~KVSpIdGUI()
Delete all widgets.
Definition: KVSpIdGUI.cpp:243
void SetUseCut(Bool_t uc)
Definition: KVSpIdGUI.h:143
void SetDebug(Bool_t deb)
Definition: KVSpIdGUI.h:139
void SpiderIdentification()
Definition: KVSpIdGUI.cpp:297
void SetPiedestal(Bool_t pied)
Definition: KVSpIdGUI.h:147
Double_t GetFactor()
Definition: KVSpIdGUI.cpp:287
void DoClose()
Definition: KVSpIdGUI.cpp:224
void SetUserParameter(Bool_t par)
Definition: KVSpIdGUI.cpp:275
void CloseWindow()
Definition: KVSpIdGUI.cpp:233
KVSpIdGUI(KVIDGraph *g=0, TH2 *data_histo=0, Double_t xm=-1., Double_t ym=-1., Double_t pdx=-1., Double_t pdy=-1., const char *opt="DRLF")
Definition: KVSpIdGUI.cpp:41
Semi-automatic identification grid generator.