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