CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/RootEventData/bak_RootEventData-00-05-12/RootEventData/TDisTrack.h
Go to the documentation of this file.
1#ifndef RootEventData_TDisTrack_H
2#define RootEventData_TDisTrack_H 1
3#include "TObject.h"
4#include "TClonesArray.h"
5#include "TObjArray.h"
6
7#include "TRecMdcTrack.h"
8#include "TRecCgemTrack.h"
9#include "TRecCgemSegment.h"
10#include "TRecTofTrack.h"
11#include "TRecMdcHit.h"
12#include "TRecCgemHit.h"
13#include "TRecMucTrack.h"
14#include "TRecEmcShower.h"
15class TDisTrack : public TObject {
16
17public:
18
20 virtual ~TDisTrack();
21
22 void initialize();
23
24 void Clear(Option_t *option="");
25
26 void Print(Option_t *option="") const;
27
28
29 // inline Bool_t getFromMc() { return m_fromMc; };
30
31
32 // ********************* Dst Track ******************************/
33 /// retrieve the whole TObjArray of RecMdcTrack Data
34 const TObjArray* getRecMdcTrackCol() const { return m_recMdcTrackCol; };
35
36 /// Add a TkrTrack into the Mdc data collection
38
39 /// retrieve a MdcTrack from the collection, using the index into the array
40 const TRecMdcTrack* getRecMdcTrack(Int_t i) const;
41
42 /// clear the whole array (necessary because of the consts-s)
43 void clearRecMdcTrackCol() { m_recMdcTrackCol->Clear(); }
44
45 /// retrieve the whole TObjArray of RecMdcHit Data
46 const TObjArray* getRecMdcHitCol() const { return m_recMdcHitCol; };
47 /// Add a Rec Mdc Hit into the Mdc data collection
48 void addRecMdcHit(TRecMdcHit *Hit);
49 /// retrieve a RecMdcHit from the collection, using the index into the array
50 const TRecMdcHit* getRecMdcHit(Int_t i) const;
51 /// clear the whole array (necessary because of the consts-s)
52 void clearRecMdcHitCol() { m_recMdcHitCol->Clear(); }
53
54 /// retrieve the whole TObjArray of RecCgemTrack Data
55 const TObjArray* getRecCgemTrackCol() const { return m_recCgemTrackCol; };
56
57 /// Add a TkrTrack into the Cgem data collection
59
60 /// retrieve a CgemTrack from the collection, using the index into the array
61 const TRecCgemTrack* getRecCgemTrack(Int_t i) const;
62
63 /// clear the whole array (necessary because of the consts-s)
64 void clearRecCgemTrackCol() { m_recCgemTrackCol->Clear(); }
65
66 /// retrieve the whole TObjArray of RecCgemSegment Data
67 const TObjArray* getRecCgemSegmentCol() const { return m_recCgemSegmentCol; };
68
69 /// Add a TkrSegment into the Cgem data collection
71
72 /// retrieve a CgemSegment from the collection, using the index into the array
73 const TRecCgemSegment* getRecCgemSegment(Int_t i) const;
74
75 /// clear the whole array (necessary because of the consts-s)
76 void clearRecCgemSegmentCol() { m_recCgemSegmentCol->Clear(); }
77
78 /// retrieve the whole TObjArray of RecCgemHit Data
79 const TObjArray* getRecCgemHitCol() const { return m_recCgemHitCol; };
80 /// Add a Rec Cgem Hit into the Cgem data collection
81 void addRecCgemHit(TRecCgemHit *Hit);
82 /// retrieve a RecCgemHit from the collection, using the index into the array
83 const TRecCgemHit* getRecCgemHit(Int_t i) const;
84 /// clear the whole array (necessary because of the consts-s)
85 void clearRecCgemHitCol() { m_recCgemHitCol->Clear(); }
86
87 /// retrieve the whole TObjArray of TofTrack Data
88 const TObjArray* getTofTrackCol() const {
89 // std::cout<<" in TObjArray* getTofTrackCol()"<<std::endl;
90 return m_recTofTrackCol; };
91 //Add a TofTrack into the TOF Data collection
93 /// retrieve a TofTrack From the collection, using the index into the array
94 const TRecTofTrack* getTofTrack(Int_t i) const;
95 /// clear the whole array
96 void clearTofTrackCol() { m_recTofTrackCol->Clear();}
97
98 /// retrieve the whole TObjArray of MucTrack Data
99 const TObjArray* getMucTrackCol() const { return m_recMucTrackCol; };
100 ///Add a MucTrack into the TOF Data collection
102 /// retrieve a MucTrack From the collection, using the index into the array
103 const TRecMucTrack* getMucTrack(Int_t i) const;
104 /// clear the whole array
105 void clearMucTrackCol() { m_recMucTrackCol->Clear();}
106 int getMdcTrackNum();
107 int getCgemTrackNum();
108 int getCgemSegmentNum();
109 int getTofTrackNum();
110 int getEmcShowerNum();
111 int getMucTrackNum();
112 int getMdcHitNum();
113 int getCgemHitNum();
114
115/*
116 /// retrieve the whole TObjArray of TofTrack Data
117 const TObjArray* getTofTrackCol() const {
118 std::cout<<" in TObjArray* getTofTrackCol()"<<std::endl;
119 return m_recTofTrackCol; };
120
121 ///Add a TofTrack into the TOF Data collection
122 void addTofTrack(TRecTofTrack * Track);
123
124 /// retrieve a TofTrack From the collection, using the index into the array
125 const TRecTofTrack* getTofTrack(Int_t i) const;
126
127 /// clear the whole array
128 void clearTofTrackCol() { m_recTofTrackCol->Clear();}
129
130
131 /// retrieve the whole TObjArray of EmcHit Data
132 const TObjArray* getEmcHitCol() const { return m_recEmcHitCol; };
133
134 // /// Add a TkrTrack into the Emc data collection
135 void addEmcHit(TRecEmcHit *Track);
136
137 /// retrieve a EmcHit from the collection, using the index into the array
138 const TRecEmcHit* getEmcHit(Int_t i) const;
139
140 /// clear the whole array (necessary because of the consts-s)
141 void clearEmcHitCol() { m_recEmcHitCol->Clear(); }
142
143 /// retrieve the whole TObjArray of EmcCluster Data
144 const TObjArray* getEmcClusterCol() const { return m_recEmcClusterCol; };
145
146 /// Add a TkrTrack into the Emc data collection
147 void addEmcCluster(TRecEmcCluster *Track);
148
149 /// retrieve a EmcCluster from the collection, using the index into the array
150 const TRecEmcCluster* getEmcCluster(Int_t i) const;
151
152 /// clear the whole array (necessary because of the consts-s)
153 void clearEmcClusterCol() { m_recEmcClusterCol->Clear(); }
154 */
155 /// retrieve the whole TObjArray of EmcShower Data
156 const TObjArray* getEmcShowerCol() const { return m_recEmcShowerCol; };
157
158 /// Add a TkrTrack into the Emc data collection
160
161 /// retrieve a EmcShower from the collection, using the index into the array
162 const TRecEmcShower* getEmcShower(Int_t i) const;
163
164 /// clear the whole array (necessary because of the consts-s)
165 void clearEmcShowerCol() { m_recEmcShowerCol->Clear(); }
166
167/*
168 /// retrieve the whole TObjArray of MucTrack Data
169 const TObjArray* getMucTrackCol() const { return m_recMucTrackCol; };
170
171 ///Add a MucTrack into the TOF Data collection
172 void addMucTrack(TRecMucTrack * Track);
173
174 /// retrieve a MucTrack From the collection, using the index into the array
175 const TRecMucTrack* getMucTrack(Int_t i) const;
176
177 /// clear the whole array
178 void clearMucTrackCol() { m_recMucTrackCol->Clear();}
179
180 /// retrieve the whole TObjArray of Dedx Data
181 const TObjArray* getRecMdcDedxCol() const { return m_recMdcDedxCol; };
182
183 ///Add a Dedx into the TOF Data collection
184 void addRecMdcDedx(TRecMdcDedx * Track);
185
186 /// retrieve a TofTrack From the collection, using the index into the array
187 const TRecMdcDedx* getRecMdcDedx(Int_t i) const;
188
189 /// clear the whole array
190 void clearRecMdcDedxCol() { m_recMdcDedxCol->Clear();}
191
192
193 /// retrieve the whole TObjArray of Dedx Data
194 const TObjArray* getRecMdcDedxHitCol() const { return m_recMdcDedxHitCol; };
195
196 ///Add a Dedx into the TOF Data collection
197 void addRecMdcDedxHit(TRecMdcDedxHit * Track);
198
199 /// retrieve a TofTrack From the collection, using the index into the array
200 const TRecMdcDedxHit* getRecMdcDedxHit(Int_t i) const;
201
202 /// clear the whole array
203 void clearRecMdcDedxHitCol() { m_recMdcDedxHitCol->Clear();}
204
205
206
207 /// retrieve the whole TObjArray of Ext Data
208// const TObjArray* getExtTrackCol() const { return m_extTrackCol; };
209
210 ///Add a ExtTrack into the Ext Data collection
211 // void addExtTrack(TRecExtTrack * Track);
212 */
213/* /// retrieve a MucTrack From the collection, using the index into the array */
214 // const TRecExtTrack* getExtTrack(Int_t i) const;
215
216/* /// clear the whole array */
217 // void clearExtTrackCol() { m_extTrackCol->Clear();}
218
219 /* // TObjArray of MdcKal Data
220 const TObjArray* getRecMdcKalTrackCol() const { return m_recMdcKalTrackCol; };
221 void addRecMdcKalTrack(TRecMdcKalTrack * Track);
222 const TRecMdcKalTrack* getRecMdcKalTrack(Int_t i) const;
223 void clearRecMdcKalTrackCol() { m_recMdcKalTrackCol->Clear();}
224
225 // TObjArray of EsTime Data
226 const TObjArray* getEvTimeCol() const { return m_recEvTimeCol; };
227 void addEvTime(TRecEvTime * Track);
228 const TRecEvTime* getEvTime(Int_t i) const;
229 void clearEvTimeCol() { std::cout<<"in clearEvTimeCol"<<std::endl; m_recEvTimeCol->Clear();}
230
231*/
232
233private:
234
235 /// data members to store Mdc data
236 TObjArray* m_recMdcTrackCol; //->
237 TObjArray* m_recCgemTrackCol; //->
238 TObjArray* m_recCgemSegmentCol; //->
239 TObjArray* m_recTofTrackCol; //->
240 TObjArray* m_recMdcHitCol; //->
241 TObjArray* m_recCgemHitCol; //->
242 TObjArray* m_recMucTrackCol; //->
243 TObjArray* m_recEmcShowerCol; //->
244
245 /* static TObjArray * s_staticEmcHitCol;
246 TObjArray* m_recEmcHitCol; //->
247
248 static TObjArray * s_staticEmcClusterCol;
249 TObjArray* m_recEmcClusterCol; //->
250*/
251/* /// data members to store Emc track data
252 static TObjArray * s_staticEmcShowerCol;
253 TObjArray* m_recEmcShowerCol; //->
254
255 /// data members to store Tof data
256 static TObjArray * s_staticTofTrackCol;
257 TObjArray* m_recTofTrackCol; //->
258
259 /// data members to store Muc data
260 static TObjArray *s_staticMucTrackCol;
261 TObjArray* m_recMucTrackCol; //->
262
263 /// data members to store Dedx data
264 static TObjArray * s_staticRecMdcDedxCol;
265 TObjArray* m_recMdcDedxCol; //->
266
267 /// data members to store Dedx data
268 static TObjArray * s_staticRecMdcDedxHitCol;
269 TObjArray* m_recMdcDedxHitCol; //->
270 */
271
272
273
274 ClassDef(TDisTrack,3)
275
276};
277
278#endif
void addRecMdcTrack(TRecMdcTrack *Track)
Add a TkrTrack into the Mdc data collection.
void addRecCgemHit(TRecCgemHit *Hit)
Add a Rec Cgem Hit into the Cgem data collection.
const TObjArray * getRecCgemTrackCol() const
retrieve the whole TObjArray of RecCgemTrack Data
const TObjArray * getRecCgemSegmentCol() const
retrieve the whole TObjArray of RecCgemSegment Data
void clearEmcShowerCol()
clear the whole array (necessary because of the consts-s)
void clearRecCgemHitCol()
clear the whole array (necessary because of the consts-s)
const TRecTofTrack * getTofTrack(Int_t i) const
retrieve a TofTrack From the collection, using the index into the array
void clearRecMdcHitCol()
clear the whole array (necessary because of the consts-s)
const TRecCgemTrack * getRecCgemTrack(Int_t i) const
retrieve a CgemTrack 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
const TRecMucTrack * getMucTrack(Int_t i) const
retrieve a MucTrack From the collection, using the index into the array
void addRecCgemTrack(TRecCgemTrack *Track)
Add a TkrTrack into the Cgem data collection.
void addTofTrack(TRecTofTrack *Track)
void clearRecCgemSegmentCol()
clear the whole array (necessary because of the consts-s)
void addMucTrack(TRecMucTrack *Track)
Add a MucTrack into the TOF Data collection.
const TObjArray * getEmcShowerCol() const
retrieve the whole TObjArray of EmcShower Data
void Clear(Option_t *option="")
const TObjArray * getRecMdcTrackCol() const
retrieve the whole TObjArray of RecMdcTrack Data
const TObjArray * getRecMdcHitCol() const
retrieve the whole TObjArray of RecMdcHit Data
const TRecEmcShower * getEmcShower(Int_t i) const
retrieve a EmcShower from the collection, using the index into the array
void clearRecCgemTrackCol()
clear the whole array (necessary because of the consts-s)
const TRecMdcHit * getRecMdcHit(Int_t i) const
retrieve a RecMdcHit from the collection, using the index into the array
const TObjArray * getTofTrackCol() const
retrieve the whole TObjArray of TofTrack Data
void Print(Option_t *option="") const
void clearRecMdcTrackCol()
clear the whole array (necessary because of the consts-s)
const TObjArray * getRecCgemHitCol() const
retrieve the whole TObjArray of RecCgemHit Data
const TObjArray * getMucTrackCol() const
retrieve the whole TObjArray of MucTrack Data
void addRecMdcHit(TRecMdcHit *Hit)
Add a Rec Mdc Hit into the Mdc data collection.
const TRecCgemHit * getRecCgemHit(Int_t i) const
retrieve a RecCgemHit from the collection, using the index into the array
void addEmcShower(TRecEmcShower *Track)
Add a TkrTrack into the Emc data collection.
const TRecMdcTrack * getRecMdcTrack(Int_t i) const
retrieve a MdcTrack from the collection, using the index into the array
void addRecCgemSegment(TRecCgemSegment *Segment)
Add a TkrSegment into the Cgem data collection.