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