CGEM BOSS 6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
TRecTrackEvent.h
Go to the documentation of this file.
1#ifndef ROOT_TRecTrackEvent_H
2#define ROOT_TRecTrackEvent_H 1
3
4#include "TObject.h"
5#include "TClonesArray.h"
6#include "TObjArray.h"
7
8#include "TRecMdcTrack.h"
9#include "TRecMdcKalTrack.h"
10#include "TRecMdcHit.h"
11#include "TRecCgemTrack.h"
12#include "TRecCgemSegment.h"
13#include "TRecCgemKalTrack.h"
14#include "TRecCgemHit.h"
15#include "TRecCgemCluster.h"
16#include "TTofTrack.h"
17#include "TRecTofTrack.h"
18#include "TRecEmcHit.h"
19#include "TRecEmcCluster.h"
20#include "TRecEmcShower.h"
21#include "TRecMucTrack.h"
22#include "TRecMdcDedx.h"
23#include "TRecMdcDedxHit.h"
24#include "TRecCgemDedx.h"
25#include "TRecCgemDedxHit.h"
26#include "TRecExtTrack.h"
27#include "TRecEvTime.h"
28#include "TRecMdcKalHelixSeg.h"
29#include "TRecCgemKalHelixSeg.h"
30#include "TRecZddChannel.h"
31
32class TRecTrackEvent : public TObject {
33
34public:
35
37 virtual ~TRecTrackEvent();
38
39 void initialize();
40
41 void Clear(Option_t *option="");
42
43 void Print(Option_t *option="") const;
44
45
46 // inline Bool_t getFromMc() { return m_fromMc; };
47
48
49 // ********************* Dst Track ******************************/
50 /// retrieve the whole TObjArray of RecMdcTrack Data
51 const TObjArray* getRecMdcTrackCol() const { return m_recMdcTrackCol; };
52
53 /// Add a TkrTrack into the Mdc data collection
55
56 /// retrieve a MdcTrack from the collection, using the index into the array
57 const TRecMdcTrack* getRecMdcTrack(Int_t i) const;
58
59 /// clear the whole array (necessary because of the consts-s)
60 void clearRecMdcTrackCol() { m_recMdcTrackCol->Clear(); }
61
62 /// retrieve the whole TObjArray of RecMdcHit Data
63 const TObjArray* getRecMdcHitCol() const { return m_recMdcHitCol; };
64
65 /// Add a Rec Mdc Hit into the Mdc data collection
66 void addRecMdcHit(TRecMdcHit *Hit);
67
68 /// retrieve a RecMdcHit from the collection, using the index into the array
69 const TRecMdcHit* getRecMdcHit(Int_t i) const;
70 /// clear the whole array (necessary because of the consts-s)
71 void clearRecMdcHitCol() { m_recMdcHitCol->Clear(); }
72
73 /// retrieve the whole TObjArray of RecCgemTrack Data
74 const TObjArray* getRecCgemTrackCol() const { return m_recCgemTrackCol; };
75
76 /// Add a TkrTrack into the Cgem data collection
78
79 /// retrieve a CgemTrack from the collection, using the index into the array
80 const TRecCgemTrack* getRecCgemTrack(Int_t i) const;
81
82 /// clear the whole array (necessary because of the consts-s)
83 void clearRecCgemTrackCol() { m_recCgemTrackCol->Clear(); }
84
85 /// retrieve the whole TObjArray of RecCgemSegment Data
86 const TObjArray* getRecCgemSegmentCol() const { return m_recCgemSegmentCol; };
87
88 /// Add a TkrSegment into the Cgem data collection
90
91 /// retrieve a CgemSegment from the collection, using the index into the array
92 const TRecCgemSegment* getRecCgemSegment(Int_t i) const;
93
94 /// clear the whole array (necessary because of the consts-s)
95 void clearRecCgemSegmentCol() { m_recCgemSegmentCol->Clear(); }
96
97 /// retrieve the whole TObjArray of RecCgemHit Data
98 const TObjArray* getRecCgemHitCol() const { return m_recCgemHitCol; };
99
100 /// Add a Rec Cgem Hit into the Cgem data collection
101 void addRecCgemHit(TRecCgemHit *Hit);
102
103 /// retrieve a RecCgemHit from the collection, using the index into the array
104 const TRecCgemHit* getRecCgemHit(Int_t i) const;
105 /// clear the whole array (necessary because of the consts-s)
106 void clearRecCgemHitCol() { m_recCgemHitCol->Clear(); }
107
108 /// retrive the whole TObjArray of RecCgemCluster Data
109 const TObjArray* getRecCgemClusterCol() const {return m_recCgemClusterCol;};
110
111 ///Add a Rec Cgem Cluster into the Cgem data collection
112 void addRecCgemCluster(TRecCgemCluster *Cluster);
113
114 ///retrieve a RecCgemCluster from the collection,using the index into the array
115 const TRecCgemCluster* getRecCgemCluster(Int_t i)const;
116 ///clear the whole array(necessary because of the consts-s)
117 void clearRecCgemClusterCol() {m_recCgemClusterCol->Clear();}
118
119 /// retrieve the whole TObjArray of TofTrack Data
120 const TObjArray* getTofTrackCol() const { return m_recTofTrackCol; };
121
122 ///Add a TofTrack into the TOF Data collection
124
125 /// retrieve a TofTrack From the collection, using the index into the array
126 const TRecTofTrack* getTofTrack(Int_t i) const;
127
128 /// clear the whole array
129 void clearTofTrackCol() { m_recTofTrackCol->Clear();}
130
131
132 /// retrieve the whole TObjArray of EmcHit Data
133 const TObjArray* getEmcHitCol() const { return m_recEmcHitCol; };
134
135 /// Add a TkrTrack into the Emc data collection */
136 void addEmcHit(TRecEmcHit *Track);
137
138 /// retrieve a EmcHit from the collection, using the index into the array */
139 const TRecEmcHit* getEmcHit(Int_t i) const;
140
141 /// clear the whole array (necessary because of the consts-s) */
142 void clearEmcHitCol() { m_recEmcHitCol->Clear(); }
143
144 /// retrieve the whole TObjArray of EmcCluster Data
145 const TObjArray* getEmcClusterCol() const { return m_recEmcClusterCol; };
146
147 /// Add a TkrTrack into the Emc data collection */
149
150 /// retrieve a EmcCluster from the collection, using the index into the array */
151 const TRecEmcCluster* getEmcCluster(Int_t i) const;
152
153 /// clear the whole array (necessary because of the consts-s) */
154 void clearEmcClusterCol() { m_recEmcClusterCol->Clear(); }
155
156 /// retrieve the whole TObjArray of EmcShower Data
157 const TObjArray* getEmcShowerCol() const { return m_recEmcShowerCol; };
158
159 /// Add a TkrTrack into the Emc data collection */
161
162 /// retrieve a EmcShower from the collection, using the index into the array */
163 const TRecEmcShower* getEmcShower(Int_t i) const;
164
165 /// clear the whole array (necessary because of the consts-s) */
166 void clearEmcShowerCol() { m_recEmcShowerCol->Clear(); }
167
168
169 /// retrieve the whole TObjArray of MucTrack Data
170 const TObjArray* getMucTrackCol() const { return m_recMucTrackCol; };
171
172 ///Add a MucTrack into the TOF Data collection
174
175 /// retrieve a MucTrack From the collection, using the index into the array
176 const TRecMucTrack* getMucTrack(Int_t i) const;
177
178 /// clear the whole array
179 void clearMucTrackCol() { m_recMucTrackCol->Clear();}
180
181 /// retrieve the whole TObjArray of Dedx Data
182 const TObjArray* getRecMdcDedxCol() const { return m_recMdcDedxCol; };
183
184 ///Add a Dedx into the TOF Data collection
186
187 /// retrieve a TofTrack From the collection, using the index into the array
188 const TRecMdcDedx* getRecMdcDedx(Int_t i) const;
189
190 /// clear the whole array
191 void clearRecMdcDedxCol() { m_recMdcDedxCol->Clear();}
192
193
194 /// retrieve the whole TObjArray of Dedx Data
195 const TObjArray* getRecMdcDedxHitCol() const { return m_recMdcDedxHitCol; };
196
197 ///Add a Dedx into the TOF Data collection
199
200 /// retrieve a TofTrack From the collection, using the index into the array
201 const TRecMdcDedxHit* getRecMdcDedxHit(Int_t i) const;
202
203 /// clear the whole array
204 void clearRecMdcDedxHitCol() { m_recMdcDedxHitCol->Clear();}
205
206
207 /// retrieve the whole TObjArray of Dedx Data
208 const TObjArray* getRecCgemDedxCol() const { return m_recCgemDedxCol; };
209
210 ///Add a Dedx into the TOF Data collection
212
213 /// retrieve a TofTrack From the collection, using the index into the array
214 const TRecCgemDedx* getRecCgemDedx(Int_t i) const;
215
216 /// clear the whole array
217 void clearRecCgemDedxCol() { m_recCgemDedxCol->Clear();}
218
219
220 /// retrieve the whole TObjArray of Dedx Data
221 const TObjArray* getRecCgemDedxHitCol() const { return m_recCgemDedxHitCol; };
222
223 ///Add a Dedx into the TOF Data collection
225
226 /// retrieve a TofTrack From the collection, using the index into the array
227 const TRecCgemDedxHit* getRecCgemDedxHit(Int_t i) const;
228
229 /// clear the whole array
230 void clearRecCgemDedxHitCol() { m_recCgemDedxHitCol->Clear();}
231
232
233/* /// retrieve the whole TObjArray of Ext Data */
234 const TObjArray* getExtTrackCol() const { return m_recExtTrackCol; };
235
236 ///Add a ExtTrack into the Ext Data collection
238
239/* /// retrieve a MucTrack From the collection, using the index into the array */
240 const TRecExtTrack* getExtTrack(Int_t i) const;
241
242/* /// clear the whole array */
243 void clearExtTrackCol() { m_recExtTrackCol->Clear();}
244
245 // TObjArray of MdcKal Data
246 const TObjArray* getRecMdcKalTrackCol() const { return m_recMdcKalTrackCol; }
248 const TRecMdcKalTrack* getRecMdcKalTrack(Int_t i) const;
249 void clearRecMdcKalTrackCol() { m_recMdcKalTrackCol->Clear();}
250
251 // TObjArray of MdcKalHit Data
252 const TObjArray* getRecMdcKalHelixSegCol() const { return m_recMdcKalHelixSegCol; }
254 const TRecMdcKalHelixSeg* getRecMdcKalHelixSeg(Int_t i) const;
255 void clearRecMdcKalHelixSegCol() { m_recMdcKalHelixSegCol->Clear();}
256
257 // TObjArray of CgemKal Data
258 const TObjArray* getRecCgemKalTrackCol() const { return m_recCgemKalTrackCol; }
260 const TRecCgemKalTrack* getRecCgemKalTrack(Int_t i) const;
261 void clearRecCgemKalTrackCol() { m_recCgemKalTrackCol->Clear();}
262
263 // TObjArray of CgemKalHit Data
264 const TObjArray* getRecCgemKalHelixSegCol() const { return m_recCgemKalHelixSegCol; }
266 const TRecCgemKalHelixSeg* getRecCgemKalHelixSeg(Int_t i) const;
267 void clearRecCgemKalHelixSegCol() { m_recCgemKalHelixSegCol->Clear();}
268
269
270 // TObjArray of EsTime Data
271 const TObjArray* getEvTimeCol() const { return m_recEvTimeCol; }
272 void addEvTime(TRecEvTime * Track);
273 const TRecEvTime* getEvTime(Int_t i) const;
274 void clearEvTimeCol() { m_recEvTimeCol->Clear();}
275
276 // Interfaces of RecZddChannel
277 const TObjArray* getRecZddChannelCol() const {return m_recZddChannelCol; }
279 const TRecZddChannel* getRecZddChannel(Int_t i) const;
280 void clearRecZddChannelCol() { m_recZddChannelCol->Clear(); }
281
282private:
283
284 /// data members to store Mdc data
285 static TObjArray *s_staticRecMdcTrackCol;
286 TObjArray* m_recMdcTrackCol; //->
287 static TObjArray *s_staticRecMdcHitCol;
288 TObjArray* m_recMdcHitCol; //->
289
290 /// data members to store Cgem data
291 static TObjArray *s_staticRecCgemSegmentCol;
292 TObjArray* m_recCgemSegmentCol; //->
293 static TObjArray *s_staticRecCgemTrackCol;
294 TObjArray* m_recCgemTrackCol; //->
295 static TObjArray *s_staticRecCgemHitCol;
296 TObjArray* m_recCgemHitCol; //->
297 static TObjArray *s_staticRecCgemClusterCol;
298 TObjArray* m_recCgemClusterCol;
299
300 static TObjArray * s_staticEmcHitCol;
301 TObjArray* m_recEmcHitCol; //->
302
303 static TObjArray * s_staticEmcClusterCol;
304 TObjArray* m_recEmcClusterCol; //->
305
306/* /// data members to store Emc track data */
307 static TObjArray * s_staticEmcShowerCol;
308 TObjArray* m_recEmcShowerCol; //->
309
310 /// data members to store Tof data
311 static TObjArray * s_staticTofTrackCol;
312 TObjArray* m_recTofTrackCol; //->
313
314 /// data members to store Muc data
315 static TObjArray *s_staticMucTrackCol;
316 TObjArray* m_recMucTrackCol; //->
317
318 /// data members to store Dedx data
319 static TObjArray * s_staticRecMdcDedxCol;
320 TObjArray* m_recMdcDedxCol; //->
321
322 /// data members to store Dedx data
323 static TObjArray * s_staticRecMdcDedxHitCol;
324 TObjArray* m_recMdcDedxHitCol; //->
325
326 static TObjArray * s_staticRecCgemDedxCol;
327 TObjArray* m_recCgemDedxCol; //->
328
329 /// data members to store Dedx data
330 static TObjArray * s_staticRecCgemDedxHitCol;
331 TObjArray* m_recCgemDedxHitCol; //->
332
333/* /// data members to store Ext data */
334 static TObjArray * s_staticExtTrackCol;
335 TObjArray* m_recExtTrackCol; //->
336
337/* /// data members to store MdcKal data */
338 static TObjArray * s_staticRecMdcKalTrackCol;
339 TObjArray* m_recMdcKalTrackCol; //->
340
341 /// data members to store MdcKal data
342 static TObjArray * s_staticRecMdcKalHelixSegCol;
343 TObjArray* m_recMdcKalHelixSegCol; //->
344
345/* /// data members to store CgemKal data */
346 static TObjArray * s_staticRecCgemKalTrackCol;
347 TObjArray* m_recCgemKalTrackCol; //->
348
349 /// data members to store CgemKal data
350 static TObjArray * s_staticRecCgemKalHelixSegCol;
351 TObjArray* m_recCgemKalHelixSegCol; //->
352
353 /// data members to store EvTime data
354 static TObjArray *s_staticEvTimeCol;
355 TObjArray* m_recEvTimeCol; //->
356
357 // data members to store RecZddChannel
358 static TObjArray* s_staticRecZddChannelCol;
359 TObjArray* m_recZddChannelCol; //->
360
361 ClassDef(TRecTrackEvent,9)
362
363};
364
365#endif
#define Segment
Definition TTrackBase.h:31
#define Track
Definition TTrackBase.h:30
void addRecMdcKalTrack(TRecMdcKalTrack *Track)
void Clear(Option_t *option="")
void addMucTrack(TRecMucTrack *Track)
Add a MucTrack into the TOF Data collection.
const TRecExtTrack * getExtTrack(Int_t i) const
const TObjArray * getRecCgemKalTrackCol() const
const TObjArray * getExtTrackCol() const
void clearMucTrackCol()
clear the whole array
void clearRecMdcDedxCol()
clear the whole array
void clearTofTrackCol()
clear the whole array
const TRecCgemKalTrack * getRecCgemKalTrack(Int_t i) const
void clearEmcShowerCol()
clear the whole array (necessary because of the consts-s) *‍/
const TRecMdcKalHelixSeg * getRecMdcKalHelixSeg(Int_t i) const
void addRecMdcTrack(TRecMdcTrack *Track)
Add a TkrTrack into the Mdc data collection.
void clearRecCgemDedxCol()
clear the whole array
void addEmcCluster(TRecEmcCluster *Track)
Add a TkrTrack into the Emc data collection *‍/.
void addRecCgemTrack(TRecCgemTrack *Track)
Add a TkrTrack into the Cgem data collection.
void addRecCgemDedx(TRecCgemDedx *Track)
Add a Dedx into the TOF Data collection.
void addEmcHit(TRecEmcHit *Track)
Add a TkrTrack into the Emc data collection *‍/.
void clearEmcHitCol()
clear the whole array (necessary because of the consts-s) *‍/
const TObjArray * getTofTrackCol() const
retrieve the whole TObjArray of TofTrack Data
const TObjArray * getEmcClusterCol() const
retrieve the whole TObjArray of EmcCluster Data
const TRecZddChannel * getRecZddChannel(Int_t i) const
const TRecMdcKalTrack * getRecMdcKalTrack(Int_t i) const
virtual ~TRecTrackEvent()
const TObjArray * getRecMdcDedxHitCol() const
retrieve the whole TObjArray of Dedx Data
void addRecMdcKalHelixSeg(TRecMdcKalHelixSeg *Track)
void addRecCgemSegment(TRecCgemSegment *Segment)
Add a TkrSegment into the Cgem data collection.
const TObjArray * getRecCgemSegmentCol() const
retrieve the whole TObjArray of RecCgemSegment Data
const TObjArray * getRecCgemHitCol() const
retrieve the whole TObjArray of RecCgemHit Data
void addRecMdcDedx(TRecMdcDedx *Track)
Add a Dedx into the TOF Data collection.
const TObjArray * getRecCgemKalHelixSegCol() const
void addEmcShower(TRecEmcShower *Track)
Add a TkrTrack into the Emc data collection *‍/.
void addRecCgemHit(TRecCgemHit *Hit)
Add a Rec Cgem Hit into the Cgem data collection.
void clearRecCgemKalHelixSegCol()
const TObjArray * getRecCgemDedxCol() const
retrieve the whole TObjArray of Dedx Data
const TObjArray * getRecCgemDedxHitCol() const
retrieve the whole TObjArray of Dedx Data
void clearRecMdcKalHelixSegCol()
const TRecMdcDedx * getRecMdcDedx(Int_t i) const
retrieve a TofTrack From the collection, using the index into the array
const TObjArray * getEvTimeCol() const
const TRecEvTime * getEvTime(Int_t i) const
void clearRecMdcTrackCol()
clear the whole array (necessary because of the consts-s)
const TRecCgemDedx * getRecCgemDedx(Int_t i) const
retrieve a TofTrack From the collection, using the index into the array
const TRecEmcCluster * getEmcCluster(Int_t i) const
retrieve a EmcCluster from the collection, using the index into the array *‍/
const TRecCgemSegment * getRecCgemSegment(Int_t i) const
retrieve a CgemSegment from the collection, using the index into the array
void addRecCgemKalHelixSeg(TRecCgemKalHelixSeg *Track)
const TObjArray * getEmcHitCol() const
retrieve the whole TObjArray of EmcHit Data
const TRecTofTrack * getTofTrack(Int_t i) const
retrieve a TofTrack From the collection, using the index into the array
void clearRecCgemHitCol()
clear the whole array (necessary because of the consts-s)
const TObjArray * getRecMdcDedxCol() const
retrieve the whole TObjArray of Dedx Data
const TRecEmcHit * getEmcHit(Int_t i) const
retrieve a EmcHit from the collection, using the index into the array *‍/
void clearRecCgemClusterCol()
clear the whole array(necessary because of the consts-s)
const TObjArray * getRecCgemClusterCol() const
retrive the whole TObjArray of RecCgemCluster Data
void clearRecCgemDedxHitCol()
clear the whole array
void addEvTime(TRecEvTime *Track)
const TObjArray * getRecZddChannelCol() const
void addRecCgemDedxHit(TRecCgemDedxHit *Track)
Add a Dedx into the TOF Data collection.
const TRecMdcTrack * getRecMdcTrack(Int_t i) const
retrieve a MdcTrack from the collection, using the index into the array
const TRecCgemKalHelixSeg * getRecCgemKalHelixSeg(Int_t i) const
const TObjArray * getRecCgemTrackCol() const
retrieve the whole TObjArray of RecCgemTrack Data
void addRecMdcHit(TRecMdcHit *Hit)
Add a Rec Mdc Hit into the Mdc data collection.
const TObjArray * getEmcShowerCol() const
retrieve the whole TObjArray of EmcShower Data
const TObjArray * getRecMdcTrackCol() const
retrieve the whole TObjArray of RecMdcTrack Data
void clearRecMdcHitCol()
clear the whole array (necessary because of the consts-s)
void Print(Option_t *option="") const
const TRecMdcDedxHit * getRecMdcDedxHit(Int_t i) const
retrieve a TofTrack From the collection, using the index into the array
void addRecCgemCluster(TRecCgemCluster *Cluster)
Add a Rec Cgem Cluster into the Cgem data collection.
const TRecCgemCluster * getRecCgemCluster(Int_t i) const
retrieve a RecCgemCluster from the collection,using the index into the array
const TRecEmcShower * getEmcShower(Int_t i) const
retrieve a EmcShower from the collection, using the index into the array *‍/
void clearRecMdcDedxHitCol()
clear the whole array
const TObjArray * getMucTrackCol() const
retrieve the whole TObjArray of MucTrack Data
void clearEmcClusterCol()
clear the whole array (necessary because of the consts-s) *‍/
const TObjArray * getRecMdcKalTrackCol() const
void clearRecCgemSegmentCol()
clear the whole array (necessary because of the consts-s)
void addRecCgemKalTrack(TRecCgemKalTrack *Track)
void clearRecCgemKalTrackCol()
const TRecCgemHit * getRecCgemHit(Int_t i) const
retrieve a RecCgemHit from the collection, using the index into the array
void addRecMdcDedxHit(TRecMdcDedxHit *Track)
Add a Dedx into the TOF Data collection.
void addTofTrack(TRecTofTrack *Track)
Add a TofTrack into the TOF Data collection.
const TObjArray * getRecMdcKalHelixSegCol() const
void clearRecCgemTrackCol()
clear the whole array (necessary because of the consts-s)
const TRecMucTrack * getMucTrack(Int_t i) const
retrieve a MucTrack From the collection, using the index into the array
const TRecMdcHit * getRecMdcHit(Int_t i) const
retrieve a RecMdcHit from the collection, using the index into the array
void addRecZddChannel(TRecZddChannel *dtag)
const TRecCgemTrack * getRecCgemTrack(Int_t i) const
retrieve a CgemTrack from the collection, using the index into the array
const TRecCgemDedxHit * getRecCgemDedxHit(Int_t i) const
retrieve a TofTrack From the collection, using the index into the array
void addExtTrack(TRecExtTrack *Track)
Add a ExtTrack into the Ext Data collection.
const TObjArray * getRecMdcHitCol() const
retrieve the whole TObjArray of RecMdcHit Data
void clearRecZddChannelCol()
void clearRecMdcKalTrackCol()