20 |
#include <NDLevel2.h> |
#include <NDLevel2.h> |
21 |
#include <AcLevel2.h> |
#include <AcLevel2.h> |
22 |
#include <OrbitalInfo.h> |
#include <OrbitalInfo.h> |
|
#include <OrbitalInfo.h> |
|
23 |
#include <RunInfo.h> |
#include <RunInfo.h> |
24 |
#include <GLTables.h> |
#include <GLTables.h> |
25 |
|
|
42 |
* This class inherites from TrkTrack, CaloTrkVar ecc... |
* This class inherites from TrkTrack, CaloTrkVar ecc... |
43 |
* |
* |
44 |
*/ |
*/ |
45 |
class PamTrack : public TrkTrack, public CaloTrkVar, public ToFTrkVar { |
//class PamTrack : public TrkTrack, public CaloTrkVar, public ToFTrkVar { |
46 |
|
class PamTrack : public TObject { |
47 |
|
|
48 |
private: |
private: |
49 |
|
|
51 |
CaloTrkVar* calo_track; |
CaloTrkVar* calo_track; |
52 |
ToFTrkVar* tof_track; |
ToFTrkVar* tof_track; |
53 |
|
|
54 |
|
bool candeleteobj; |
55 |
|
|
56 |
|
// TClonesArray *Cluster; ///< clusters (if stored) |
57 |
|
|
58 |
public: |
public: |
59 |
|
|
60 |
PamTrack(); |
PamTrack(); |
|
|
|
61 |
PamTrack(TrkTrack* , CaloTrkVar* , ToFTrkVar* ); |
PamTrack(TrkTrack* , CaloTrkVar* , ToFTrkVar* ); |
62 |
|
PamTrack(const PamTrack&); |
63 |
|
~PamTrack(){ Delete(); }; |
64 |
|
|
65 |
TrkTrack* GetTrkTrack(){return trk_track;}; |
void Clear(); |
66 |
|
void Clear(Option_t *option){Clear();}; |
67 |
|
void Delete(); |
68 |
|
|
69 |
|
TrkTrack* GetTrkTrack(){return trk_track;}; |
70 |
CaloTrkVar* GetCaloTrack(){return calo_track;}; |
CaloTrkVar* GetCaloTrack(){return calo_track;}; |
71 |
ToFTrkVar* GetToFTrack(){return tof_track;}; |
ToFTrkVar* GetToFTrack(){return tof_track;}; |
72 |
|
|
73 |
ClassDef(PamTrack,1); |
ClassDef(PamTrack,1); |
74 |
}; |
}; |
80 |
* This allows to solve the tracker ambiguity (that is, to choose between track images) by using also information from other detectors. |
* This allows to solve the tracker ambiguity (that is, to choose between track images) by using also information from other detectors. |
81 |
*/ |
*/ |
82 |
|
|
83 |
class PamLevel2 : public CaloLevel2, public CaloLevel1, public ToFLevel2, public TrkLevel2, public TrkLevel1, public TrkHough, public TrigLevel2, public S4Level2, public NDLevel2, public AcLevel2, public OrbitalInfo { |
//class PamLevel2 : public CaloLevel2, public CaloLevel1, public ToFLevel2, public TrkLevel2, public TrkLevel1, public TrkHough, public TrigLevel2, public S4Level2, public NDLevel2, public AcLevel2, public OrbitalInfo { |
84 |
|
class PamLevel2 : public TObject { |
85 |
|
|
86 |
private: |
private: |
87 |
|
ULong64_t runfirstentry; |
88 |
|
ULong64_t runlastentry; |
89 |
|
Int_t irun; |
90 |
|
|
91 |
public: |
public: |
92 |
|
|
93 |
TrkLevel1* trk1_obj; |
TrkLevel1* trk1_obj; |
105 |
OrbitalInfo* orb_obj; |
OrbitalInfo* orb_obj; |
106 |
|
|
107 |
GL_RUN* run_obj; |
GL_RUN* run_obj; |
108 |
|
SoftInfo* soft_obj; // Emiliano |
109 |
|
|
|
/* TrkLevel1* trk1_clone; */ |
|
|
/* TrkLevel2* trk2_clone; */ |
|
|
/* TrkHough* trkh_clone; */ |
|
|
|
|
|
/* CaloLevel1* calo1_clone; */ |
|
|
/* CaloLevel2* calo2_clone; */ |
|
|
|
|
|
/* ToFLevel2* tof_clone; */ |
|
|
/* TrigLevel2* trig_clone; */ |
|
|
/* S4Level2* s4_clone; */ |
|
|
/* NDLevel2* nd_clone; */ |
|
|
/* AcLevel2* ac_clone; */ |
|
|
/* OrbitalInfo* orb_clone; */ |
|
|
|
|
|
/* TTree* T_clone; //tracker */ |
|
|
/* TTree* C_clone; //calo */ |
|
|
/* TTree* O_clone; //tof */ |
|
|
/* TTree* R_clone; //trigger */ |
|
|
/* TTree* S_clone; //s4 */ |
|
|
/* TTree* A_clone; //anti */ |
|
|
/* TTree* N_clone; //nd */ |
|
|
/* TTree* B_clone; //orbital */ |
|
|
|
|
110 |
TTree* tree_clone[8]; |
TTree* tree_clone[8]; |
111 |
|
|
112 |
TRefArray* sorted_tracks; |
// TRefArray* sorted_tracks; |
113 |
|
// TRefArray sorted_tracks; |
114 |
|
|
115 |
|
TClonesArray *tsorted; |
116 |
|
TClonesArray *timage; |
117 |
|
|
118 |
|
|
119 |
|
PamTrack *track; //store the last required |
120 |
|
|
121 |
|
|
122 |
Bool_t CAL2; //level2 branch |
Bool_t CAL2; //level2 branch |
123 |
Bool_t CAL1; //level1 branch |
Bool_t CAL1; //level1 branch |
124 |
|
|
132 |
Bool_t ND; |
Bool_t ND; |
133 |
Bool_t AC; |
Bool_t AC; |
134 |
Bool_t ORB; |
Bool_t ORB; |
135 |
|
|
136 |
|
Bool_t RUN; |
137 |
|
|
138 |
PamLevel2(); |
PamLevel2(); |
139 |
~PamLevel2(); |
~PamLevel2(){Delete();}; |
140 |
|
|
141 |
void Clear(); |
void Clear(); |
142 |
|
void Delete(); |
143 |
|
|
144 |
/* TrkLevel1* GetTrkLevel1() { return trk1_obj; }; */ |
|
|
/* TrkLevel2* GetTrkLevel2() { return trk2_obj; }; */ |
|
|
/* TrkHough* GetTrkHough() { return trkh_obj; }; */ |
|
|
/* CaloLevel1* GetCaloLevel1() { return calo1_obj; }; */ |
|
|
/* CaloLevel2* GetCaloLevel2() { return calo2_obj; }; */ |
|
|
/* ToFLevel2* GetToFLevel2() { return tof_obj; }; */ |
|
|
/* TrigLevel2* GetTrigLevel2() { return trig_obj; }; */ |
|
|
/* S4Level2* GetS4Level2() { return s4_obj; }; */ |
|
|
/* NDLevel2* GetNDLevel2() { return nd_obj; }; */ |
|
|
/* AcLevel2* GetAcLevel2() { return ac_obj; }; */ |
|
|
/* OrbitalInfo* GetOrbitalInfo(){ return orb_obj; }; */ |
|
|
/* TrkLevel1* GetTrkLevel1() { return ; }; */ |
|
|
/* TrkLevel2* GetTrkLevel2() { return TrkLevel2::GetTrkLevel2(); }; */ |
|
|
/* TrkHough* GetTrkHough() { return TrkHough::GetTrkHough(); }; */ |
|
|
/* CaloLevel1* GetCaloLevel1() { return CaloLevel1::GetCaloLevel1(); }; */ |
|
|
/* CaloLevel2* GetCaloLevel2() { return CaloLevel2::GetCaloLevel2(); }; */ |
|
|
/* ToFLevel2* GetToFLevel2() { return ToFLevel2::GetToFLevel2(); }; */ |
|
|
/* TrigLevel2* GetTrigLevel2() { return TrigLevel2::GetTrigLevel2(); }; */ |
|
|
/* S4Level2* GetS4Level2() { return S4Level2::GetS4Level2(); }; */ |
|
|
/* NDLevel2* GetNDLevel2() { return NDLevel2::GetNDLevel2(); }; */ |
|
|
/* AcLevel2* GetAcLevel2() { return AcLevel2::GetAcLevel2(); }; */ |
|
|
/* OrbitalInfo* GetOrbitalInfo(){ return OrbitalInfo::GetOrbitalInfo(); }; */ |
|
|
GL_RUN* GetRunInfo() { return run_obj; }; |
|
|
|
|
145 |
// ========================================= |
// ========================================= |
146 |
// methods needed to read/write Level2 trees |
// methods needed to read/write Level2 trees |
147 |
// ========================================= |
// ========================================= |
159 |
|
|
160 |
TTree* GetRunTree(TFile*); |
TTree* GetRunTree(TFile*); |
161 |
TChain* GetRunTree(TList*); |
TChain* GetRunTree(TList*); |
162 |
|
TChain* GetRunTree(TString ddir,TString list){ return GetRunTree(GetListOfLevel2Files(ddir,list)); }; |
163 |
|
Bool_t UpdateRunInfo(TTree *,ULong64_t); |
164 |
|
Bool_t UpdateRunInfo(TChain *,ULong64_t); |
165 |
|
|
166 |
void CreateCloneTrees0(TChain *fChain, TFile* file); |
void CreateCloneTrees0(TChain *fChain, TFile* file); |
167 |
void CreateCloneTrees(TFile* file); |
void CreateCloneTrees(TFile* file); |
172 |
void SetBranchAddress(TTree *); |
void SetBranchAddress(TTree *); |
173 |
void SetBranchAddress(TChain *); |
void SetBranchAddress(TChain *); |
174 |
|
|
175 |
// ===================================== |
// ======================================================== |
176 |
// methods needed to set brach addresses |
// methods needed to retrieve subdetector general variables |
177 |
// ===================================== |
// ======================================================== |
|
/* void* GetPointerToTrk(); */ |
|
|
/* void* GetPointerToTrk(int s); */ |
|
|
/* void* GetPointerToCalo(); */ |
|
|
/* void* GetPointerToCalo(int s); */ |
|
|
/* void* GetPointerToToF(); */ |
|
|
/* void* GetPointerToTrig(); */ |
|
|
/* void* GetPointerToS4(); */ |
|
|
/* void* GetPointerToND(); */ |
|
|
/* void* GetPointerToAc(); */ |
|
|
/* void* GetPointerToOrb(); */ |
|
|
/* void* GetPointerToRun(); */ |
|
178 |
void* GetPointerTo(const char*); |
void* GetPointerTo(const char*); |
179 |
|
TrkLevel1 *GetTrkLevel1() { return trk1_obj;}; |
180 |
|
TrkLevel2 *GetTrkLevel2() { return trk2_obj;}; |
181 |
|
TrkHough *GetTrkHough() { return trkh_obj;}; |
182 |
|
CaloLevel1 *GetCaloLevel1() { return calo1_obj;}; |
183 |
|
CaloLevel2 *GetCaloLevel2() { return calo2_obj;}; |
184 |
|
ToFLevel2 *GetToFLevel2() { return tof_obj;}; |
185 |
|
TrigLevel2 *GetTrigLevel2() { return trig_obj;}; |
186 |
|
S4Level2 *GetS4Level2() { return s4_obj;}; |
187 |
|
NDLevel2 *GetNDLevel2() { return nd_obj;}; |
188 |
|
AcLevel2 *GetAcLevel2() { return ac_obj;}; |
189 |
|
OrbitalInfo *GetOrbitalInfo(){ return orb_obj;}; |
190 |
|
GL_RUN *GetRunInfo() { return run_obj; }; |
191 |
|
SoftInfo *GetSoftInfo() { return soft_obj; }; // Emiliano |
192 |
|
|
193 |
// ============================================== |
// ============================================== |
194 |
// methods to retrieve subdetectors stored tracks |
// methods to retrieve subdetectors stored tracks |
195 |
// ============================================== |
// ============================================== |
196 |
TrkTrack* GetTrkStoredTrack(int seqno){return TrkLevel2::GetStoredTrack(seqno); }; |
TrkTrack* GetTrkStoredTrack(int seqno){return trk2_obj->TrkLevel2::GetStoredTrack(seqno); }; |
197 |
CaloTrkVar* GetCaloStoredTrack(int); |
CaloTrkVar* GetCaloStoredTrack(int); |
198 |
ToFTrkVar* GetToFStoredTrack(int); |
ToFTrkVar* GetToFStoredTrack(int); |
199 |
// |
// |
207 |
PamTrack* GetStoredTrack(Int_t); |
PamTrack* GetStoredTrack(Int_t); |
208 |
// |
// |
209 |
void SortTracks(TString); //assign value to variable sorted_tracks |
void SortTracks(TString); //assign value to variable sorted_tracks |
210 |
TRefArray* GetTracks(); //return sorted_tracks |
// TRefArray* GetTracks(); //return sorted_tracks |
211 |
|
TClonesArray* GetTracks(); //return sorted_tracks |
212 |
PamTrack* GetTrack(int); |
PamTrack* GetTrack(int); |
213 |
PamTrack* GetTrackImage(int); |
PamTrack* GetTrackImage(int); |
214 |
|
|
215 |
// ================================= |
// ================================= |
216 |
// other methods |
// other methods |
217 |
// ================================= |
// ================================= |
218 |
Int_t ntrk(){ return TrkLevel2::ntrk(); }; |
// Int_t ntrk(){ return trk2_obj->TrkLevel2::ntrk(); }; |
219 |
|
|
220 |
|
|
221 |
ClassDef(PamLevel2,1); |
ClassDef(PamLevel2,1); |