FEDRA emulsion software from the OPERA Collaboration
EdbEDAShowerTab.C File Reference
#include "EdbEDA.h"
#include "EdbEDAShowerTab.h"
Include dependency graph for EdbEDAShowerTab.C:

Functions

 ClassImp (EdbEDAShowerTab)
 

Variables

EdbEDAgEDA
 

Function Documentation

◆ ClassImp()

ClassImp ( EdbEDAShowerTab  )
8  {
9 // gSystem->Load("libEve");
10  TEveBrowser* browser = gEve->GetBrowser();
11  browser->StartEmbedding(TRootBrowser::kBottom);
12 
13  TGMainFrame* frame = new TGMainFrame(gClient->GetRoot());
14  frame->SetWindowName("XX GUI");
15  frame->SetCleanup(kDeepCleanup);
16  frame->SetLayoutBroken(kTRUE);
17 
18  int posy=10;
19  int posx=10;
20  int dx;
21  int posx_start=posx;
22  int posy_start=posy;
23  int posx_after_vline=posx;
24 
25  int posx_1,posx_2,posx_3,posx_4;
26 
27  //------------------------------------------------------------------
28  TGTextButton *eButton1 = new TGTextButton(frame,"RECO");
29  eButton1->MoveResize(posx,posy,dx=60,20);
30  eButton1->Connect("Clicked()","EdbEDAShowerTab", this,"Reco()");
31 
32  posx+=dx+5;
33  TGTextButton *eButtonHelp = new TGTextButton(frame,"HELP");
34  eButtonHelp->MoveResize(posx,posy,dx=60,20);
35  eButtonHelp->Connect("Clicked()","EdbEDAShowerTab", this,"Help()");
36 
37  posx+=dx+5;
38  TGVertical3DLine* eVertLine1 = new TGVertical3DLine(frame);
39  eVertLine1->MoveResize(posx,posy,dx=5,55);
40  posx+=dx+5;
41  posx_1=posx;
42 
43  //------------------------------------------------------------------
44  eCheckButtonUseTSData = new TGCheckButton(frame,"UseTS");
45  eCheckButtonUseTSData->SetState(kButtonDown);
46  eCheckButtonUseTSData->MoveResize(posx,posy,dx=80,20);
47 
48  posx+=dx+5;
49  eVertLine1 = new TGVertical3DLine(frame);
50  eVertLine1->MoveResize(posx,posy,dx=5,60);
51  posx+=dx+5;
52  posx_2=posx;
53 
54  //------------------------------------------------------------------
55  eCheckButtonDrawShowers = new TGCheckButton(frame,"Draw");
56  eCheckButtonDrawShowers->SetState(kButtonDown);
57  eCheckButtonDrawShowers->MoveResize(posx,posy,dx=50,20);
58  eCheckButtonDrawShowers->Connect("Toggled(bool)","EdbEDAShowerTab", this,"DrawShowers()");
59 
60  posx+=dx+5;
61 // TGLabel *eLabel1 = new TGLabel(frame,"Nr= ");
62 // eLabel1->MoveResize(posx,posy,dx=40,20);
63  TGTextButton *eButton = new TGTextButton(frame,"Plot");
64  eButton->MoveResize(posx,posy,dx=40,20);
65  eButton->Connect("Clicked()","EdbEDAShowerTab", this,"PlotShower()");
66 
67  posx+=dx+5;
68  eTGNumberEntryDrawShowerNr = new TGNumberEntry(frame,0,11,-1,(TGNumberFormat::EStyle) 5);
69  eTGNumberEntryDrawShowerNr->MoveResize(posx,posy,dx=40,20);
70 
71  posx+=dx+5;
72  eVertLine1 = new TGVertical3DLine(frame);
73  eVertLine1->MoveResize(posx,posy,dx=5,60);
74  posx+=dx+5;
75  posx_3=posx;
76 
77  //------------------------------------------------------------------
78  TGTextButton *eButton4 = new TGTextButton(frame,"Chk PVR");
79  eButton4->MoveResize(posx,posy,dx=60,20);
80  eButton4->Connect("Clicked()","EdbEDAShowerTab", this,"CheckPVRec()");
81 
82  posx+=dx+5;
83  TGTextButton *eButton5 = new TGTextButton(frame,"Set PVR");
84  eButton5->MoveResize(posx,posy,dx=60,20);
85  eButton5->Connect("Clicked()","EdbEDAShowerTab", this,"SetPVRecFromFile()");
86 
87  posx+=dx+5;
88  eVertLine1 = new TGVertical3DLine(frame);
89  eVertLine1->MoveResize(posx,posy,dx=5,55);
90  posx+=dx+5;
91  posx_4=posx;
92 
93  //------------------------------------------------------------------
94  TGTextButton* fb = new TGTextButton(frame,"PairSearch");
95  fb->MoveResize(posx,posy,dx=60,20);
96 // fb->Connect("Clicked()","EdbEDAShowerTab", this,"FindPairingsNewAlgo()"); // uses algo _GS from libShower... // should be included but doesnt work at the moment
97  fb->Connect("Clicked()","EdbEDAShowerTab", this,"FindPairings()"); // uses algo coded in here
98 
99  posx+=dx+5;
100  eVertLine1 = new TGVertical3DLine(frame);
101  eVertLine1->MoveResize(posx,posy,dx=5,55);
102  posx+=dx+5;
103 
104  //--------------------------------------------------------
105  // Parameters of the Reconstruction itsself:
106  // "Expert Buttons...."
107  // WHAT A PITTY, I AM NOT ALLOWED TO PLACE THESE BUTTONS HERE!!!
108 
109  posx+=dx+5;
110  eVertLine1 = new TGVertical3DLine(frame);
111  eVertLine1->MoveResize(posx,posy,dx=5,55);
112  posx_after_vline=posx;
113 
114  posx+=dx+5;
115  eComboBox_Parameter = new TGComboBox(frame,"Parameters");
116  eComboBox_Parameter->AddEntry("ConeRadius",0);
117  eComboBox_Parameter->AddEntry("ConeAngle",1);
118  eComboBox_Parameter->AddEntry("ConnectionDR",2);
119  eComboBox_Parameter->AddEntry("ConnectionDT",3);
120  eComboBox_Parameter->AddEntry("Nhole",4);
121  eComboBox_Parameter->Select(-1);
122  eComboBox_Parameter->MoveResize(posx,posy,dx=80,20);
123  frame->AddFrame(eComboBox_Parameter);
124  eComboBox_Parameter->Connect("Selected(const char *)", "EdbEDAShowerTab", this, "ReadComboBoxParameter()");
125 
126  posx+=dx+5;
127  eNumberEntry_ParaValue = new TGNumberEntry(frame, (Double_t) 0,5,-1,(TGNumberFormat::EStyle) 5);
128  frame->AddFrame(eNumberEntry_ParaValue, new TGLayoutHints(kLHintsLeft | kLHintsTop,2,2,2,2));
129  eNumberEntry_ParaValue->MoveResize(posx,posy,dx=50,20);
130 
131  posx+=dx+5;
132  TGTextButton* eButton3 = new TGTextButton(frame,"Change");
133  eButton3->MoveResize(posx,posy,dx=45,20);
134  eButton3->Connect("Clicked()","EdbEDAShowerTab", this,"ChangeShowerRecParameters()");
135 
136  // -------------------------------------------------------------------------------------------
137  // Second line in the tab:
138  posx=posx_start;
139  posy=posy_start+30;
140 
141  eButton3 = new TGTextButton(frame,"PRINT");
142  eButton3->MoveResize(posx,posy,dx=60,20);
143  eButton3->Connect("Clicked()","EdbEDAShowerTab", this,"PrintShower()");
144 
145  posx+=dx+5;
146  TGTextButton *eButtonGO = new TGTextButton(frame,"GO!");
147  eButtonGO->MoveResize(posx,posy,dx=60,20);
148  eButtonGO->Connect("Clicked()","EdbEDAShowerTab", this,"GO()");
149 
150  posx=posx_1;
151  eCheckButtonCheckQualitycut = new TGCheckButton(frame,"");
152  eCheckButtonCheckQualitycut->SetState(kButtonDown);
153  eCheckButtonCheckQualitycut->MoveResize(posx,posy,dx=20,20);
154  eCheckButtonCheckQualitycut->Connect("Toggled(bool)","EdbEDAShowerTab", this,"CheckQualitycut()");
155 
156  posx+=dx+5;
157  TGTextButton *eButtonQualCutSettings = new TGTextButton(frame,"Quality");
158  eButtonQualCutSettings->MoveResize(posx,posy,dx=55,20);
159  eButtonQualCutSettings->Connect("Clicked()","EdbEDAShowerTab", this,"MakeParameterWindowQualitySettings()");
160 
161 
162  //------------------------------------------------------------------
163  posx=posx_2;
164  fb = new TGTextButton(frame,"Prev");
165  fb->MoveResize(posx,posy,dx=40,20);
166  fb->Connect("Clicked()","EdbEDAShowerTab", this,"DrawShowerPrevious()");
167 
168  posx+=dx+5;
169  fb = new TGTextButton(frame,"All");
170  fb->MoveResize(posx,posy,dx=40,20);
171  fb->Connect("Clicked()","EdbEDAShowerTab", this,"DrawShowerAll()");
172 
173  posx+=dx+5;
174  fb = new TGTextButton(frame,"Next");
175  fb->MoveResize(posx,posy,dx=40,20);
176  fb->Connect("Clicked()","EdbEDAShowerTab", this,"DrawShowerNext()");
177 
178  //------------------------------------------------------------------
179  posx=posx_3;
180  fb = new TGTextButton(frame,"ChkBTDens");
181  fb->MoveResize(posx,posy,dx=60,20);
182  fb->Connect("Clicked()","EdbEDAShowerTab", this,"CheckBTDensityCanv()");
183 
184  posx+=dx+5;
185  fb = new TGTextButton(frame,"CkCosRec");
186  fb->MoveResize(posx,posy,dx=60,20);
187  fb->Connect("Clicked()","EdbEDAShowerTab", this,"CheckCosmicReco()");
188 
189  //------------------------------------------------------------------
190  posx=posx_4;
191  fb = new TGTextButton(frame,"Pi0Search");
192  fb->MoveResize(posx,posy,dx=60,20);
193  fb->Connect("Clicked()","EdbEDAShowerTab", this,"FindPairingsNewAlgo()");
194 
195 
196  //------------------------------------------------------------------
197  // WHAT A PITTY, I AM NOT ALLOWED TO PLACE THESE BUTTONS HERE!!!
198  posx=posx_after_vline+10;
199  eButton3 = new TGTextButton(frame,"Reset");
200  eButton3->MoveResize(posx,posy,dx=40,20);
201  eButton3->Connect("Clicked()","EdbEDAShowerTab", this,"ResetShowerRecParameters()");
202 
203  posx+=dx+5;
204  eButton3 = new TGTextButton(frame,"Info");
205  eButton3->MoveResize(posx,posy,dx=40,20);
206  eButton3->Connect("Clicked()","EdbEDAShowerTab", this,"PrintShowerRecParameters()");
207 
208  posx+=dx+5;
209  fb = new TGTextButton(frame,"HighNBT");
210  fb->MoveResize(posx,posy,dx=40,20);
211  fb->Connect("Clicked()","EdbEDAShowerTab", this,"SetParaSetHighNBT()");
212 
213  posx+=dx+5;
214  fb = new TGTextButton(frame,"HighPur");
215  fb->MoveResize(posx,posy,dx=40,20);
216  fb->Connect("Clicked()","EdbEDAShowerTab", this,"SetParaSetHighPur()");
217 
218 
219 
220 
221  //------------------------------------------------------------------
222  frame->MapSubwindows();
223  frame->Resize();
224  frame->MapWindow();
225 
226  browser->StopEmbedding();
227  browser->SetTabTitle("Shower", 2);
228 }

Variable Documentation

◆ gEDA

EdbEDA* gEDA
extern