CGEM BOSS 6.6.5.h
BESIII Offline Software System
Loading...
Searching...
No Matches
TDstEvent.h
Go to the documentation of this file.
1#ifndef ROOT_TDstEvent_H
2#define ROOT_TDstEvent_H 1
3
4#include "TObject.h"
5#include "TClonesArray.h"
6#include "TObjArray.h"
7
8#include "TMdcTrack.h"
9#include "TCgemTrack.h"
10#include "TCgemSegment.h"
11#include "TEmcTrack.h"
12#include "TTofTrack.h"
13#include "TMucTrack.h"
14#include "TMdcDedx.h"
15#include "TCgemDedx.h"
16#include "TExtTrack.h"
17#include "TMdcKalTrack.h"
18#include "TCgemKalTrack.h"
19
20class TDstEvent : public TObject {
21
22public:
23
24 TDstEvent();
25 virtual ~TDstEvent();
26
27 void initialize();
28
29 void Clear(Option_t *option="");
30
31 void Print(Option_t *option="") const;
32
33
34 // inline Bool_t getFromMc() { return m_fromMc; };
35
36
37 // ********************* Dst Track ******************************/
38
39 /// retrieve the whole TObjArray of MdcTrack Data
40 const TObjArray* getMdcTrackCol() const { return m_mdcTrackCol; };
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 TMdcTrack* getMdcTrack(Int_t i) const;
47
48 /// clear the whole array (necessary because of the consts-s)
49 void clearMdcTrackCol() { m_mdcTrackCol->Clear(); }
50
51 /// retrieve the whole TObjArray of CgemTrack Data
52 const TObjArray* getCgemTrackCol() const { return m_cgemTrackCol; };
53
54 /// Add a tkrtrack into the Cgem data collection
56
57 /// retrieve a CgemTrack from the collection, using the index into the array
58 const TCgemTrack* getCgemTrack(Int_t i) const;
59
60 /// clear the whole array (necessary because of the consts-s)
61 void clearCgemTrackCol() { m_cgemTrackCol->Clear(); }
62
63 /// retrieve the whole TObjArray of CgemSegment Data
64 const TObjArray* getCgemSegmentCol() const { return m_cgemSegmentCol; };
65
66 /// Add a segment into the Cgem data collection
68
69 /// retrieve a CgemSegment from the collection, using the index into the array
70 const TCgemSegment* getCgemSegment(Int_t i) const;
71
72 /// clear the whole array (necessary because of the consts-s)
73 void clearCgemSegmentCol() { m_cgemSegmentCol->Clear(); }
74
75 /// retrieve the whole TObjArray of EmcTrack Data
76 const TObjArray* getEmcTrackCol() const { return m_emcTrackCol; };
77
78 /// Add a TkrTrack into the Emc data collection
80
81 /// retrieve a EmcTrack from the collection, using the index into the array
82 const TEmcTrack* getEmcTrack(Int_t i) const;
83
84 /// clear the whole array (necessary because of the consts-s)
85 void clearEmcTrackCol() { m_emcTrackCol->Clear(); }
86
87 /// retrieve the whole TObjArray of TofTrack Data
88 const TObjArray* getTofTrackCol() const { return m_tofTrackCol; };
89
90 ///Add a TofTrack into the TOF Data collection
92
93 /// retrieve a TofTrack From the collection, using the index into the array
94 const TTofTrack* getTofTrack(Int_t i) const;
95
96 /// clear the whole array
97 void clearTofTrackCol() { m_tofTrackCol->Clear();}
98
99 /// retrieve the whole TObjArray of MucTrack Data
100 const TObjArray* getMucTrackCol() const { return m_mucTrackCol; };
101
102 ///Add a MucTrack into the TOF Data collection
104
105 /// retrieve a MucTrack From the collection, using the index into the array
106 const TMucTrack* getMucTrack(Int_t i) const;
107
108 /// clear the whole array
109 void clearMucTrackCol() { m_mucTrackCol->Clear();}
110
111 /// retrieve the whole TObjArray of Dedx Data
112 const TObjArray* getMdcDedxCol() const { return m_mdcDedxCol; };
113
114 ///Add a Dedx into the TOF Data collection
115 void addMdcDedx(TMdcDedx * Track);
116
117 /// retrieve a TofTrack From the collection, using the index into the array
118 const TMdcDedx* getMdcDedx(Int_t i) const;
119
120 /// clear the whole array
121 void clearMdcDedxCol() { m_mdcDedxCol->Clear();}
122
123 /// retrieve the whole TObjArray of Dedx Data
124 const TObjArray* getCgemDedxCol() const { return m_cgemDedxCol; };
125
126 ///Add a Dedx into the TOF Data collection
128
129 /// retrieve a TofTrack From the collection, using the index into the array
130 const TCgemDedx* getCgemDedx(Int_t i) const;
131
132 /// clear the whole array
133 void clearCgemDedxCol() { m_cgemDedxCol->Clear();}
134
135 /// retrieve the whole TObjArray of Ext Data
136 const TObjArray* getExtTrackCol() const { return m_extTrackCol; };
137
138 ///Add a ExtTrack into the Ext Data collection
140
141 /// retrieve a MucTrack From the collection, using the index into the array
142 const TExtTrack* getExtTrack(Int_t i) const;
143
144 /// clear the whole array
145 void clearExtTrackCol() { m_extTrackCol->Clear();}
146
147 // TObjArray of MdcKal Data
148 const TObjArray* getMdcKalTrackCol() const { return m_mdcKalTrackCol; };
150 const TMdcKalTrack* getMdcKalTrack(Int_t i) const;
151 void clearMdcKalTrackCol() { m_mdcKalTrackCol->Clear();}
152
153 // TObjArray of CgemKal Data
154 const TObjArray* getCgemKalTrackCol() const { return m_cgemKalTrackCol; };
156 const TCgemKalTrack* getCgemKalTrack(Int_t i) const;
157 void clearCgemKalTrackCol() { m_cgemKalTrackCol->Clear();}
158
159private:
160
161
162 /// data members to store Emc track data
163 static TObjArray * s_staticEmcTrackCol;
164 TObjArray* m_emcTrackCol; //->
165
166 /// data members to store Mdc data
167 static TObjArray *s_staticMdcTrackCol;
168 TObjArray* m_mdcTrackCol; //->
169
170 /// data members to store Cgem data
171 static TObjArray *s_staticCgemTrackCol;
172 TObjArray* m_cgemTrackCol; //->
173
174 /// data members to store Cgem data
175 static TObjArray *s_staticCgemSegmentCol;
176 TObjArray* m_cgemSegmentCol; //->
177
178 /// data members to store Tof data
179 static TObjArray * s_staticTofTrackCol;
180 TObjArray* m_tofTrackCol; //->
181
182 /// data members to store Muc data
183 static TObjArray *s_staticMucTrackCol;
184 TObjArray* m_mucTrackCol; //->
185
186 /// data members to store Dedx data
187 static TObjArray * s_staticMdcDedxCol;
188 TObjArray* m_mdcDedxCol; //->
189
190 /// data members to store Dedx data
191 static TObjArray * s_staticCgemDedxCol;
192 TObjArray* m_cgemDedxCol; //->
193
194 /// data members to store Ext data
195 static TObjArray * s_staticExtTrackCol;
196 TObjArray* m_extTrackCol; //->
197
198 /// data members to store MdcKal data
199 static TObjArray * s_staticMdcKalTrackCol;
200 TObjArray* m_mdcKalTrackCol; //->
201
202 /// data members to store CgemKal data
203 static TObjArray * s_staticCgemKalTrackCol;
204 TObjArray* m_cgemKalTrackCol; //->
205
206 ClassDef(TDstEvent,7)
207
208};
209
210#endif
#define Segment
Definition TTrackBase.h:31
#define Track
Definition TTrackBase.h:30
void clearCgemDedxCol()
clear the whole array
Definition TDstEvent.h:133
const TCgemDedx * getCgemDedx(Int_t i) const
retrieve a TofTrack From the collection, using the index into the array
void addMdcTrack(TMdcTrack *Track)
Add a Tkrtrack into the Mdc data collection.
const TObjArray * getCgemSegmentCol() const
retrieve the whole TObjArray of CgemSegment Data
Definition TDstEvent.h:64
const TMdcDedx * getMdcDedx(Int_t i) const
retrieve a TofTrack From the collection, using the index into the array
const TObjArray * getMdcDedxCol() const
retrieve the whole TObjArray of Dedx Data
Definition TDstEvent.h:112
const TObjArray * getCgemTrackCol() const
retrieve the whole TObjArray of CgemTrack Data
Definition TDstEvent.h:52
void addEmcTrack(TEmcTrack *Track)
Add a TkrTrack into the Emc data collection.
void clearMdcTrackCol()
clear the whole array (necessary because of the consts-s)
Definition TDstEvent.h:49
void initialize()
const TObjArray * getCgemDedxCol() const
retrieve the whole TObjArray of Dedx Data
Definition TDstEvent.h:124
const TObjArray * getEmcTrackCol() const
retrieve the whole TObjArray of EmcTrack Data
Definition TDstEvent.h:76
const TEmcTrack * getEmcTrack(Int_t i) const
retrieve a EmcTrack from the collection, using the index into the array
void clearMdcDedxCol()
clear the whole array
Definition TDstEvent.h:121
void addExtTrack(TExtTrack *Track)
Add a ExtTrack into the Ext Data collection.
void clearMucTrackCol()
clear the whole array
Definition TDstEvent.h:109
void clearMdcKalTrackCol()
Definition TDstEvent.h:151
void addCgemDedx(TCgemDedx *Track)
Add a Dedx into the TOF Data collection.
void addCgemTrack(TCgemTrack *Track)
Add a tkrtrack into the Cgem data collection.
const TObjArray * getMdcKalTrackCol() const
Definition TDstEvent.h:148
void clearCgemSegmentCol()
clear the whole array (necessary because of the consts-s)
Definition TDstEvent.h:73
void clearEmcTrackCol()
clear the whole array (necessary because of the consts-s)
Definition TDstEvent.h:85
void addMdcKalTrack(TMdcKalTrack *Track)
void addMucTrack(TMucTrack *Track)
Add a MucTrack into the TOF Data collection.
void clearExtTrackCol()
clear the whole array
Definition TDstEvent.h:145
const TCgemTrack * getCgemTrack(Int_t i) const
retrieve a CgemTrack from the collection, using the index into the array
void Print(Option_t *option="") const
void clearCgemTrackCol()
clear the whole array (necessary because of the consts-s)
Definition TDstEvent.h:61
const TObjArray * getMucTrackCol() const
retrieve the whole TObjArray of MucTrack Data
Definition TDstEvent.h:100
const TObjArray * getCgemKalTrackCol() const
Definition TDstEvent.h:154
const TExtTrack * getExtTrack(Int_t i) const
retrieve a MucTrack From the collection, using the index into the array
void addCgemSegment(TCgemSegment *Segment)
Add a segment into the Cgem data collection.
void addCgemKalTrack(TCgemKalTrack *Track)
void addMdcDedx(TMdcDedx *Track)
Add a Dedx into the TOF Data collection.
const TMdcKalTrack * getMdcKalTrack(Int_t i) const
void clearTofTrackCol()
clear the whole array
Definition TDstEvent.h:97
virtual ~TDstEvent()
Definition TDstEvent.cxx:86
const TTofTrack * getTofTrack(Int_t i) const
retrieve a TofTrack From the collection, using the index into the array
const TMucTrack * getMucTrack(Int_t i) const
retrieve a MucTrack From the collection, using the index into the array
const TMdcTrack * getMdcTrack(Int_t i) const
retrieve a Mdctrack from the collection, using the index into the array
const TObjArray * getTofTrackCol() const
retrieve the whole TObjArray of TofTrack Data
Definition TDstEvent.h:88
const TObjArray * getExtTrackCol() const
retrieve the whole TObjArray of Ext Data
Definition TDstEvent.h:136
const TObjArray * getMdcTrackCol() const
retrieve the whole TObjArray of MdcTrack Data
Definition TDstEvent.h:40
void Clear(Option_t *option="")
const TCgemKalTrack * getCgemKalTrack(Int_t i) const
void addTofTrack(TTofTrack *Track)
Add a TofTrack into the TOF Data collection.
const TCgemSegment * getCgemSegment(Int_t i) const
retrieve a CgemSegment from the collection, using the index into the array
void clearCgemKalTrackCol()
Definition TDstEvent.h:157