BOSS 7.1.0
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 "TTofTrack.h"
12#include "TRecTofTrack.h"
13#include "TRecEmcHit.h"
14#include "TRecEmcCluster.h"
15#include "TRecEmcShower.h"
16#include "TRecMucTrack.h"
17#include "TRecMdcDedx.h"
18#include "TRecMdcDedxHit.h"
19#include "TRecExtTrack.h"
20#include "TRecEvTime.h"
21#include "TRecMdcKalHelixSeg.h"
22#include "TRecZddChannel.h"
23
24class TRecTrackEvent : public TObject {
25
26public:
27
29 virtual ~TRecTrackEvent();
30
31 void initialize();
32
33 void Clear(Option_t *option="");
34
35 void Print(Option_t *option="") const;
36
37
38 // inline Bool_t getFromMc() { return m_fromMc; };
39
40
41 // ********************* Dst Track ******************************/
42 /// retrieve the whole TObjArray of RecMdcTrack Data
43 const TObjArray* getRecMdcTrackCol() const { return m_recMdcTrackCol; };
44
45 /// Add a TkrTrack into the Mdc data collection
47
48 /// retrieve a MdcTrack from the collection, using the index into the array
49 const TRecMdcTrack* getRecMdcTrack(Int_t i) const;
50
51 /// clear the whole array (necessary because of the consts-s)
52 void clearRecMdcTrackCol() { m_recMdcTrackCol->Clear(); }
53
54 /// retrieve the whole TObjArray of RecMdcHit Data
55 const TObjArray* getRecMdcHitCol() const { return m_recMdcHitCol; };
56
57 /// Add a Rec Mdc Hit into the Mdc data collection
58 void addRecMdcHit(TRecMdcHit *Hit);
59
60 /// retrieve a RecMdcHit from the collection, using the index into the array
61 const TRecMdcHit* getRecMdcHit(Int_t i) const;
62 /// clear the whole array (necessary because of the consts-s)
63 void clearRecMdcHitCol() { m_recMdcHitCol->Clear(); }
64
65
66 /// retrieve the whole TObjArray of TofTrack Data
67 const TObjArray* getTofTrackCol() const { return m_recTofTrackCol; };
68
69 ///Add a TofTrack into the TOF Data collection
71
72 /// retrieve a TofTrack From the collection, using the index into the array
73 const TRecTofTrack* getTofTrack(Int_t i) const;
74
75 /// clear the whole array
76 void clearTofTrackCol() { m_recTofTrackCol->Clear();}
77
78
79 /// retrieve the whole TObjArray of EmcHit Data
80 const TObjArray* getEmcHitCol() const { return m_recEmcHitCol; };
81
82 /// Add a TkrTrack into the Emc data collection */
84
85 /// retrieve a EmcHit from the collection, using the index into the array */
86 const TRecEmcHit* getEmcHit(Int_t i) const;
87
88 /// clear the whole array (necessary because of the consts-s) */
89 void clearEmcHitCol() { m_recEmcHitCol->Clear(); }
90
91 /// retrieve the whole TObjArray of EmcCluster Data
92 const TObjArray* getEmcClusterCol() const { return m_recEmcClusterCol; };
93
94 /// Add a TkrTrack into the Emc data collection */
96
97 /// retrieve a EmcCluster from the collection, using the index into the array */
98 const TRecEmcCluster* getEmcCluster(Int_t i) const;
99
100 /// clear the whole array (necessary because of the consts-s) */
101 void clearEmcClusterCol() { m_recEmcClusterCol->Clear(); }
102
103 /// retrieve the whole TObjArray of EmcShower Data
104 const TObjArray* getEmcShowerCol() const { return m_recEmcShowerCol; };
105
106 /// Add a TkrTrack into the Emc data collection */
108
109 /// retrieve a EmcShower from the collection, using the index into the array */
110 const TRecEmcShower* getEmcShower(Int_t i) const;
111
112 /// clear the whole array (necessary because of the consts-s) */
113 void clearEmcShowerCol() { m_recEmcShowerCol->Clear(); }
114
115
116 /// retrieve the whole TObjArray of MucTrack Data
117 const TObjArray* getMucTrackCol() const { return m_recMucTrackCol; };
118
119 ///Add a MucTrack into the TOF Data collection
121
122 /// retrieve a MucTrack From the collection, using the index into the array
123 const TRecMucTrack* getMucTrack(Int_t i) const;
124
125 /// clear the whole array
126 void clearMucTrackCol() { m_recMucTrackCol->Clear();}
127
128 /// retrieve the whole TObjArray of Dedx Data
129 const TObjArray* getRecMdcDedxCol() const { return m_recMdcDedxCol; };
130
131 ///Add a Dedx into the TOF Data collection
133
134 /// retrieve a TofTrack From the collection, using the index into the array
135 const TRecMdcDedx* getRecMdcDedx(Int_t i) const;
136
137 /// clear the whole array
138 void clearRecMdcDedxCol() { m_recMdcDedxCol->Clear();}
139
140
141 /// retrieve the whole TObjArray of Dedx Data
142 const TObjArray* getRecMdcDedxHitCol() const { return m_recMdcDedxHitCol; };
143
144 ///Add a Dedx into the TOF Data collection
146
147 /// retrieve a TofTrack From the collection, using the index into the array
148 const TRecMdcDedxHit* getRecMdcDedxHit(Int_t i) const;
149
150 /// clear the whole array
151 void clearRecMdcDedxHitCol() { m_recMdcDedxHitCol->Clear();}
152
153
154
155/* /// retrieve the whole TObjArray of Ext Data */
156 const TObjArray* getExtTrackCol() const { return m_recExtTrackCol; };
157
158 ///Add a ExtTrack into the Ext Data collection
160
161/* /// retrieve a MucTrack From the collection, using the index into the array */
162 const TRecExtTrack* getExtTrack(Int_t i) const;
163
164/* /// clear the whole array */
165 void clearExtTrackCol() { m_recExtTrackCol->Clear();}
166
167 // TObjArray of MdcKal Data
168 const TObjArray* getRecMdcKalTrackCol() const { return m_recMdcKalTrackCol; }
170 const TRecMdcKalTrack* getRecMdcKalTrack(Int_t i) const;
171 void clearRecMdcKalTrackCol() { m_recMdcKalTrackCol->Clear();}
172
173 // TObjArray of MdcKalHit Data
174 const TObjArray* getRecMdcKalHelixSegCol() const { return m_recMdcKalHelixSegCol; }
176 const TRecMdcKalHelixSeg* getRecMdcKalHelixSeg(Int_t i) const;
177 void clearRecMdcKalHelixSegCol() { m_recMdcKalHelixSegCol->Clear();}
178
179
180 // TObjArray of EsTime Data
181 const TObjArray* getEvTimeCol() const { return m_recEvTimeCol; }
182 void addEvTime(TRecEvTime * Track);
183 const TRecEvTime* getEvTime(Int_t i) const;
184 void clearEvTimeCol() { m_recEvTimeCol->Clear();}
185
186 // Interfaces of RecZddChannel
187 const TObjArray* getRecZddChannelCol() const {return m_recZddChannelCol; }
189 const TRecZddChannel* getRecZddChannel(Int_t i) const;
190 void clearRecZddChannelCol() { m_recZddChannelCol->Clear(); }
191
192private:
193
194 /// data members to store Mdc data
195 static TObjArray *s_staticRecMdcTrackCol;
196 TObjArray* m_recMdcTrackCol; //->
197 static TObjArray *s_staticRecMdcHitCol;
198 TObjArray* m_recMdcHitCol; //->
199
200 static TObjArray * s_staticEmcHitCol;
201 TObjArray* m_recEmcHitCol; //->
202
203 static TObjArray * s_staticEmcClusterCol;
204 TObjArray* m_recEmcClusterCol; //->
205
206/* /// data members to store Emc track data */
207 static TObjArray * s_staticEmcShowerCol;
208 TObjArray* m_recEmcShowerCol; //->
209
210 /// data members to store Tof data
211 static TObjArray * s_staticTofTrackCol;
212 TObjArray* m_recTofTrackCol; //->
213
214 /// data members to store Muc data
215 static TObjArray *s_staticMucTrackCol;
216 TObjArray* m_recMucTrackCol; //->
217
218 /// data members to store Dedx data
219 static TObjArray * s_staticRecMdcDedxCol;
220 TObjArray* m_recMdcDedxCol; //->
221
222 /// data members to store Dedx data
223 static TObjArray * s_staticRecMdcDedxHitCol;
224 TObjArray* m_recMdcDedxHitCol; //->
225
226/* /// data members to store Ext data */
227 static TObjArray * s_staticExtTrackCol;
228 TObjArray* m_recExtTrackCol; //->
229
230/* /// data members to store MdcKal data */
231 static TObjArray * s_staticRecMdcKalTrackCol;
232 TObjArray* m_recMdcKalTrackCol; //->
233
234 /// data members to store MdcKal data
235 static TObjArray * s_staticRecMdcKalHelixSegCol;
236 TObjArray* m_recMdcKalHelixSegCol; //->
237
238 /// data members to store EvTime data
239 static TObjArray *s_staticEvTimeCol;
240 TObjArray* m_recEvTimeCol; //->
241
242 // data members to store RecZddChannel
243 static TObjArray* s_staticRecZddChannelCol;
244 TObjArray* m_recZddChannelCol; //->
245
246 ClassDef(TRecTrackEvent,8)
247
248};
249
250#endif
#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 * getExtTrackCol() const
void clearMucTrackCol()
clear the whole array
void clearRecMdcDedxCol()
clear the whole array
void clearTofTrackCol()
clear the whole array
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 addEmcCluster(TRecEmcCluster *Track)
Add a TkrTrack into the Emc 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 addRecMdcDedx(TRecMdcDedx *Track)
Add a Dedx into the TOF Data collection.
void addEmcShower(TRecEmcShower *Track)
Add a TkrTrack into the Emc data collection *‍/.
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 TRecEmcCluster * getEmcCluster(Int_t i) const
retrieve a EmcCluster from the collection, using the index into the array *‍/
void clearExtTrackCol()
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
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 addEvTime(TRecEvTime *Track)
const TObjArray * getRecZddChannelCol() const
const TRecMdcTrack * getRecMdcTrack(Int_t i) const
retrieve a MdcTrack from the collection, using the index into the array
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
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 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
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)
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()