FEDRA emulsion software from the OPERA Collaboration
ShowRec.h
Go to the documentation of this file.
1 
2 //---------------------------------------------------------------------------------
3 //- gEDBDEBUGLEVEL
4 Int_t gEDBDEBUGLEVEL=2;
5 //---------------------------------------------------------------------------------
6 //- VARIABLES
7 //---------------------------------------------------------------------------------
8 Int_t cmd_PADI=0;
9 Int_t cmd_BTPA=0;
10 Int_t cmd_BGTP=0;
11 Int_t cmd_ALTP=2;
12 Int_t cmd_PASTART=0;
13 Int_t cmd_PAEND=0;
14 Int_t cmd_CUTTP=0;
15 Int_t cmd_FP=1;
16 Int_t cmd_LP=30;
17 Int_t cmd_MP=1;
18 Int_t cmd_NP=30;
19 Int_t cmd_LT=0;
20 Int_t cmd_MC=0;
21 Int_t cmd_MCFL=0;
22 Int_t cmd_FZHP=0;
23 Int_t cmd_ALI=0; // 0 gAli from cp, 1: gALI from Linkd_tracks
24 Int_t cmd_MCMIX=0;
25 Int_t cmd_vtx=0;
26 Int_t cmd_CLEAN=0; // clean gAli Object with tighter Quality Cuts!
27 Int_t cmd_FILETP=0; // addition variable to distinguis different treebranches...
28 Int_t cmd_GBMC=0; // addition variable to tell the program which MCEvt is doing (if only one is done).
29 Int_t cmd_EXTHETA=0; // if set to 1 then extract subpatterns with delta theta cut w.r.t. InBT.
30 
31 char *cmd_lnkdef_name = "lnk.def";
32 Int_t cmd_gEDBDEBUGLEVEL=2; // 2: normal; 3: long, 4 very long; 1: none
33 Int_t cmd_OUTPUTLEVEL=1; // 2:all (long), 2:reco+paraset (long) 1: only reconstruction (short): 0 only eff.(short)
34 Int_t cmd_STOPLEVEL=0; // 0: Full Program, 1,2,3,4 return program at different steps of program.
35 //---------------------------------------------------------------------------------
39 Double_t GLOBAL_trckdens;
40 //---------------------------------------------------------------------------------
41 // In = Initiator = BT from which the shower reconstruction starts
42 // Works for all Basetracks, MC or background
45 //---------------------------------------------------------------------------------
46 // Evt = Event = highest energetic BT at lowest z-position for the
47 // corresponding InBT (does not have to be an electron,f.e.)
48 // Works of course only for MC events
53 //-----------
54 TObjArray* GLOBAL_VtxArray;
55 Float_t GLOBAL_VtxArrayX[99999];
56 Float_t GLOBAL_VtxArrayY[99999];
57 Float_t GLOBAL_VtxArrayZ[99999];
58 //---------------------------------------------------------------------------------
72 //---------------------------------------------------------------------------------
74 TObjArray* GLOBAL_InBTArray;
77 //---------------------------------------------------------------------------------
78 Double_t CUT_PARAMETER[10];
81 //---------------------------------------------------------------------------------
83 //---------------------------------------------------------------------------------
84 
85 //---------------------------------------------------------------------------------
86 //- Internal Histograms
87 //---------------------------------------------------------------------------------
88 TProfile* NBTeMC_pure;
90 TProfile* NBTallMC_purall;
92 TProfile* NBTeMC_NBTMC;
94 TProfile* NBTeMC_NBT;
96 TProfile* NBT_InBTE;
98 TProfile* NBTeMC_InBTE;
100 TProfile* pure_InBTE;
102 TProfile* purall_InBTE;
104 //---------------------------------------------------------------------------------
105 
106 
107 //---------------------------------------------------------------------------------
108 //- FUNCTIONS
109 //---------------------------------------------------------------------------------
110 void CheckInputParameters();
118 void FillGlobalInBTArray();
119 void GetEvent_ParasetDefinitionTree(Int_t nr);
123 // -------------------------------
124 void ReconstructShowers(Int_t nr);
125 void ReconstructShowers_CT(); // ALTP=0 // This is now the same as CA alg....
126 
127 void ReconstructShowers_CL(); // ALTP=1 // TESTING
128 
129 void ReconstructShowers_CA(); // ALTP=2
130 void ReconstructShowers_OI(); // ALTP=4
131 void ReconstructShowers_NN(); // ALTP=5
132 void ReconstructShowers_OI2(); // DEPRECIATED !!!!
133 void ReconstructShowers_SA(); // ONLY MC ALGORITHM
134 void ReconstructShowers_TC(); // ALTP=6
135 void ReconstructShowers_RC(); // ALTP=7
136 void ReconstructShowers_BW(); // ALTP=8 BackWard Algorithm
137 void ReconstructShowers_AG(); // ALTP=9 Advanced Gamm Algorithm
138 void ReconstructShowers_GS(); // ALTP=10 Gamma Search Algorithm (equal to the one in libShowRec)
140 void ReconstructShowers_OPENMP_TEST(EdbSegP* InBT, TObjArray array);
141 // -------------------------------
142 
147 
148 
149 Bool_t FindPrecedingBTs(EdbSegP* s1, EdbSegP* s2, EdbPVRec *gAli, TObjArray* showersegarray); //searches all BTs from showersegarray only
150 Bool_t FindPrecedingBTsSingleThetaAngle(EdbSegP* s1, EdbSegP* s2, EdbPVRec *gAli, TObjArray* showersegarray); //searches all BTs from showersegarray only
151 Bool_t FindPrecedingBTsSingleThetaAngleTCDEBUG(EdbSegP* s1, EdbSegP* s2, EdbPVRec *gAli, TObjArray* showersegarray); //searches all BTs from showersegarray only
152 
153 
154 Bool_t FindPrecedingBTs_local_gAli(EdbSegP* s1, EdbSegP* s2, EdbPVRec *gAli, TObjArray* showersegarray); //searches all BTs from gAli
155 Bool_t FindFollowingBTs(EdbSegP* s1, EdbSegP* s2, EdbPVRec *gAli, TObjArray* showersegarray);
156 Bool_t GetConeOrTubeDistanceToInBT(EdbSegP* sa, EdbSegP* s, Double_t ConeAngle, Double_t CylinderRadius);
157 Bool_t GetConeOrTubeDistanceToBTOfShowerArray(EdbSegP* sa, EdbSegP* InBT, TObjArray* showersegarray, Double_t CylinderRadius, Double_t ConeAngle);
158 Double_t GetdeltaTheta(EdbSegP* s1,EdbSegP* s2);
161 Double_t GetdeltaRNoPropagation(EdbSegP* s,EdbSegP* stest);
162 Double_t GetSpatialDist(EdbSegP* s1,EdbSegP* s2);
163 Double_t GetMinimumDist(EdbSegP* s1,EdbSegP* s2);
164 inline Double_t GetdT(EdbSegP* s1,EdbSegP* s2) {
165  return GetdeltaTheta(s1,s2);
166 }
167 inline Double_t GetdR(EdbSegP* s1,EdbSegP* s2) {
169 }
170 inline Double_t GetdMinDist(EdbSegP* s1,EdbSegP* s2) {
171  return GetMinimumDist(s1,s2);
172 }
173 Bool_t IsSameSegment(EdbSegP* seg1,EdbSegP* seg2);
174 
175 Double_t CalcIP(EdbSegP* s, EdbVertex* v);
176 Double_t CalcIP(EdbSegP *s, double x, double y, double z);
177 
178 
179 Bool_t AddBTToArrayWithCeck(EdbSegP* tryAttachedSegment, TObjArray* GLOBAL_ShowerSegArray);
180 
181 Bool_t CalcConeOrTubeDistanceToInBT(EdbSegP* sa, EdbSegP* InBT, Double_t CylinderRadius, Double_t ConeAngle);
182 EdbSegP* BuildShowerAxis(TObjArray* ShowerSegArray);
183 void FillShowerAxis();
184 Bool_t IsShowerSortedZ(TObjArray* showerarray);
185 void SortShowerZ(TObjArray* showerarray);
186 void Fill2GlobalInBTArray();
187 void BuildParametrizationsMCInfo_PGun(TString MCInfoFilename);
188 
189 
190 EdbVertex* CalcVertex(TObjArray *segments);
191 
192 // -------------------------------
193 void CalcTrackDensity(EdbPattern* pat_interim,Float_t pat_interim_halfsize,Int_t& npat_int,Int_t& npat_total,Int_t& npatN);
194 void CalcEffPurOfShower(TObjArray* arr, Int_t &NBT, Int_t &NBTMC, Int_t &NBTallMC, Int_t &NBTeMC, Double_t &purall, Double_t &pure);
195 void CalcEffPurOfShower2(TObjArray* arr, Int_t &NBT, Int_t &NBTMC, Int_t &NBTallMC, Int_t &NBTeMC, Double_t &purall, Double_t &pure,Int_t n1, Int_t n2, Int_t n3);
196 void CalcEfficencyNumbers(EdbPattern* pat_interim, Int_t MCCheck, Int_t& NBT_Neff,Int_t& NBTMC_Neff,Int_t& NBTMCe_Neff);
197 void PrintShowerObjectArray(TObjArray* segarray);
198 void FillOutPutStructures();
199 // -------------------------------
201 void TransferShowerObjectArrayIntoEntryOfTreebranchShowerTree(TTree* treebranchtree, TObjArray* segarray);
202 void MakeTracksTree(TTree* treebranch);
203 //---------------------------------------------------------------------------------
204 
205 
206 
207 //---------------------------------------------------------------------------------
208 //- VARIABLES: related to specific ReconstructionAlgorithms:
209 //---------------------------------------------------------------------------------
210 //- NN ALG:
211 Bool_t var_NN_DoTrain=kFALSE;
212 Bool_t var_NN_DoRUN=kTRUE;
219 
220 
221 //--------
231 
232 
236 
240 
244 
248 
252 
253 
257 
261 
265 
269 
273 
277 
281 
285 
289 
293 
297 
301 
305 
309 
313 
317 
321 
325 
329 
333 
334 
335 Int_t GetNSegBeforeAndAfter(EdbPVRec* local_gAli, Int_t patterloop_cnt, EdbSegP* seg, Int_t n_patterns, Int_t BeforeOrAfter);
336 Int_t GetMeansBeforeAndAfter(Float_t& mean_dT, Float_t& mean_dR, EdbPVRec* local_gAli, Int_t patterloop_cnt, EdbSegP* seg, Int_t n_patterns, Int_t BeforeOrAfter);
337 Int_t GetMinsBeforeAndAfter(Float_t& min_dT, Float_t& min_dR, EdbPVRec* local_gAli, Int_t patterloop_cnt, EdbSegP* seg, Int_t n_patterns, Int_t BeforeOrAfter);
339 
340 TMultiLayerPerceptron* TMlpANN;
341 void Get_NN_ALG_MLP(TTree* inputtree, Int_t parasetnr);
342 void Load_NN_ALG_MLP_weights(TMultiLayerPerceptron* mlp, Int_t parasetnr);
343 //---------------------------------------------------------------------------------
344 
345 // CL ALG ---------------------------------------------------------------------------------
346 // Histograms which are needed...
356 TSpectrum2 *spectrum[50];
357 TSpectrum2 *spectrum2dim;
359 // Functions which are needed...
361 Int_t Reco_CL_AssignZValueToGroup(Double_t z, Double_t z0, Int_t NGroupedPLATES, Int_t PLATESPerGroup);
362 // CL ALG ---------------------------------------------------------------------------------
363 
364 
365 
366 
367 //---------------------------------------------------------------------------------
368 //- VARIABLES: shower_ "treebranch" reconstruction
369 //---------------------------------------------------------------------------------
373 Float_t shower_xb[5000];
374 Float_t shower_yb[5000];
375 Float_t shower_zb[5000];
376 Float_t shower_txb[5000];
377 Float_t shower_tyb[5000];
378 Float_t shower_deltarb[5000];
379 Float_t shower_deltathetab[5000];
380 Float_t shower_deltaxb[5000];
381 Float_t shower_deltayb[5000];
382 Int_t shower_nfilmb[5000];
383 Int_t shower_ngrainb[5000];
384 Float_t shower_chi2btkb[5000];
385 Int_t shower_ntrace1simub[5000]; // MCEvt
386 Int_t shower_ntrace2simub[5000]; // s->W()
387 Float_t shower_ntrace3simub[5000]; // s->P()
388 Int_t shower_ntrace4simub[5000]; // s->Flag()
389 Float_t shower_tagprimary[5000];
390 Int_t shower_idb[5000];
391 Int_t shower_plateb[5000];
394 Float_t shower_purb;
395 Float_t shower_trackdensb; //Track Density around the shower area, in BT/mm2
401 // -- new: in case you want to merge different shower.root files, they can be distingued:
403 // -- new: hole plates and consequitve hole plates:
406 //---------------------------------------------------------------------------------
407 
408 
409 
410 
426 TTree* t_GSNN;
427 TFile* f_GSNN;
brick z0
Definition: RecDispMC.C:106
TH1F * var_NN__BG__mean_dT_TestBT_ToSamePlate
Definition: ShowRec.h:275
Double_t GetdT(EdbSegP *s1, EdbSegP *s2)
Definition: ShowRec.h:164
TProfile * NBT_InBTE
Definition: ShowRec.h:96
TH1F * var_NN__SG__min_dR_TestBT_To2AfterPlate
Definition: ShowRec.h:326
TH1F * h_GSNN_var04
Definition: ShowRec.h:415
TProfile * pure_InBTE
Definition: ShowRec.h:100
TH1F * var_NN__BG__mean_dR_TestBT_To2BeforePlate
Definition: ShowRec.h:259
TH1F * var_NN__BG__nseg_TestBT_ToSamePlate
Definition: ShowRec.h:241
Float_t shower_axis_tyb
Definition: ShowRec.h:400
Double_t GetdeltaThetaSingleAngles(EdbSegP *s1, EdbSegP *s2)
Definition: ShowRec.cpp:7258
TH1F * var_NN__ALL__min_dT_TestBT_ToAfterPlate
Definition: ShowRec.h:324
TH1F * var_NN__SG__min_dR_TestBT_ToSamePlate
Definition: ShowRec.h:310
Int_t shower_filetype
Definition: ShowRec.h:402
Int_t cmd_PADI
Definition: ShowRec.h:8
TH1F * var_NN__BG__mean_dT_TestBT_To2BeforePlate
Definition: ShowRec.h:267
Bool_t var_NN_DoRUN
Definition: ShowRec.h:212
TH1F * var_NN__BG__mean_dT_TestBT_ToAfterPlate
Definition: ShowRec.h:283
TH1F * var_NN__SG__dT_InBT_To_TestBT
Definition: ShowRec.h:223
TH1F * var_NN__ALL__nseg_TestBT_ToBeforePlate
Definition: ShowRec.h:235
Float_t GLOBAL_VtxArrayY[99999]
Definition: ShowRec.h:56
TH2F * Hist_pure_InBTE
Definition: ShowRec.h:101
TH2F * spectrum_interim
Definition: ShowRec.h:358
TH1F * var_NN__ALL__dR_TestBT_To_InBT
Definition: ShowRec.h:230
Int_t GLOBAL_INBTSHOWERNR
Definition: ShowRec.h:80
TH1F * h_GSNN_var03
Definition: ShowRec.h:414
Int_t shower_nfilmb[5000]
Definition: ShowRec.h:382
Double_t GLOBAL_trckdens
Definition: ShowRec.h:39
TH1F * var_NN__ALL__mean_dT_TestBT_To2AfterPlate
Definition: ShowRec.h:292
Int_t shower_ngrainb[5000]
Definition: ShowRec.h:383
Int_t GLOBAL_EvtBT_ZArray[99999]
Definition: ShowRec.h:51
void MakeTracksTree(TTree *treebranch)
Definition: ShowRec.cpp:8236
TH2F * Hist_NBTeMC_NBTMC
Definition: ShowRec.h:93
TH1F * var_NN__BG__mean_dR_TestBT_To2AfterPlate
Definition: ShowRec.h:287
void CalcEffPurOfShower(TObjArray *arr, Int_t &NBT, Int_t &NBTMC, Int_t &NBTallMC, Int_t &NBTeMC, Double_t &purall, Double_t &pure)
Definition: ShowRec.cpp:7597
void ReconstructShowers_NN()
Definition: ShowRec.cpp:3244
EdbPVRec * GLOBAL_gAli
Definition: ShowRec.h:73
TH3F * Hist3DimRecoEvent_gAli
Definition: ShowRec.h:354
Bool_t FindPrecedingBTs_local_gAli(EdbSegP *s1, EdbSegP *s2, EdbPVRec *gAli, TObjArray *showersegarray)
Definition: ShowRec.cpp:6679
void Load_NN_ALG_MLP_weights(TMultiLayerPerceptron *mlp, Int_t parasetnr)
Definition: ShowRec.cpp:6088
void ReconstructShowers_OI()
void ReconstructShowers_CL() /// Still Missing in the Implementation !!!
Definition: ShowRec.cpp:2838
TH1F * var_NN__SG__min_dT_TestBT_ToBeforePlate
Definition: ShowRec.h:302
void FillGlobalInBTArray()
Definition: ShowRec.cpp:938
Bool_t FindPrecedingBTsSingleThetaAngle(EdbSegP *s1, EdbSegP *s2, EdbPVRec *gAli, TObjArray *showersegarray)
Definition: ShowRec.cpp:6825
TH1F * var_NN__BG__dR_InBT_To_TestBT
Definition: ShowRec.h:226
void ReadDefaultValues_CommandLine()
Definition: ShowRec.cpp:413
Int_t cmd_OUTPUTLEVEL
Definition: ShowRec.h:33
TH1F * var_NN__ALL__min_dR_TestBT_To2BeforePlate
Definition: ShowRec.h:300
EdbPVRec * TransformEdbPVRec_SA(EdbPVRec *gAli, EdbSegP *InitiatorBT)
Definition: ShowRec.cpp:6506
void FillOutPutStructures()
Definition: ShowRec.cpp:7682
TFile * FILE_ShowRecEff
Definition: ShowRec.h:61
Int_t GLOBAL_PARASETNR
Definition: ShowRec.h:79
TH3F * Hist3DimOnlyBG
Definition: ShowRec.h:353
TH2F * Hist2DimBGAndSimOneEventAllPlates
Definition: ShowRec.h:349
Int_t GLOBAL_EvtBT_FlagArray[99999]
Definition: ShowRec.h:51
Int_t Check_ParasetDefinitionFile()
Definition: ShowRec.cpp:601
TSpectrum2 * spectrum[50]
Definition: ShowRec.h:356
Float_t value_GSNN_var01
Definition: ShowRec.h:419
void CalcEffPurOfShower2(TObjArray *arr, Int_t &NBT, Int_t &NBTMC, Int_t &NBTallMC, Int_t &NBTeMC, Double_t &purall, Double_t &pure, Int_t n1, Int_t n2, Int_t n3)
Definition: ShowRec.cpp:7631
void ReconstructShowers_OPENMP_TEST(EdbSegP *InBT, TObjArray array)
DEBUG OPENMP TEST!!!!!!!
Definition: ShowRec.cpp:2439
TH2F * Hist2DimOnlyBGOneGroupedPlate[50]
Definition: ShowRec.h:350
TObjArray * GLOBAL_ShowerSegArray
Definition: ShowRec.h:76
TFile * FILE_ParaSetDefinitions
Definition: ShowRec.h:64
Float_t shower_axis_zb
Definition: ShowRec.h:398
TFile * FILE_ShowTracks
Definition: ShowRec.h:71
TH1F * var_NN__ALL__dR_InBT_To_TestBT
Definition: ShowRec.h:227
TH1F * var_NN__SG__mean_dR_TestBT_ToSamePlate
Definition: ShowRec.h:270
void CheckInputParameters()
Definition: ShowRec.cpp:8376
TMultiLayerPerceptron * TMlpANN
Definition: ShowRec.h:340
EdbPVRec * TransformEdbPVRec_BackWard(EdbPVRec *gAli, EdbSegP *InitiatorBT)
Definition: ShowRec.cpp:6413
Bool_t IsShowerSortedZ(TObjArray *showerarray)
Definition: ShowRec.cpp:8801
Int_t cmd_BTPA
Definition: ShowRec.h:9
void Get_NN_ALG_MLP(TTree *inputtree, Int_t parasetnr)
Definition: ShowRec.cpp:5990
Float_t GLOBAL_VtxArrayX[99999]
Definition: ShowRec.h:55
TFile * f_GSNN
Definition: ShowRec.h:427
TH1F * var_NN__SG__min_dR_TestBT_ToAfterPlate
Definition: ShowRec.h:318
Int_t cmd_ALTP
Definition: ShowRec.h:11
Float_t value_GSNN_var02
Definition: ShowRec.h:420
void Reco_CL_BuildGlobalHistogramsOnHeap()
Definition: ShowRec.cpp:1872
Bool_t IsSameSegment(EdbSegP *seg1, EdbSegP *seg2)
Definition: ShowRec.cpp:8857
TTree * CreateTreeBranchShowerTree(Int_t ParaSetNr)
Definition: ShowRec.cpp:7864
TH1F * var_NN__SG__mean_dR_TestBT_To2AfterPlate
Definition: ShowRec.h:286
TH1F * var_NN__BG__min_dR_TestBT_ToSamePlate
Definition: ShowRec.h:311
Int_t cmd_CLEAN
Definition: ShowRec.h:26
TH1F * var_NN__ALL__zDiff_TestBT_To_InBT
Definition: ShowRec.h:218
void GetEvent_ParasetDefinitionTree(Int_t nr)
Definition: ShowRec.cpp:1440
TObjArray * GLOBAL_VtxArray
Definition: ShowRec.h:54
TH1F * var_NN__ALL__dT_InBT_To_TestBT
Definition: ShowRec.h:224
Double_t GLOBAL_purall
Definition: ShowRec.h:37
void RewriteSegmentPIDs(EdbPVRec *gAli)
Definition: ShowRec.cpp:6119
TH1F * var_NN__ALL__min_dT_TestBT_ToSamePlate
Definition: ShowRec.h:316
Float_t shower_yb[5000]
Definition: ShowRec.h:374
TH1F * var_NN__BG__nseg_TestBT_ToBeforePlate
Definition: ShowRec.h:234
TH2F * Hist_NBT_InBTE
Definition: ShowRec.h:97
TH1F * var_NN__SG__mean_dT_TestBT_To2AfterPlate
Definition: ShowRec.h:290
TH1F * var_NN__SG__mean_dR_TestBT_ToBeforePlate
Definition: ShowRec.h:254
Int_t shower_showerID
Definition: ShowRec.h:370
Double_t GetdeltaRNoPropagation(EdbSegP *s, EdbSegP *stest)
Definition: ShowRec.cpp:7229
Int_t cmd_PAEND
Definition: ShowRec.h:13
void ReconstructShowers_SA()
Definition: ShowRec.cpp:3050
TH1F * var_NN__SG__mean_dT_TestBT_ToBeforePlate
Definition: ShowRec.h:262
Int_t cmd_BGTP
Definition: ShowRec.h:10
Float_t value_GSNN_varInput
Definition: ShowRec.h:425
Int_t GLOBAL_InBT_MC
Definition: ShowRec.h:43
TH1F * var_NN__SG__mean_dT_TestBT_To2BeforePlate
Definition: ShowRec.h:266
TH1F * var_NN__ALL__min_dR_TestBT_ToAfterPlate
Definition: ShowRec.h:320
Double_t GetMinimumDist(EdbSegP *s1, EdbSegP *s2)
Definition: ShowRec.cpp:8581
Int_t shower_numberofholesconseq
Definition: ShowRec.h:404
TH1F * var_NN__SG__nseg_TestBT_To2AfterPlate
Definition: ShowRec.h:249
TH2F * Hist2DimOnlyBGAllPlates
Definition: ShowRec.h:347
Float_t shower_ntrace3simub[5000]
Definition: ShowRec.h:387
TH1F * var_NN__BG__mean_dR_TestBT_ToSamePlate
Definition: ShowRec.h:271
TFile * FILE_ShowRecHistos
Definition: ShowRec.h:63
Double_t GetdMinDist(EdbSegP *s1, EdbSegP *s2)
Definition: ShowRec.h:170
Int_t GLOBAL_NBTMC
Definition: ShowRec.h:36
Double_t GLOBAL_EvtBT_EArray[99999]
Definition: ShowRec.h:52
Float_t shower_deltaxb[5000]
Definition: ShowRec.h:380
TProfile * NBTeMC_InBTE
Definition: ShowRec.h:98
Int_t GLOBAL_NBT
Definition: ShowRec.h:36
Bool_t AddBTToArrayWithCeck(EdbSegP *tryAttachedSegment, TObjArray *GLOBAL_ShowerSegArray)
Definition: ShowRec.cpp:5939
TH1F * var_NN__SG__min_dT_TestBT_ToSamePlate
Definition: ShowRec.h:314
Double_t GetdeltaRWithPropagation(EdbSegP *s1, EdbSegP *s2)
Definition: ShowRec.cpp:7211
ofstream STREAM_ShowRecEff
Definition: ShowRec.h:59
Int_t cmd_PASTART
Definition: ShowRec.h:12
Bool_t CalcConeOrTubeDistanceToInBT(EdbSegP *sa, EdbSegP *InBT, Double_t CylinderRadius, Double_t ConeAngle)
Definition: ShowRec.cpp:7144
TH3F * Hist3DimRecoEvent_gAli_Dummy
Definition: ShowRec.h:355
TH2F * Hist_purall_InBTE
Definition: ShowRec.h:103
void CalcTrackDensity(EdbPattern *pat_interim, Float_t pat_interim_halfsize, Int_t &npat_int, Int_t &npat_total, Int_t &npatN)
Definition: ShowRec.cpp:8749
TH1F * h_GSNN_var05
Definition: ShowRec.h:416
TH1F * var_NN__SG__mean_dT_TestBT_ToAfterPlate
Definition: ShowRec.h:282
Int_t cmd_gEDBDEBUGLEVEL
Definition: ShowRec.h:32
TH1F * var_NN__SG__SpatialDist_TestBT_To_InBT
Definition: ShowRec.h:214
TH1F * var_NN__ALL__min_dR_TestBT_ToBeforePlate
Definition: ShowRec.h:296
TString STRING_ShowShowerName
Definition: ShowRec.h:67
Int_t shower_sizeb20
Definition: ShowRec.h:371
TH1F * var_NN__ALL__mean_dT_TestBT_ToSamePlate
Definition: ShowRec.h:276
Int_t gEDBDEBUGLEVEL
Definition: ShowRec.h:4
Float_t shower_purb
Definition: ShowRec.h:394
Float_t shower_tyb[5000]
Definition: ShowRec.h:377
TH1F * var_NN__SG__zDiff_TestBT_To_InBT
Definition: ShowRec.h:217
void SortShowerZ(TObjArray *showerarray)
Definition: ShowRec.cpp:8816
Int_t cmd_vtx
Definition: ShowRec.h:25
Int_t shower_numberofholes
Definition: ShowRec.h:405
Float_t shower_deltathetab[5000]
Definition: ShowRec.h:379
TString STREAM_ShowRecEffName
Definition: ShowRec.h:66
Float_t local_halfpatternsize
Definition: ShowRec.h:146
TH1F * var_NN__BG__min_dT_TestBT_To2BeforePlate
Definition: ShowRec.h:307
Int_t cmd_LT
Definition: ShowRec.h:19
TH1F * var_NN__BG__mean_dR_TestBT_ToBeforePlate
Definition: ShowRec.h:255
void ReconstructShowers_AG()
Definition: ShowRec.cpp:5145
TH1F * var_NN__BG__mean_dT_TestBT_ToBeforePlate
Definition: ShowRec.h:263
TH2F * Hist2DimOnlySimOneEventAllPlates
Definition: ShowRec.h:348
void TransferShowerObjectArrayIntoEntryOfTreebranchShowerTree(TTree *treebranchtree, TObjArray *segarray)
Definition: ShowRec.cpp:7940
TH1F * h_GSNN_var02
Definition: ShowRec.h:413
void ReconstructShowers_GS()
Definition: ShowRec.cpp:5371
TH1F * var_NN__BG__dR_TestBT_To_InBT
Definition: ShowRec.h:229
Int_t cmd_CUTTP
Definition: ShowRec.h:14
Int_t cmd_FP
Definition: ShowRec.h:15
TH1F * var_NN__BG__SpatialDist_TestBT_To_InBT
Definition: ShowRec.h:213
TH1F * var_NN__ALL__mean_dT_TestBT_ToAfterPlate
Definition: ShowRec.h:284
TH1F * var_NN__ALL__mean_dR_TestBT_To2AfterPlate
Definition: ShowRec.h:288
TH2F * Hist_NBTeMC_InBTE
Definition: ShowRec.h:99
TH1F * var_NN__ALL__nseg_TestBT_To2AfterPlate
Definition: ShowRec.h:251
TH1F * var_NN__BG__nseg_TestBT_To2AfterPlate
Definition: ShowRec.h:250
TH1F * var_NN__BG__dT_InBT_To_TestBT
Definition: ShowRec.h:222
void SetDefaultValues_CommandLine()
Definition: ShowRec.cpp:380
TH1F * var_NN__SG__dR_TestBT_To_InBT
Definition: ShowRec.h:228
char * cmd_lnkdef_name
Definition: ShowRec.h:31
Int_t shower_numberofilms
Definition: ShowRec.h:393
Bool_t FindPrecedingBTs(EdbSegP *s1, EdbSegP *s2, EdbPVRec *gAli, TObjArray *showersegarray)
Definition: ShowRec.cpp:6764
Int_t shower_ntrace2simub[5000]
Definition: ShowRec.h:386
Float_t value_GSNN_var06
Definition: ShowRec.h:424
Double_t CalcIP(EdbSegP *s, EdbVertex *v)
Definition: ShowRec.cpp:8872
Float_t shower_energy_shot_particle
Definition: ShowRec.h:372
Int_t GLOBAL_EvtBT_MCArray[99999]
Definition: ShowRec.h:51
Int_t cmd_MCFL
Definition: ShowRec.h:21
TTree * TREE_ShowRecEff
Definition: ShowRec.h:62
Float_t GLOBAL_VtxArrayZ[99999]
Definition: ShowRec.h:57
Bool_t GetConeOrTubeDistanceToInBT(EdbSegP *sa, EdbSegP *s, Double_t ConeAngle, Double_t CylinderRadius)
Definition: ShowRec.cpp:6990
TH1F * var_NN__ALL__mean_dR_TestBT_ToSamePlate
Definition: ShowRec.h:272
Float_t shower_trackdensb
Definition: ShowRec.h:395
TH1F * var_NN__BG__min_dR_TestBT_To2AfterPlate
Definition: ShowRec.h:327
TH1F * var_NN__ALL__min_dR_TestBT_ToSamePlate
Definition: ShowRec.h:312
TH1F * h_GSNN_var06
Definition: ShowRec.h:417
Int_t shower_idb[5000]
Definition: ShowRec.h:390
TProfile * purall_InBTE
Definition: ShowRec.h:102
TH1F * var_NN__BG__min_dR_TestBT_ToAfterPlate
Definition: ShowRec.h:319
Double_t GLOBAL_effall
Definition: ShowRec.h:38
TH2F * Hist_NBTeMC_pure
Definition: ShowRec.h:89
TH1F * var_NN__ALL__min_dT_TestBT_To2AfterPlate
Definition: ShowRec.h:332
TProfile * NBTeMC_NBTMC
Definition: ShowRec.h:92
EdbPVRec * TransformEdbPVRec(EdbPVRec *gAli, EdbSegP *InitiatorBT)
DEBUG OPENMP TEST!!!!!!!
Definition: ShowRec.cpp:6299
Int_t shower_number_eventb
Definition: ShowRec.h:370
TH2F * Hist2DimOnlySimOneEventOneGroupedPlate[50]
Definition: ShowRec.h:351
TH1F * var_NN__SG__nseg_TestBT_ToBeforePlate
Definition: ShowRec.h:233
TH1F * var_NN__SG__mean_dR_TestBT_ToAfterPlate
Definition: ShowRec.h:278
TString STRING_ShowTracksName
Definition: ShowRec.h:70
Double_t GetdeltaTheta(EdbSegP *s1, EdbSegP *s2)
Definition: ShowRec.cpp:7239
void ReconstructShowers_CL()
Definition: ShowRec.cpp:1892
Double_t GLOBAL_effe
Definition: ShowRec.h:38
Int_t GLOBAL_InBT_Flag
Definition: ShowRec.h:43
Int_t GLOBAL_NBTeMC
Definition: ShowRec.h:36
Int_t Open_ParasetDefinitionFile()
Definition: ShowRec.cpp:619
Double_t GLOBAL_EvtBT_E
Definition: ShowRec.h:50
Int_t Reco_CL_AssignZValueToGroup(Double_t z, Double_t z0, Int_t NGroupedPLATES, Int_t PLATESPerGroup)
Definition: ShowRec.cpp:1860
EdbSegP * BuildShowerAxis(TObjArray *ShowerSegArray)
Definition: ShowRec.cpp:8629
TH1F * var_NN__ALL__mean_dT_TestBT_ToBeforePlate
Definition: ShowRec.h:264
TH2F * Hist_NBTeMC_NBT
Definition: ShowRec.h:95
Bool_t FindPrecedingBTsSingleThetaAngleTCDEBUG(EdbSegP *s1, EdbSegP *s2, EdbPVRec *gAli, TObjArray *showersegarray)
Definition: ShowRec.cpp:6903
void PrintShowerObjectArray(TObjArray *segarray)
Definition: ShowRec.cpp:6967
TH1F * var_NN__ALL__nseg_TestBT_ToAfterPlate
Definition: ShowRec.h:247
TH1F * var_NN__ALL__SpatialDist_TestBT_To_InBT
Definition: ShowRec.h:215
Float_t shower_axis_txb
Definition: ShowRec.h:399
TH1F * var_NN__BG__min_dT_TestBT_ToSamePlate
Definition: ShowRec.h:315
Bool_t FindFollowingBTs(EdbSegP *s1, EdbSegP *s2, EdbPVRec *gAli, TObjArray *showersegarray)
Definition: ShowRec.cpp:6598
void Create_NN_Alg_Histograms()
Definition: ShowRec.cpp:8425
TH1F * var_NN__BG__zDiff_TestBT_To_InBT
Definition: ShowRec.h:216
Bool_t var_NN_DoTrain
Definition: ShowRec.h:211
TFile * FILE_ShowShower
Definition: ShowRec.h:69
Double_t GetSpatialDist(EdbSegP *s1, EdbSegP *s2)
Definition: ShowRec.cpp:7276
Int_t shower_sizeb15
Definition: ShowRec.h:371
TH2F * Hist_NBTallMC_purall
Definition: ShowRec.h:91
Double_t GLOBAL_InBT_TanTheta
Definition: ShowRec.h:44
Double_t GetdR(EdbSegP *s1, EdbSegP *s2)
Definition: ShowRec.h:167
TH1F * var_NN__SG__mean_dR_TestBT_To2BeforePlate
Definition: ShowRec.h:258
Int_t cmd_FILETP
Definition: ShowRec.h:27
void Read_ParasetDefinitionTree()
Definition: ShowRec.cpp:636
void ReconstructShowers_OI2()
Definition: ShowRec.cpp:3234
ofstream STREAM_ShowShower
Definition: ShowRec.h:60
Float_t value_GSNN_var03
Definition: ShowRec.h:421
TH1F * var_NN__ALL__mean_dT_TestBT_To2BeforePlate
Definition: ShowRec.h:268
void ReconstructShowers_RC()
Definition: ShowRec.cpp:4491
TH1F * var_NN__SG__min_dT_TestBT_To2BeforePlate
Definition: ShowRec.h:306
TH1F * var_NN__ALL__min_dT_TestBT_To2BeforePlate
Definition: ShowRec.h:308
Int_t cmd_MCMIX
Definition: ShowRec.h:24
Float_t shower_deltasigmathetab[58]
Definition: ShowRec.h:392
Double_t GLOBAL_InBT_E
Definition: ShowRec.h:44
void ReconstructShowers_CA()
Definition: ShowRec.cpp:2649
TH1F * var_NN__BG__min_dT_TestBT_ToAfterPlate
Definition: ShowRec.h:323
TH1F * var_NN__BG__mean_dR_TestBT_ToAfterPlate
Definition: ShowRec.h:279
Double_t CUT_PARAMETER[10]
Definition: ShowRec.h:78
TH1F * var_NN__BG__min_dR_TestBT_To2BeforePlate
Definition: ShowRec.h:299
Int_t GLOBAL_EvtBT_MC
Definition: ShowRec.h:49
void ReconstructShowers_BW()
Definition: ShowRec.cpp:4763
TH1F * var_NN__SG__nseg_TestBT_ToAfterPlate
Definition: ShowRec.h:245
void ReconstructShowers_TC()
Definition: ShowRec.cpp:4034
Int_t cmd_ALI
Definition: ShowRec.h:23
Float_t shower_tagprimary[5000]
Definition: ShowRec.h:389
Int_t cmd_MP
Definition: ShowRec.h:17
Int_t GLOBAL_InBTArrayEntries
Definition: ShowRec.h:75
TH1F * var_NN__BG__mean_dT_TestBT_To2AfterPlate
Definition: ShowRec.h:291
Int_t cmd_NP
Definition: ShowRec.h:18
Int_t shower_isizeb
Definition: ShowRec.h:370
Float_t shower_deltayb[5000]
Definition: ShowRec.h:381
Int_t GetMinsBeforeAndAfter(Float_t &min_dT, Float_t &min_dR, EdbPVRec *local_gAli, Int_t patterloop_cnt, EdbSegP *seg, Int_t n_patterns, Int_t BeforeOrAfter)
Definition: ShowRec.cpp:7295
EdbVertex * CalcVertex(TObjArray *segments)
Definition: ShowRec.cpp:9043
TH1F * var_NN__BG__min_dR_TestBT_ToBeforePlate
Definition: ShowRec.h:295
TH1F * var_NN__SG__dR_InBT_To_TestBT
Definition: ShowRec.h:225
TH1F * var_NN__SG__nseg_TestBT_ToSamePlate
Definition: ShowRec.h:242
TProfile * NBTeMC_NBT
Definition: ShowRec.h:94
Bool_t GetConeOrTubeDistanceToBTOfShowerArray(EdbSegP *sa, EdbSegP *InBT, TObjArray *showersegarray, Double_t CylinderRadius, Double_t ConeAngle)
Definition: ShowRec.cpp:7072
Int_t shower_sizeb30
Definition: ShowRec.h:371
Float_t value_GSNN_var00
Definition: ShowRec.h:418
TH1F * h_GSNN_var01
Definition: ShowRec.h:412
Int_t shower_ntrace4simub[5000]
Definition: ShowRec.h:388
TH1F * var_NN__SG__mean_dT_TestBT_ToSamePlate
Definition: ShowRec.h:274
TH1F * h_GSNN_var00
Definition: ShowRec.h:411
TH1F * var_NN__SG__min_dR_TestBT_To2BeforePlate
Definition: ShowRec.h:298
void ReconstructShowers(Int_t nr)
Definition: ShowRec.cpp:1693
Int_t GetMeansBeforeAndAfter(Float_t &mean_dT, Float_t &mean_dR, EdbPVRec *local_gAli, Int_t patterloop_cnt, EdbSegP *seg, Int_t n_patterns, Int_t BeforeOrAfter)
Definition: ShowRec.cpp:7383
void BuildParametrizationsMCInfo_PGun(TString MCInfoFilename)
Definition: ShowRec.cpp:8904
Float_t value_GSNN_var05
Definition: ShowRec.h:423
TProfile * NBTallMC_purall
Definition: ShowRec.h:90
TH1F * var_NN__ALL__mean_dR_TestBT_ToAfterPlate
Definition: ShowRec.h:280
EdbPVRec * ReadEdbPVRecObjectFromCurrentDirectory()
Definition: ShowRec.cpp:539
TSpectrum2 * spectrum2dim
Definition: ShowRec.h:357
Int_t cmd_LP
Definition: ShowRec.h:16
TProfile * NBTeMC_pure
Definition: ShowRec.h:88
TTree * t_GSNN
Definition: ShowRec.h:426
TH1F * var_NN__ALL__mean_dR_TestBT_To2BeforePlate
Definition: ShowRec.h:260
TTree * TREE_ParaSetDefinitions
Definition: ShowRec.h:65
Int_t shower_sizeb
Definition: ShowRec.h:370
void Fill2GlobalInBTArray()
Definition: ShowRec.cpp:8986
Float_t shower_chi2btkb[5000]
Definition: ShowRec.h:384
void ReconstructShowers_OPENMP()
Definition: ShowRec.cpp:2398
Int_t GLOBAL_NBTallMC
Definition: ShowRec.h:36
Double_t GLOBAL_EvtBT_TanThetaArray[99999]
Definition: ShowRec.h:52
Float_t shower_zb[5000]
Definition: ShowRec.h:375
TH1F * var_NN__SG__nseg_TestBT_To2BeforePlate
Definition: ShowRec.h:237
TH1F * var_NN__BG__min_dT_TestBT_ToBeforePlate
Definition: ShowRec.h:303
Int_t GetNSegBeforeAndAfter(EdbPVRec *local_gAli, Int_t patterloop_cnt, EdbSegP *seg, Int_t n_patterns, Int_t BeforeOrAfter)
Definition: ShowRec.cpp:7462
TH1F * var_NN__BG__nseg_TestBT_ToAfterPlate
Definition: ShowRec.h:246
Bool_t GLOBAL_IsBrickTreePGunInfo
Definition: ShowRec.h:82
Double_t GLOBAL_EvtBT_TanTheta
Definition: ShowRec.h:50
TH1F * var_NN__ALL__nseg_TestBT_To2BeforePlate
Definition: ShowRec.h:239
TH1F * var_NN__ALL__mean_dR_TestBT_ToBeforePlate
Definition: ShowRec.h:256
TH1F * var_NN__ALL__nseg_TestBT_ToSamePlate
Definition: ShowRec.h:243
Float_t value_GSNN_var04
Definition: ShowRec.h:422
TH1F * var_NN__BG__nseg_TestBT_To2BeforePlate
Definition: ShowRec.h:238
void CalcEfficencyNumbers(EdbPattern *pat_interim, Int_t MCCheck, Int_t &NBT_Neff, Int_t &NBTMC_Neff, Int_t &NBTMCe_Neff)
Definition: ShowRec.cpp:8771
TH2F * Hist2DimBGAndSimOneEventOneGroupedPlate[50]
Definition: ShowRec.h:352
TH1F * var_NN__SG__min_dR_TestBT_ToBeforePlate
Definition: ShowRec.h:294
Int_t cmd_STOPLEVEL
Definition: ShowRec.h:34
Float_t shower_deltarb[5000]
Definition: ShowRec.h:378
TH1F * var_NN__ALL__min_dT_TestBT_ToBeforePlate
Definition: ShowRec.h:304
void ReconstructShowers_CT()
Definition: ShowRec.cpp:2462
TTree * TREE_ShowShower
Definition: ShowRec.h:68
Float_t shower_xb[5000]
Definition: ShowRec.h:373
void RewriteSegmentPIDs_SGPID_To_BGPID(EdbPVRec *gAli)
Definition: ShowRec.cpp:6139
Int_t GLOBAL_EvtBT_Flag
Definition: ShowRec.h:49
Int_t cmd_FZHP
Definition: ShowRec.h:22
Int_t cmd_EXTHETA
Definition: ShowRec.h:29
void RewriteSegmentPIDs_BGPID_To_SGPID(EdbPVRec *gAli)
Definition: ShowRec.cpp:6149
TH1F * var_NN__ALL__min_dR_TestBT_To2AfterPlate
Definition: ShowRec.h:328
TH1F * var_NN__SG__min_dT_TestBT_ToAfterPlate
Definition: ShowRec.h:322
Double_t GLOBAL_pure
Definition: ShowRec.h:37
TH1F * var_NN__BG__min_dT_TestBT_To2AfterPlate
Definition: ShowRec.h:331
Float_t shower_txb[5000]
Definition: ShowRec.h:376
Float_t shower_axis_yb
Definition: ShowRec.h:397
Int_t cmd_MC
Definition: ShowRec.h:20
Int_t shower_plateb[5000]
Definition: ShowRec.h:391
Float_t shower_axis_xb
Definition: ShowRec.h:396
Int_t shower_ntrace1simub[5000]
Definition: ShowRec.h:385
void FillShowerAxis()
Definition: ShowRec.cpp:8794
Int_t cmd_GBMC
Definition: ShowRec.h:28
TObjArray * GLOBAL_InBTArray
Definition: ShowRec.h:74
void CreateOutPutStructures()
Definition: ShowRec.cpp:448
TH1F * var_NN__SG__min_dT_TestBT_To2AfterPlate
Definition: ShowRec.h:330
Int_t ParaSetNr
Definition: CreateParaset_BW_Alg.C:23
Definition: EdbPVRec.h:148
Definition: EdbPattern.h:280
Definition: EdbSegP.h:18
Definition: EdbVertex.h:68
EdbPVRec gAli
Definition: emvertex.cpp:20
TMultiLayerPerceptron * mlp
Definition: testBGReduction_By_ANN.C:61
EdbSegP * s1
Definition: tlg2pattern.C:30
EdbSegP * s2
Definition: tlg2pattern.C:31
EdbSegP * s
Definition: tlg2pattern.C:32