FEDRA emulsion software from the OPERA Collaboration
EdbShowRec.h
Go to the documentation of this file.
1#ifndef ROOT_EdbShowRec
2#define ROOT_EdbShowRec
3
4#include "TROOT.h"
5#include "TFile.h"
6#include "TVector3.h"
7#include "TIndexCell.h"
8#include "TArrayF.h"
9#include "TBenchmark.h"
10#include "TCut.h"
11#include "TEventList.h"
12#include "TSystem.h"
13
14#include "TMLPAnalyzer.h"
15#include "TMultiLayerPerceptron.h"
16
17#include "EdbVertex.h"
18#include "EdbPVRec.h"
19#include "EdbPhys.h"
20#include "EdbMath.h"
22#include "EdbLog.h"
23#include "EdbPattern.h"
24// Needed for vtx-IP calculation
25#include "EdbEDAUtil.h"
26
27#include "EdbShowAlg.h"
28#include "EdbShowAlg_GS.h"
29#include "EdbShowAlg_NN.h"
30#include "EdbShowAlgE.h"
31#include "EdbShowerP.h"
32
33
34using namespace std;
35
36
37
38//______________________________________________________________________________
39
40class EdbShowRec : public TObject {
41
42
43private:
44
45
46 // -------------------------------------------------------
47 // main private variables used for this Object:
48
49 // What shall instance do?
50 // Main big subs settings invoking the different modules:
53 Int_t eDoId;
54 Int_t eDoEnergy;
56
57 // EdbPVRec object:
59 Int_t eAliNpat;
60 Bool_t eAliLoaded;
61 // TObjArray storing Initiator Basetracks:
62 TObjArray* eInBTArray;
66 // TObjArray storing EdbShowAlg for the reconstructions:
67 TObjArray* eShowAlgArray;
72 // TObjArray storing reconstructed showers (objects of EdbShowerP class):
73 TObjArray* eRecoShowerArray;
75
76 // TTree storing reconstructed showers (objects of "treebranch" TTree, when reading Shower.root file):
77 // (backward compability)
79
80
81
82 // variables used for setting the reconstruction "area", i.e. the plates.
83 // note that these numbers refer to the eAli object and do not get bigger
84 // than this object allows.
85 // These variables are valid in the "global" EdbShowRecFrame, which means
86 // That the lowest Z of eAli Object is labeled with eFirstPlate
87 // whereas the highest Z of eAli Object is labeled with eLastPlate
92
93 // These variables are valid in the eAli frame. Therefore not necessary
94 // identical to the ones above.
99
100 // These are proposed variables to store when default.par file is read via ReadShowRecPar()
101 // Since the original values are not known at this time it is not possible to override them
102 // without checking, that why they are saved interimly here
107
108
109 Float_t eAliZMax;
110 Float_t eAliZMin;
113
114 // "Upstream" or "Downstream"
117
118 // Values for plate labeling of eAli is set?
120
121
122 // Values specifiying the actual algorithm and parameter set number
125
126
127 // Variables specifiying the possible parametrization types for the showers:
128 Int_t eParaTypes[8];
129 TString eParaNames[8];
130
131
132 // Variables used for naming the files to read/write the specified
133 // data structures or specified objects.
134 // Read:
138 TString eFilename_In_shower; // File containing showers in "EdbShowerP"
139 TString eFilename_In_treebranch; // File containing showers in "treebranch"
142 TFile* eFile_In_shower; // File containing showers in "EdbShowerP" format
143 TFile* eFile_In_treebranch; // File containing showers in "treebranch" format
144
145 // Write:
146 TString eFilename_Out_shower; // File containing showers in "EdbShowerP" format
147 TString eFilename_Out_treebranch; // File containing showers in "treebranch" format
150 TFile* eFile_Out_shower; // File containing showers in "EdbShowerP" format
151 TFile* eFile_Out_treebranch; // File containing showers in "treebranch" format
152
153
154
155 // The names of reconstructed Objects follows the convention:
156 // if only one algo,paraset, then its simply "shower" or "treebranch"
157 // if more than one, then its followed by the algorithm acronym and paraset number:
158 // for example "treebranch_SA_12" ("SA" algorithm, paraset12)
159 TString eName_Out_shower; // name of shower objects in "EdbShowerP" format
160 TString eName_Out_treebranch; // name of shower objects in "EdbShowerP" format
161
162
163
164
165 // variables, to tell wheter to take Initiator BT from:
166 // a) from a linked_tracks.root file (LT)
167 // b) from a gAli.root file (PVREC)
168 // c) from the BaseTracks of the eAli object (AliBT)
169 // d) from a (manually) written root file containing a TObjArray of EdbSegP segments (InBT)
170 // e) from else ( either seg, track, pattern or volume, given by SetInBTArray ... )
171 Bool_t eUse_LT;
177 Int_t eUseNr;
178
179 // Used to apply TCut on segments:
180 TCut* eInBTCuts[3];
181 TTree* eInBTTree; // Tree for interim storing InBTs
182
183 // Fraction of InBTs to be taken (in case of setting volume or pattern as Input)
185
186
187 // Use the small eAli object (from ExtractSubpattern) or the whole
188 // eAli object for reconstruction:
190
191
192
193
194
195 // -------------------------------------------------------
196 // private functions:
197
198 void Set0(); // Default Reseting of object pointer adresses
199 void Init(); // Default Resetting of internal variables.
200
201
202 // Check that consistency of the plate numbers with the given eAli object.
203 void CheckPlateValues();
204
205 // Set plate numbers determined by the eAli object only.
207
208
209
210
211 // Function to create the eShowAlgArray if it is not already done (in Constructor or by SetShowAlgArray())
213
214 // Function to fill the eShowAlgArray if it is not already done (in Constructor or by SetShowAlgArray())
215 void Fill_eShowAlgArray();
216
217 // Function to add algorithm instances to the eShowAlgArray
218 void AddAlg(Int_t AlgType, Float_t* par);
219 // Function to reset all added algorithm instances to the eShowAlgArray
220 void ResetShowAlgArray();
221
222// AddAlg(Int_t AlgType, Float* par)
223
224
225 // Function to reset the kind of filling the eInBTArray:
226 void ResetUse_InBTType();
227
228 // Function to create the eInBTArray if it is not already done (in Constructor or by SetInBTArray())
229 void Create_eInBTArray();
230
231// Check that consistency of Initiator BT array:
232// void Check_eInBTArray();
233
234 // Function to create the eInBTTree which is used for CutString when filling eInBTArray
235 void Create_eInBTTree();
236
237 // Function to apply cuts on the eInBTTree and fill the eInBTArray
239
240 // Function to fill the eInBTArray if it is not already done (in Constructor or by SetInBTArray())
241 void Fill_eInBTArray(Int_t FilType);
246
247
248 // Function to add InBT cut, which is used to select the initiator basetracks:
249 void Add_INBTCut(Int_t layer, TCut &cut);
250
251
252 // Function to set names of treebranch and shower objects used to write in file.
253 void SetOutNames();
254
255
256 // Make Parametrizations for the stored showers in the eRecoShowerArray
259
260
262 void Write_RecoShowerArray(TObjArray* RecoShowerArray);
263
264
265
266 // Main functions for using this ShowerReconstruction Object.
267 // Structure is made similar to OpRelease, where
268 // Initialize, Execute, Finalize
269 // give the three columns of the whole thing.
270 void Initialize();
271 void Execute();
272 void Finalize();
273
274
275
276protected:
277
278
279
280
281public:
282
283
286 EdbShowRec(EdbPVRec* gAli, TObjArray* InBTArray);
287 EdbShowRec(EdbPVRec* gAli, TObjArray* InBTArray, EdbShowAlg* StandardAlg);
288 EdbShowRec(EdbPVRec* gAli, TObjArray* InBTArray,TObjArray* ShowAlgArray);
289// EdbShowRec(TString treebranchFileName); // DEBUG // doesnt work, see explanation in .cxx file
290 EdbShowRec(TString treebranchFileName, TString treebranchName);
291 EdbShowRec(TString TxtFileName, Int_t TxtFileType);
292
293 virtual ~EdbShowRec(); // virtual constructor due to inherited class
294
295 // Reconstruct showers: invoke all methods availible for all reconstruction things.
296 void Reconstruct();
297 // Quick Test functions for fast debugging...
298 void ReconstructTEST();
301 void ReconstructTEST_CA();
302 void ReconstructTEST_OI();
303 void ReconstructTEST_NN();
304 void ReconstructTEST_N3();
305
306
307 // Reset Functions:
308
309 // reset all values to the standard ones.
310 void Reset();
312 void ResetInBTArray();
313
314
315 // Set Functions:
316
317 // General Tasks of Class
318 inline void SetDoReconstruction( Int_t dospec ) {
319 eDoReconstruction = dospec;
320 }
321 inline void SetDoParametrisation( Int_t dospec ) {
322 eDoParametrization = dospec;
323 }
324 inline void SetDoId( Int_t dospec ) {
325 eDoId = dospec;
326 }
327 inline void SetDoEnergy( Int_t dospec ) {
328 eDoEnergy = dospec;
329 }
330 inline void SetDoVtxAttach( Int_t dospec ) {
331 eDoVtxAttach = dospec;
332 }
333
334 // Specific Tasks of Class
335 inline void SetEdbPVRec( EdbPVRec* Ali ) {
336 eAli = Ali;
338 }
339 inline void ResetINBTArray() {
340 eInBTArray->Clear();
341 eInBTArrayN=0;
342 }
343 inline void SetInBTArray( EdbPVRec* Ali ) {
345 AddInBTArray(Ali);
346 }
347 inline void SetInBTArray( EdbPattern* pattern ) {
349 AddInBTArray(pattern);
350 }
351 inline void SetInBTArray( EdbTrackP* track ) {
352 cout << " TO BE IMPLEMENTED !!! 13. 09. 2017 !!! Set InBTArray from a EdbTrackP object " << endl;
355 }
356 inline void SetInBTArray( EdbSegP* seg ) {
358 AddInBT(seg);
359 }
360 inline void SetInBTArray( TObjArray* InBTArray ) {
361 eInBTArray = InBTArray;
362 eInBTArrayN=eInBTArray->GetEntries();
363 }
364 inline void SetInBTArrayFraction( Double_t InBTArrayFraction ) {
365 if (InBTArrayFraction>1) {
366 cout << "WARNUNG ..... InBTArrayFraction > 1. Set to 1." << endl;
368 }
369 else {
370 eInBTArrayFraction=InBTArrayFraction;
371 }
372 }
373
374 inline void SetInBTUseNr( Int_t UseNr ) {
375 eUseNr = UseNr;
376 }
377 inline void SetShowAlgArray( TObjArray* ShowAlgArray ) {
378 eShowAlgArray = ShowAlgArray;
379 eShowAlgArrayN=eShowAlgArray->GetEntries();
380 }
381 inline void SetRecoShowerArray( TObjArray* RecoShowerArray) {
384 }
385 inline void SetInBTArrayN(Int_t InBTArrayN) {
386 eInBTArrayN = InBTArrayN;
387 }
388 inline void SetShowAlgArrayN(Int_t ShowAlgArrayN) {
389 eShowAlgArrayN = ShowAlgArrayN;
390 }
391 inline void SetRecoShowerArrayN(Int_t RecoShowerArrayN) {
392 eRecoShowerArrayN = RecoShowerArrayN;
393 }
394
395
396
397
398 inline void SetFirstPlate( Int_t FirstPlate ) {
399 eFirstPlate = FirstPlate;
400 }
401 inline void SetLastPlate( Int_t LastPlate ) {
402 eLastPlate = LastPlate;
403 }
404 inline void SetMiddlePlate( Int_t MiddlePlate ) {
405 eMiddlePlate = MiddlePlate;
406 }
407 inline void SetNumberPlate( Int_t NumberPlate ) {
408 eNumberPlate = NumberPlate;
409 }
410
411 void SetFirstPlate_eAliPID(Int_t FP, Int_t StreamTypeStep);
412 void SetLastPlate_eAliPID(Int_t plate, Int_t StreamTypeStep);
413 void SetMiddlePlate_eAliPID(Int_t plate, Int_t StreamTypeStep);
414 void SetNumberPlate_eAliPID(Int_t plate, Int_t StreamTypeStep);
415
416 inline void SetShowName(TString Name_Out_shower) {
417 eName_Out_shower = Name_Out_shower;
418 }
419 inline void SetWriteFileShower(Int_t WriteFileShower) {
420 eWriteFileShower = WriteFileShower;
421 }
422 inline void SetTreebranchName(TString Name_Out_treebranch) {
423 eName_Out_treebranch = Name_Out_treebranch;
424 }
425
426 inline void SetShowFileName(TString Filename_Out_shower) {
427 eFilename_Out_shower = Filename_Out_shower;
428 }
429 inline void SetWriteFileTreebranch(Int_t WriteFileTreebranch) {
430 eWriteFileTreebranch = WriteFileTreebranch;
431 }
432 inline void SetTreebranchFileName(TString Filename_Out_treebranch) {
433 eFilename_Out_treebranch = Filename_Out_treebranch;
434 }
435
436 void SetSimpleFileName(Int_t type, Int_t dotype);
437
438 void SetDoParaType(Int_t type);
439 void SetDoParaType(TString typestring);
440 void SetUseAliSub(Int_t type);
441
442
443 // Add Functions:
444 // Add Volume
445 void AddEdbPVRec( EdbPVRec* Ali );
446 // Add Initiator Basetracks Array
447 void AddInBTArray( TObjArray* InBTArray );
448 void AddInBT(EdbSegP* segment);
449 void AddInBTArray(EdbSegP* segment);
450 void AddInBTArray(EdbPattern* pattern);
451 void AddInBTArray(EdbPVRec* volume);
452 // Add Shower Algorithm Reconstruction Array
453 void AddShowAlgArray( TObjArray* ShowAlgArray );
454 // Add Array For Stored Showers
455 void AddRecoShowerArray( TObjArray* RecoShowerArray);
456
457
458
459 // Get Functions:
460 inline EdbPVRec* GetEdbPVRec( ) const {
461 return eAli;
462 }
463 inline Bool_t GetEdbPVRecLoaded() const {
464 return eAliLoaded;
465 }
466 inline TObjArray* GetInBTArray( ) const {
467 return eInBTArray;
468 }
469 inline TObjArray* GetShowAlgArray( ) const {
470 return eShowAlgArray;
471 }
472 inline TObjArray* GetRecoShowerArray( ) const {
473 return eRecoShowerArray;
474 }
475 inline EdbShowerP* GetShower(Int_t i) const {
476 return (EdbShowerP*)eRecoShowerArray->At(i);
477 }
478
479
480 inline Int_t GetInBTArrayN() const {
481 return eInBTArrayN;
482 }
483 inline Int_t GetShowAlgArrayN() const {
484 return eShowAlgArrayN;
485 }
486 inline Int_t GetRecoShowerArrayN() const {
487 return eRecoShowerArrayN;
488 }
489
490
491
492 inline Int_t GetFirstPlate( ) const {
493 return eFirstPlate;
494 }
495 inline Int_t GetLastPlate( ) const {
496 return eLastPlate;
497 }
498 inline Int_t GetMiddlePlate( ) const {
499 return eMiddlePlate;
500 }
501 inline Int_t GetNumberPlate( ) const {
502 return eNumberPlate;
503 }
504
505 inline Int_t GetProposedFirstPlate( ) const {
506 return eProposedFirstPlate;
507 }
508 inline Int_t GetProposedLastPlate( ) const {
509 return eProposedLastPlate;
510 }
511 inline Int_t GetProposedMiddlePlate( ) const {
513 }
514 inline Int_t GetProposedNumberPlate( ) const {
516 }
517
518 inline TString GetShowName( ) const {
519 return eName_Out_shower;
520 }
521 inline TString GetTreebranchName( ) const {
523 }
524 inline Int_t GetDoParaType(Int_t type) const {
525 return eParaTypes[type];
526 }
527
528
529
530
531 // Update Functions:
532 inline void Update() {
533 cout << "EdbShowRec::Update ONLY showers!"<< endl;
534 for (int i=0; i<GetRecoShowerArrayN(); ++i) GetShower(i)->Update();
535 }
536 inline void UpdateX() {
537 cout << "EdbShowRec::Update all showers and build their parametrisations!"<< endl;
538 for (int i=0; i<GetRecoShowerArrayN(); ++i) GetShower(i)->UpdateX();
539 }
540
541
542
546 // Check that consistency of Initiator BT array:
547 void Check_eInBTArray();
553
554
555
556 // -------------------------------------------------------------
557 // Public functions to be used from any class instances:
558
559 // Function to convert the eRecoShowerArray into an "treebranch" tree
561 // Function to convert a "treebranch" tree into an eRecoShowerArray
562 void Treebranch_To_RecoShowerArray(TObjArray* showarr, TTree* treebranch);
563
564 // Function to convert a txtfile with segments lists into an eRecoShowerArray
566 void TxtToRecoShowerArray(TString TxtFileName, Int_t TxtFileType);
567 void TxtToRecoShowerArray_FeedBack(TString TxtFileName);
568 void TxtToRecoShowerArray_SimpleList(TString TxtFileName);
569 void TxtToRecoShowerArray_SimpleListNagoya(TString TxtFileName);
570 void TxtToRecoShowerArray_EDAList(TString TxtFileName);
571
572
573 // test: Write the Parametrisation from the eRecoShowerArray into a tree.
574 // (satisfies backward compability).
575 void WriteParametrisation_FJ(); //0
576 void WriteParametrisation_LT(); //1
577 void WriteParametrisation_YC(); //2
578 void WriteParametrisation_JC(); //3
579 void WriteParametrisation_XX(); //4
580 void WriteParametrisation_YY(); //5
582 void WriteParametrisation_AS(); //7
583 void WriteParametrisation_SE(); //8
584
586
587 // Make MCInfo structures for the stored showers in the eRecoShowerArray:
588 void BuildParametrizationsMCInfo(TString MCInfoFilename, Int_t type);
589 void BuildParametrizationsMCInfo_PGun(TString MCInfoFilename);
590 void BuildParametrizationsMCInfo_Event(TString MCInfoFilename);
592 void ExtendParametrisation_ExtraInfo(); // works only if there is a WriteParametrisation_MCInfo_PGun done.
593
594
595 // Write Reconstructed Showers to File:
601
602
603 // File Status Functions
604 void CheckFilePresence();
605 bool FileExists(string strFilename);
606
607 // Read parameters out of default.par file
608 int ReadShowRecPar(const char *file);
609
610
611 // Many Print Functions:
612 void Print();
613 void PrintMore();
614 void PrintAll();
615 void PrintRecoShowerArray(Int_t entry=-1);
616 void PrintRecoShowerArrayFast(Int_t entry=-1);
617 void PrintParametrisation(Int_t ParaNr);
618
619 // Print functions (mainly for debug mode)
620 void Print_UseInBTType();
621 void Print_InBTCut(Int_t layer);
622 void Print_InBTArray();
623
624
625 //-C- HELP function , in case you dont know anything about it .....
626 void Help();
627
628 ClassDef(EdbShowRec,1); // Root Class Definition for my Objects
629};
630
631
632//______________________________________________________________________________
633
634#endif /* ROOT_EdbShowRec */
TLegendEntry * entry
Definition: Canv_SYSTEMATICS_ALLCOMBINED__RMSEnergy__vs__Energy__ELECTRON.C:130
TObjArray * RecoShowerArray
Definition: Shower_E_FromShowerRoot.C:12
Definition: EdbPVRec.h:148
Definition: EdbPattern.h:273
Int_t Npatterns() const
Definition: EdbPattern.h:366
Definition: EdbSegP.h:21
Definition: EdbShowAlg.h:40
Definition: EdbShowRec.h:40
Bool_t eInBTArrayLoaded
Definition: EdbShowRec.h:64
void Create_eShowAlgArray()
Definition: EdbShowRec.cxx:1719
TTree * eInBTTree
root-style text cuts
Definition: EdbShowRec.h:181
TFile * eFile_Out_shower
Definition: EdbShowRec.h:150
TString eFilename_Out_treebranch
Definition: EdbShowRec.h:147
void Set0()
Definition: EdbShowRec.cxx:358
void ReconstructTEST_OI()
Definition: EdbShowRec.cxx:765
void SetInBTUseNr(Int_t UseNr)
Definition: EdbShowRec.h:374
Bool_t eUse_AliBT
Definition: EdbShowRec.h:173
void BuildParametrizationsMCInfo(TString MCInfoFilename, Int_t type)
Definition: EdbShowRec.cxx:5010
void SetInBTArrayFraction(Double_t InBTArrayFraction)
Definition: EdbShowRec.h:364
Bool_t eUseAliSub
Definition: EdbShowRec.h:189
Int_t eDoParametrization
Definition: EdbShowRec.h:52
int ReadShowRecPar(const char *file)
Definition: EdbShowRec.cxx:1978
void ReconstructTEST_CA()
Definition: EdbShowRec.cxx:700
void SetSimpleFileName(Int_t type, Int_t dotype)
Definition: EdbShowRec.cxx:3859
void PrintRecoShowerArray(Int_t entry=-1)
Definition: EdbShowRec.cxx:3501
void WriteParametrisation_SE()
Definition: EdbShowRec.cxx:4802
Int_t eFirstPlate_eAliPID
Definition: EdbShowRec.h:95
bool FileExists(string strFilename)
Definition: EdbShowRec.cxx:3938
void PrintRecoShowerArrayFast(Int_t entry=-1)
Definition: EdbShowRec.cxx:3475
Int_t eUseNr
Definition: EdbShowRec.h:177
void SetTreebranchName(TString Name_Out_treebranch)
Definition: EdbShowRec.h:422
void SetTreebranchFileName(TString Filename_Out_treebranch)
Definition: EdbShowRec.h:432
void ResetRecoShowerArray()
Definition: EdbShowRec.cxx:464
void WriteParametrisation_JC()
Definition: EdbShowRec.cxx:4186
TString eName_Out_treebranch
Definition: EdbShowRec.h:160
void WriteRecoShowerArray(TObjArray *RecoShowerArray)
void WriteParametrisation_LT()
Definition: EdbShowRec.cxx:4312
void SetLastPlate(Int_t LastPlate)
Definition: EdbShowRec.h:401
TObjArray * GetInBTArray() const
Definition: EdbShowRec.h:466
void TxtToRecoShowerArray_FeedBack(TString TxtFileName)
Definition: EdbShowRec.cxx:2434
void SetUseAliSub(Int_t type)
Definition: EdbShowRec.cxx:3916
void PrintMore()
Definition: EdbShowRec.cxx:3746
Int_t GetShowAlgArrayN() const
Definition: EdbShowRec.h:483
TString eName_Out_shower
Definition: EdbShowRec.h:159
Int_t eDoReconstruction
Definition: EdbShowRec.h:51
void ExtendParametrisation_ExtraInfo()
Definition: EdbShowRec.cxx:5144
TObjArray * eInBTArray
Definition: EdbShowRec.h:62
Bool_t eAliLoaded
Definition: EdbShowRec.h:60
void Fill_eInBTArray_ByRecoLinkTracks_eAli()
Definition: EdbShowRec.cxx:1285
Bool_t eWriteFileShower
Definition: EdbShowRec.h:148
void Print_UseInBTType()
Definition: EdbShowRec.cxx:2305
Bool_t eUse_PVREC
Definition: EdbShowRec.h:172
void WriteParametrisation_YC()
Definition: EdbShowRec.cxx:4077
Bool_t Check_Fill_eInBTArray_ByBaseTracksOf_RootFile()
Definition: EdbShowRec.cxx:1204
Int_t GetProposedMiddlePlate() const
Definition: EdbShowRec.h:511
TString GetTreebranchName() const
Definition: EdbShowRec.h:521
void Add_INBTCut(Int_t layer, TCut &cut)
Definition: EdbShowRec.cxx:2323
Bool_t eWriteFileTreebranch
Definition: EdbShowRec.h:149
Int_t GetNumberPlate() const
Definition: EdbShowRec.h:501
void ReconstructTEST_NN()
Definition: EdbShowRec.cxx:830
EdbPVRec * eAli
Definition: EdbShowRec.h:58
void AddShowAlgArray(TObjArray *ShowAlgArray)
Definition: EdbShowRec.cxx:5452
void Initialize()
Definition: EdbShowRec.cxx:1833
void WriteParametrisation_ExtraInfo()
Definition: EdbShowRec.cxx:4903
Int_t eInBTArrayN
Definition: EdbShowRec.h:63
void SetWriteFileShower(Int_t WriteFileShower)
Definition: EdbShowRec.h:419
TObjArray * GetRecoShowerArray() const
Definition: EdbShowRec.h:472
Int_t GetRecoShowerArrayN() const
Definition: EdbShowRec.h:486
TFile * eFile_In_shower
Definition: EdbShowRec.h:142
Bool_t Check_Fill_eInBTArray_ByLinkTracks_eFilename_LinkedTracks()
Definition: EdbShowRec.cxx:1196
Int_t eAliZMinPID
Definition: EdbShowRec.h:112
void SetPlateNumberValues()
Definition: EdbShowRec.cxx:1601
Bool_t eUse_ROOTInBT
Definition: EdbShowRec.h:175
void RecoShowerArray_To_Treebranch()
Definition: EdbShowRec.cxx:2889
void WriteParametrisation_FJ()
Definition: EdbShowRec.cxx:3956
void Update()
Definition: EdbShowRec.h:532
void SetInBTArray(EdbPattern *pattern)
Definition: EdbShowRec.h:347
TString GetShowName() const
Definition: EdbShowRec.h:518
TObjArray * eRecoShowerArray
Definition: EdbShowRec.h:73
void AddEdbPVRec(EdbPVRec *Ali)
Definition: EdbShowRec.cxx:5333
void Write_RecoShowerArray(TObjArray *RecoShowerArray)
Write Reconstructed Showers to File:
Definition: EdbShowRec.cxx:1763
void SetInBTArray(TObjArray *InBTArray)
Definition: EdbShowRec.h:360
void PrintAll()
Definition: EdbShowRec.cxx:3752
Bool_t Check_eInBTArray_ByRecoLinkTracks_eAli()
Definition: EdbShowRec.cxx:1175
Int_t eInBTArrayMaxSize
Definition: EdbShowRec.h:65
void CheckPlateValues()
Definition: EdbShowRec.cxx:3663
Int_t GetFirstPlate() const
Definition: EdbShowRec.h:492
void Fill_eInBTArray_ByLinkTracks_eFilename_LinkedTracks()
Definition: EdbShowRec.cxx:1332
Int_t eAliStreamTypeStep
Definition: EdbShowRec.h:116
Int_t eLastPlate_eAliPID
Definition: EdbShowRec.h:96
Int_t eProposedFirstPlate
Definition: EdbShowRec.h:103
EdbShowAlg * eActualAlg
Definition: EdbShowRec.h:123
void SetNumberPlate(Int_t NumberPlate)
Definition: EdbShowRec.h:407
void ResetInBTArray()
Definition: EdbShowRec.cxx:479
Int_t eFirstPlate
Definition: EdbShowRec.h:88
Int_t eProposedMiddlePlate
Definition: EdbShowRec.h:105
Int_t eShowAlgArrayMaxSize
Definition: EdbShowRec.h:71
TString eParaNames[8]
Definition: EdbShowRec.h:129
Int_t eProposedNumberPlate
Definition: EdbShowRec.h:106
void SetInBTArray(EdbTrackP *track)
Definition: EdbShowRec.h:351
TString eFilename_In_treebranch
Definition: EdbShowRec.h:139
Int_t eDoVtxAttach
Definition: EdbShowRec.h:55
Int_t eAliZMaxPID
Definition: EdbShowRec.h:111
void ReconstructTEST()
Definition: EdbShowRec.cxx:634
void SetInBTArray(EdbSegP *seg)
Definition: EdbShowRec.h:356
Double_t eInBTArrayFraction
Definition: EdbShowRec.h:184
Bool_t Check_Fill_eInBTArray_ByBaseTracksOf_eAli()
Definition: EdbShowRec.cxx:1200
void SetShowName(TString Name_Out_shower)
Definition: EdbShowRec.h:416
void SetShowAlgArray(TObjArray *ShowAlgArray)
Definition: EdbShowRec.h:377
Float_t eAliZMin
Definition: EdbShowRec.h:110
TFile * eFile_Out_treebranch
Definition: EdbShowRec.h:151
void Fill_eInBTArray_ByBaseTracksOf_eAli()
Definition: EdbShowRec.cxx:1426
void WriteParametrisation_MCInfo_PGun()
Definition: EdbShowRec.cxx:5194
void Print_InBTCut(Int_t layer)
Definition: EdbShowRec.cxx:2338
void SetDoParaType(Int_t type)
Definition: EdbShowRec.cxx:3877
TTree * eRecoShowerTreetreebranch
Definition: EdbShowRec.h:78
Int_t eNumberPlate
Definition: EdbShowRec.h:91
void SetEdbPVRec(EdbPVRec *Ali)
Definition: EdbShowRec.h:335
virtual ~EdbShowRec()
Definition: EdbShowRec.cxx:350
void AddRecoShowerArray(TObjArray *RecoShowerArray)
Definition: EdbShowRec.cxx:5473
void ResetUse_InBTType()
Definition: EdbShowRec.cxx:2289
Int_t GetProposedLastPlate() const
Definition: EdbShowRec.h:508
Int_t GetMiddlePlate() const
Definition: EdbShowRec.h:498
void SetInBTArrayN(Int_t InBTArrayN)
Definition: EdbShowRec.h:385
Bool_t eUse_InBTelse
Definition: EdbShowRec.h:176
TString eFilename_LnkDef
Definition: EdbShowRec.h:135
Int_t eRecoShowerArrayN
Definition: EdbShowRec.h:74
void Check_eInBTArray()
Definition: EdbShowRec.cxx:1093
Int_t eParaTypes[8]
Definition: EdbShowRec.h:128
Int_t eDoEnergy
Definition: EdbShowRec.h:54
void ResetINBTArray()
Definition: EdbShowRec.h:339
void ReconstructTEST_N3()
Definition: EdbShowRec.cxx:879
void SetRecoShowerArrayN(Int_t RecoShowerArrayN)
Definition: EdbShowRec.h:391
void AddInBT(EdbSegP *segment)
Definition: EdbShowRec.cxx:5340
Int_t eActualAlgParameterset[10]
Definition: EdbShowRec.h:124
Bool_t eShowAlgArrayLoaded
Definition: EdbShowRec.h:70
Int_t GetProposedFirstPlate() const
Definition: EdbShowRec.h:505
TString eAliStreamType
Definition: EdbShowRec.h:115
void Finalize()
Definition: EdbShowRec.cxx:1860
Bool_t GetEdbPVRecLoaded() const
Definition: EdbShowRec.h:463
Int_t eShowAlgArraySingleN[10]
Definition: EdbShowRec.h:69
TObjArray * eShowAlgArray
Definition: EdbShowRec.h:67
void UpdateX()
Definition: EdbShowRec.h:536
void SetDoParametrisation(Int_t dospec)
Definition: EdbShowRec.h:321
void Create_eInBTTree()
Definition: EdbShowRec.cxx:1212
void TxtToRecoShowerArray_SimpleListNagoya(TString TxtFileName)
Definition: EdbShowRec.cxx:2790
void TxtToRecoShowerArray()
Definition: EdbShowRec.cxx:2352
void SetDoId(Int_t dospec)
Definition: EdbShowRec.h:324
void Init()
Definition: EdbShowRec.cxx:419
void SetDoReconstruction(Int_t dospec)
Definition: EdbShowRec.h:318
void Execute()
Definition: EdbShowRec.cxx:1846
void Treebranch_To_RecoShowerArray(TObjArray *showarr, TTree *treebranch)
Definition: EdbShowRec.cxx:3293
void SetFirstPlate(Int_t FirstPlate)
Definition: EdbShowRec.h:398
void SetShowFileName(TString Filename_Out_shower)
Definition: EdbShowRec.h:426
EdbShowerP * GetShower(Int_t i) const
Definition: EdbShowRec.h:475
void Fill_eInBTArray(Int_t FilType)
Definition: EdbShowRec.cxx:1250
void PrintParametrisation(Int_t ParaNr)
Definition: EdbShowRec.cxx:5310
Int_t eNumberPlate_eAliPID
Definition: EdbShowRec.h:98
void SetOutNames()
Definition: EdbShowRec.cxx:3528
void Fill_eInBTArray_ByBaseTracksOf_RootFile()
Definition: EdbShowRec.cxx:1498
void CheckFilePresence()
Definition: EdbShowRec.cxx:493
void Fill_eShowAlgArray()
Definition: EdbShowRec.cxx:1738
Int_t eDoId
Definition: EdbShowRec.h:53
void WriteRecoShowerArrayWithoutTTree(TObjArray *RecoShowerArray)
void Reconstruct()
Definition: EdbShowRec.cxx:929
TString eFilename_LinkedTracks
Definition: EdbShowRec.h:136
void SetNumberPlate_eAliPID(Int_t plate, Int_t StreamTypeStep)
Definition: EdbShowRec.cxx:3851
TString eFilename_Out_shower
Definition: EdbShowRec.h:146
void ReconstructTESTSTANDARD()
Definition: EdbShowRec.cxx:532
Int_t eShowAlgArrayN
Definition: EdbShowRec.h:68
void BuildParametrizations()
Definition: EdbShowRec.cxx:3759
Bool_t eReadFileShower
Definition: EdbShowRec.h:140
void WriteParametrisation_AS()
void WriteParametrisation_PP(); //6
Definition: EdbShowRec.cxx:4682
TCut * eInBTCuts[3]
Definition: EdbShowRec.h:180
Bool_t eUse_AliLT
Definition: EdbShowRec.h:174
void SetWriteFileTreebranch(Int_t WriteFileTreebranch)
Definition: EdbShowRec.h:429
void AddAlg(Int_t AlgType, Float_t *par)
Definition: EdbShowRec.cxx:3556
void TxtToRecoShowerArray_SimpleList(TString TxtFileName)
Definition: EdbShowRec.cxx:2578
EdbPVRec * GetEdbPVRec() const
Definition: EdbShowRec.h:460
Int_t eAliNpat
Definition: EdbShowRec.h:59
Int_t eMiddlePlate_eAliPID
Definition: EdbShowRec.h:97
Bool_t eUse_LT
Definition: EdbShowRec.h:171
Bool_t IsPlateValuesLabel
Definition: EdbShowRec.h:119
void Create_eInBTArray()
Definition: EdbShowRec.cxx:1071
void BuildParametrizationsMCInfo_Event(TString MCInfoFilename)
Definition: EdbShowRec.cxx:5134
void SetMiddlePlate_eAliPID(Int_t plate, Int_t StreamTypeStep)
Definition: EdbShowRec.cxx:3824
void Reset()
Definition: EdbShowRec.cxx:1805
void WriteParametrisation_YY()
Definition: EdbShowRec.cxx:4546
void ResetShowAlgArray()
Definition: EdbShowRec.cxx:3646
Int_t eProposedLastPlate
Definition: EdbShowRec.h:104
Int_t GetDoParaType(Int_t type) const
Definition: EdbShowRec.h:524
void Help()
Definition: EdbShowRec.cxx:5498
void SetLastPlate_eAliPID(Int_t plate, Int_t StreamTypeStep)
Definition: EdbShowRec.cxx:3837
ClassDef(EdbShowRec, 1)
void AddInBTArray(TObjArray *InBTArray)
Definition: EdbShowRec.cxx:5416
void Print()
Definition: EdbShowRec.cxx:1869
void SetRecoShowerArray(TObjArray *RecoShowerArray)
Definition: EdbShowRec.h:381
void SetInBTArray(EdbPVRec *Ali)
Definition: EdbShowRec.h:343
TFile * eFile_In_treebranch
Definition: EdbShowRec.h:143
void TxtToRecoShowerArray_EDAList(TString TxtFileName)
Definition: EdbShowRec.cxx:2667
Float_t eAliZMax
Definition: EdbShowRec.h:109
Int_t eMiddlePlate
Definition: EdbShowRec.h:90
void Print_InBTArray()
Definition: EdbShowRec.cxx:1959
void ReconstructTESTSHORT()
Definition: EdbShowRec.cxx:522
Int_t GetLastPlate() const
Definition: EdbShowRec.h:495
void SetDoEnergy(Int_t dospec)
Definition: EdbShowRec.h:327
TObjArray * GetShowAlgArray() const
Definition: EdbShowRec.h:469
void Cut_eInBTTree_To_InBTArray()
Definition: EdbShowRec.cxx:1550
void SetDoVtxAttach(Int_t dospec)
Definition: EdbShowRec.h:330
void SetShowAlgArrayN(Int_t ShowAlgArrayN)
Definition: EdbShowRec.h:388
TString eFilename_EdbPVRecObject
Definition: EdbShowRec.h:137
void WriteParametrisation_XX()
Definition: EdbShowRec.cxx:4428
Int_t GetProposedNumberPlate() const
Definition: EdbShowRec.h:514
void BuildParametrizationsMCInfo_PGun(TString MCInfoFilename)
Definition: EdbShowRec.cxx:5031
TString eFilename_In_shower
Definition: EdbShowRec.h:138
void BuildParametrizationsAll()
Definition: EdbShowRec.cxx:3802
void SetMiddlePlate(Int_t MiddlePlate)
Definition: EdbShowRec.h:404
Int_t GetInBTArrayN() const
Definition: EdbShowRec.h:480
void SetFirstPlate_eAliPID(Int_t FP, Int_t StreamTypeStep)
Definition: EdbShowRec.cxx:3811
Bool_t eReadFileTreebranch
Definition: EdbShowRec.h:141
Int_t eLastPlate
Definition: EdbShowRec.h:89
Definition: EdbShowerP.h:28
void UpdateX()
Definition: EdbShowerP.cxx:1000
void Update()
Definition: EdbShowerP.cxx:975
Definition: EdbPattern.h:113
Definition: bitview.h:14
TCut cut
Definition: check_shower.C:6
EdbPVRec * gAli
Definition: check_vertex.C:14
TFile * file
Definition: write_pvr.C:3
Int_t plate
Definition: merge_Energy_SytematicSources_Electron.C:1
Definition: AlignmentCint.cxx:51
Int_t type
Definition: testBGReduction_By_ANN.C:15