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