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