43 |
* This class inherites from TrkTrack, CaloTrkVar ecc... |
* This class inherites from TrkTrack, CaloTrkVar ecc... |
44 |
* |
* |
45 |
*/ |
*/ |
46 |
class PamTrack : public TrkTrack, public CaloTrkVar, public ToFTrkVar { |
//class PamTrack : public TrkTrack, public CaloTrkVar, public ToFTrkVar { |
47 |
|
class PamTrack : public TObject { |
48 |
|
|
49 |
private: |
private: |
50 |
|
|
52 |
CaloTrkVar* calo_track; |
CaloTrkVar* calo_track; |
53 |
ToFTrkVar* tof_track; |
ToFTrkVar* tof_track; |
54 |
|
|
55 |
|
bool candeleteobj; |
56 |
|
|
57 |
|
// TClonesArray *Cluster; ///< clusters (if stored) |
58 |
|
|
59 |
public: |
public: |
60 |
|
|
61 |
PamTrack(); |
PamTrack(); |
|
|
|
62 |
PamTrack(TrkTrack* , CaloTrkVar* , ToFTrkVar* ); |
PamTrack(TrkTrack* , CaloTrkVar* , ToFTrkVar* ); |
63 |
|
PamTrack(const PamTrack&); |
64 |
|
~PamTrack(){ Delete(); }; |
65 |
|
|
66 |
TrkTrack* GetTrkTrack(){return trk_track;}; |
void Clear(); |
67 |
|
void Clear(Option_t *option){Clear();}; |
68 |
|
void Delete(); |
69 |
|
|
70 |
|
TrkTrack* GetTrkTrack(){return trk_track;}; |
71 |
CaloTrkVar* GetCaloTrack(){return calo_track;}; |
CaloTrkVar* GetCaloTrack(){return calo_track;}; |
72 |
ToFTrkVar* GetToFTrack(){return tof_track;}; |
ToFTrkVar* GetToFTrack(){return tof_track;}; |
73 |
|
|
74 |
ClassDef(PamTrack,1); |
ClassDef(PamTrack,1); |
75 |
}; |
}; |
81 |
* 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. |
82 |
*/ |
*/ |
83 |
|
|
84 |
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 { |
85 |
|
class PamLevel2 : public TObject { |
86 |
|
|
87 |
private: |
private: |
88 |
public: |
public: |
103 |
|
|
104 |
GL_RUN* run_obj; |
GL_RUN* run_obj; |
105 |
|
|
|
/* 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 */ |
|
|
|
|
106 |
TTree* tree_clone[8]; |
TTree* tree_clone[8]; |
107 |
|
|
108 |
TRefArray* sorted_tracks; |
// TRefArray* sorted_tracks; |
109 |
|
// TRefArray sorted_tracks; |
110 |
|
|
111 |
|
TClonesArray *tsorted; |
112 |
|
TClonesArray *timage; |
113 |
|
|
114 |
|
|
115 |
|
PamTrack *track; //store the last required |
116 |
|
|
117 |
|
|
118 |
Bool_t CAL2; //level2 branch |
Bool_t CAL2; //level2 branch |
119 |
Bool_t CAL1; //level1 branch |
Bool_t CAL1; //level1 branch |
120 |
|
|
132 |
Bool_t RUN; |
Bool_t RUN; |
133 |
|
|
134 |
PamLevel2(); |
PamLevel2(); |
135 |
~PamLevel2(); |
~PamLevel2(){Delete();}; |
136 |
|
|
137 |
void Clear(); |
void Clear(); |
138 |
|
void Delete(); |
139 |
|
|
|
/* 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(); }; */ |
|
140 |
GL_RUN* GetRunInfo() { return run_obj; }; |
GL_RUN* GetRunInfo() { return run_obj; }; |
141 |
|
|
142 |
// ========================================= |
// ========================================= |
166 |
void SetBranchAddress(TTree *); |
void SetBranchAddress(TTree *); |
167 |
void SetBranchAddress(TChain *); |
void SetBranchAddress(TChain *); |
168 |
|
|
169 |
// ===================================== |
// ======================================================== |
170 |
// methods needed to set brach addresses |
// methods needed to retrieve subdetector general variables |
171 |
// ===================================== |
// ======================================================== |
|
/* 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(); */ |
|
172 |
void* GetPointerTo(const char*); |
void* GetPointerTo(const char*); |
173 |
|
TrkLevel1 *GetTrkLevel1() { return trk1_obj;}; |
174 |
|
TrkLevel2 *GetTrkLevel2() { return trk2_obj;}; |
175 |
|
TrkHough *GetTrkHough() { return trkh_obj;}; |
176 |
|
CaloLevel1 *GetCaloLevel1() { return calo1_obj;}; |
177 |
|
CaloLevel2 *GetCaloLevel2() { return calo2_obj;}; |
178 |
|
ToFLevel2 *GetToFLevel2() { return tof_obj;}; |
179 |
|
TrigLevel2 *GetTrigLevel2() { return trig_obj;}; |
180 |
|
S4Level2 *GetS4Level2() { return s4_obj;}; |
181 |
|
NDLevel2 *GetNDLevel2() { return nd_obj;}; |
182 |
|
AcLevel2 *GetAcLevel2() { return ac_obj;}; |
183 |
|
OrbitalInfo *GetOrbitalInfo(){ return orb_obj;}; |
184 |
|
|
185 |
// ============================================== |
// ============================================== |
186 |
// methods to retrieve subdetectors stored tracks |
// methods to retrieve subdetectors stored tracks |
187 |
// ============================================== |
// ============================================== |
188 |
TrkTrack* GetTrkStoredTrack(int seqno){return TrkLevel2::GetStoredTrack(seqno); }; |
TrkTrack* GetTrkStoredTrack(int seqno){return trk2_obj->TrkLevel2::GetStoredTrack(seqno); }; |
189 |
CaloTrkVar* GetCaloStoredTrack(int); |
CaloTrkVar* GetCaloStoredTrack(int); |
190 |
ToFTrkVar* GetToFStoredTrack(int); |
ToFTrkVar* GetToFStoredTrack(int); |
191 |
// |
// |
199 |
PamTrack* GetStoredTrack(Int_t); |
PamTrack* GetStoredTrack(Int_t); |
200 |
// |
// |
201 |
void SortTracks(TString); //assign value to variable sorted_tracks |
void SortTracks(TString); //assign value to variable sorted_tracks |
202 |
TRefArray* GetTracks(); //return sorted_tracks |
// TRefArray* GetTracks(); //return sorted_tracks |
203 |
|
TClonesArray* GetTracks(); //return sorted_tracks |
204 |
PamTrack* GetTrack(int); |
PamTrack* GetTrack(int); |
205 |
PamTrack* GetTrackImage(int); |
PamTrack* GetTrackImage(int); |
206 |
|
|
207 |
// ================================= |
// ================================= |
208 |
// other methods |
// other methods |
209 |
// ================================= |
// ================================= |
210 |
Int_t ntrk(){ return TrkLevel2::ntrk(); }; |
// Int_t ntrk(){ return trk2_obj->TrkLevel2::ntrk(); }; |
211 |
|
|
212 |
|
|
213 |
ClassDef(PamLevel2,1); |
ClassDef(PamLevel2,1); |