CGEM BOSS 6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
TDisTrack Class Reference

#include <TDisTrack.h>

+ Inheritance diagram for TDisTrack:

Public Member Functions

 TDisTrack ()
 
virtual ~TDisTrack ()
 
void initialize ()
 
void Clear (Option_t *option="")
 
void Print (Option_t *option="") const
 
const TObjArray * getRecMdcTrackCol () const
 retrieve the whole TObjArray of RecMdcTrack Data
 
void addRecMdcTrack (TRecMdcTrack *Track)
 Add a TkrTrack into the Mdc data collection.
 
const TRecMdcTrackgetRecMdcTrack (Int_t i) const
 retrieve a MdcTrack from the collection, using the index into the array
 
void clearRecMdcTrackCol ()
 clear the whole array (necessary because of the consts-s)
 
const TObjArray * getRecMdcHitCol () const
 retrieve the whole TObjArray of RecMdcHit Data
 
void addRecMdcHit (TRecMdcHit *Hit)
 Add a Rec Mdc Hit into the Mdc data collection.
 
const TRecMdcHitgetRecMdcHit (Int_t i) const
 retrieve a RecMdcHit from the collection, using the index into the array
 
void clearRecMdcHitCol ()
 clear the whole array (necessary because of the consts-s)
 
const TObjArray * getRecCgemTrackCol () const
 retrieve the whole TObjArray of RecCgemTrack Data
 
void addRecCgemTrack (TRecCgemTrack *Track)
 Add a TkrTrack into the Cgem data collection.
 
const TRecCgemTrackgetRecCgemTrack (Int_t i) const
 retrieve a CgemTrack from the collection, using the index into the array
 
void clearRecCgemTrackCol ()
 clear the whole array (necessary because of the consts-s)
 
const TObjArray * getRecCgemSegmentCol () const
 retrieve the whole TObjArray of RecCgemSegment Data
 
void addRecCgemSegment (TRecCgemSegment *Segment)
 Add a TkrSegment into the Cgem data collection.
 
const TRecCgemSegmentgetRecCgemSegment (Int_t i) const
 retrieve a CgemSegment from the collection, using the index into the array
 
void clearRecCgemSegmentCol ()
 clear the whole array (necessary because of the consts-s)
 
const TObjArray * getRecCgemHitCol () const
 retrieve the whole TObjArray of RecCgemHit Data
 
void addRecCgemHit (TRecCgemHit *Hit)
 Add a Rec Cgem Hit into the Cgem data collection.
 
const TRecCgemHitgetRecCgemHit (Int_t i) const
 retrieve a RecCgemHit from the collection, using the index into the array
 
void clearRecCgemHitCol ()
 clear the whole array (necessary because of the consts-s)
 
const TObjArray * getTofTrackCol () const
 retrieve the whole TObjArray of TofTrack Data

 
void addTofTrack (TRecTofTrack *Track)
 
const TRecTofTrackgetTofTrack (Int_t i) const
 retrieve a TofTrack From the collection, using the index into the array
 
void clearTofTrackCol ()
 clear the whole array
 
const TObjArray * getMucTrackCol () const
 retrieve the whole TObjArray of MucTrack Data
 
void addMucTrack (TRecMucTrack *Track)
 Add a MucTrack into the TOF Data collection.
 
const TRecMucTrackgetMucTrack (Int_t i) const
 retrieve a MucTrack From the collection, using the index into the array
 
void clearMucTrackCol ()
 clear the whole array
 
int getMdcTrackNum ()
 
int getCgemTrackNum ()
 
int getCgemSegmentNum ()
 
int getTofTrackNum ()
 
int getEmcShowerNum ()
 
int getMucTrackNum ()
 
int getMdcHitNum ()
 
int getCgemHitNum ()
 
const TObjArray * getEmcShowerCol () const
 retrieve the whole TObjArray of EmcShower Data
 
void addEmcShower (TRecEmcShower *Track)
 Add a TkrTrack into the Emc data collection.
 
const TRecEmcShowergetEmcShower (Int_t i) const
 retrieve a EmcShower from the collection, using the index into the array
 
void clearEmcShowerCol ()
 clear the whole array (necessary because of the consts-s)
 

Detailed Description

Definition at line 15 of file TDisTrack.h.

Constructor & Destructor Documentation

◆ TDisTrack()

TDisTrack::TDisTrack ( )

◆ ~TDisTrack()

TDisTrack::~TDisTrack ( )
virtual

Definition at line 33 of file TDisTrack.cxx.

33 {
34
35
36 /**************************** Dst Track *************************/
37
38 // delete m_recMdcTrackCol;
39 if(m_recMdcTrackCol){ //m_recMdcTrackCol->Clear();
40 m_recMdcTrackCol->Delete();
41 delete m_recMdcTrackCol;}
42 m_recMdcTrackCol = 0;
43
44 if(m_recMdcHitCol){ //m_recMdcHitCol->Clear();
45 m_recMdcHitCol->Delete();
46 delete m_recMdcHitCol;}
47 m_recMdcHitCol = 0;
48
49 // delete m_recCgemTrackCol;
50 if(m_recCgemTrackCol){ //m_recCgemTrackCol->Clear();
51 m_recCgemTrackCol->Delete();
52 delete m_recCgemTrackCol;}
53 m_recCgemTrackCol = 0;
54
55 // delete m_recCgemSegmentCol;
56 if(m_recCgemSegmentCol){ //m_recCgemSegmentCol->Clear();
57 m_recCgemSegmentCol->Delete();
58 delete m_recCgemSegmentCol;}
59 m_recCgemSegmentCol = 0;
60
61 if(m_recCgemHitCol){ //m_recCgemHitCol->Clear();
62 m_recCgemHitCol->Delete();
63 delete m_recCgemHitCol;}
64 m_recCgemHitCol = 0;
65
66 if(m_recTofTrackCol){// m_recTofTrackCol->Clear();
67 m_recTofTrackCol->Delete();
68 delete m_recTofTrackCol;}
69 m_recTofTrackCol = 0;
70
71 if(m_recMucTrackCol){ //m_recMucTrackCol->Clear();
72 m_recMucTrackCol->Delete();
73 delete m_recMucTrackCol;}
74 m_recMucTrackCol = 0;
75
76 if(m_recEmcShowerCol){//m_recEmcShowerCol->Clear();
77 m_recEmcShowerCol->Delete();
78 delete m_recEmcShowerCol;}
79 m_recEmcShowerCol =0;
80
81}

Member Function Documentation

◆ addEmcShower()

void TDisTrack::addEmcShower ( TRecEmcShower Track)

Add a TkrTrack into the Emc data collection.

Definition at line 222 of file TDisTrack.cxx.

222 {
223 m_recEmcShowerCol->Add(Track);
224}
#define Track
Definition: TTrackBase.h:30

Referenced by BesClient::GetEvent().

◆ addMucTrack()

void TDisTrack::addMucTrack ( TRecMucTrack Track)

Add a MucTrack into the TOF Data collection.

Muc.

Definition at line 211 of file TDisTrack.cxx.

211 {
212 m_recMucTrackCol->Add(Track);
213 }

Referenced by BesClient::GetEvent().

◆ addRecCgemHit()

void TDisTrack::addRecCgemHit ( TRecCgemHit Hit)

Add a Rec Cgem Hit into the Cgem data collection.

Definition at line 190 of file TDisTrack.cxx.

190 {
191 m_recCgemHitCol->Add(Hit);
192 }

◆ addRecCgemSegment()

void TDisTrack::addRecCgemSegment ( TRecCgemSegment Segment)

Add a TkrSegment into the Cgem data collection.

Cgem.

Definition at line 169 of file TDisTrack.cxx.

169 {
170 m_recCgemSegmentCol->Add(Segment);
171 }
#define Segment
Definition: TTrackBase.h:31

◆ addRecCgemTrack()

void TDisTrack::addRecCgemTrack ( TRecCgemTrack Track)

Add a TkrTrack into the Cgem data collection.

Definition at line 179 of file TDisTrack.cxx.

179 {
180 m_recCgemTrackCol->Add(Track);
181 }

◆ addRecMdcHit()

void TDisTrack::addRecMdcHit ( TRecMdcHit Hit)

Add a Rec Mdc Hit into the Mdc data collection.

Definition at line 158 of file TDisTrack.cxx.

158 {
159 m_recMdcHitCol->Add(Hit);
160 }

Referenced by BesClient::GetEvent().

◆ addRecMdcTrack()

void TDisTrack::addRecMdcTrack ( TRecMdcTrack Track)

Add a TkrTrack into the Mdc data collection.

Mdc.

Definition at line 147 of file TDisTrack.cxx.

147 {
148 m_recMdcTrackCol->Add(Track);
149 }

Referenced by BesClient::GetEvent().

◆ addTofTrack()

void TDisTrack::addTofTrack ( TRecTofTrack Track)

Definition at line 201 of file TDisTrack.cxx.

201 {
202 m_recTofTrackCol->Add(Track);
203}

Referenced by BesClient::GetEvent().

◆ Clear()

void TDisTrack::Clear ( Option_t *  option = "")

Definition at line 88 of file TDisTrack.cxx.

88 {
89 if(m_recMdcTrackCol){// m_recMdcTrackCol->Clear();
90 std::cout<<"step1"<<std::endl;
91 // m_recMdcTrackCol->Delete();
92 delete m_recMdcTrackCol;}
93 m_recMdcTrackCol = 0;
94
95 if(m_recMdcHitCol){ //m_recMdcHitCol->Clear();
96 std::cout<<"step2"<<std::endl;
97 // m_recMdcHitCol->Delete();
98 delete m_recMdcHitCol;}
99 m_recMdcHitCol = 0;
100
101 if(m_recCgemTrackCol){// m_recCgemTrackCol->Clear();
102 std::cout<<"step1"<<std::endl;
103 // m_recCgemTrackCol->Delete();
104 delete m_recCgemTrackCol;}
105 m_recCgemTrackCol = 0;
106
107 if(m_recCgemSegmentCol){// m_recCgemSegmentCol->Clear();
108 std::cout<<"step1"<<std::endl;
109 // m_recCgemSegmentCol->Delete();
110 delete m_recCgemSegmentCol;}
111 m_recCgemSegmentCol = 0;
112
113 if(m_recCgemHitCol){ //m_recCgemHitCol->Clear();
114 std::cout<<"step2"<<std::endl;
115 // m_recCgemHitCol->Delete();
116 delete m_recCgemHitCol;}
117 m_recCgemHitCol = 0;
118
119 if(m_recTofTrackCol){ //m_recTofTrackCol->Clear();
120 std::cout<<"step3"<<std::endl;
121// m_recTofTrackCol->Delete();
122delete m_recTofTrackCol;}
123 m_recTofTrackCol = 0;
124
125 if(m_recMucTrackCol){ //m_recMucTrackCol->Clear();
126 std::cout<<"step4"<<std::endl;
127//; m_recMucTrackCol->Delete();
128 delete m_recMucTrackCol;}
129 m_recMucTrackCol = 0;
130
131 if(m_recEmcShowerCol){//m_recEmcShowerCol->Clear();
132 std::cout<<"step5"<<std::endl;
133// m_recEmcShowerCol->Delete();
134 delete m_recEmcShowerCol;}
135 m_recEmcShowerCol =0;
136
137}

◆ clearEmcShowerCol()

void TDisTrack::clearEmcShowerCol ( )
inline

clear the whole array (necessary because of the consts-s)

Definition at line 165 of file TDisTrack.h.

165{ m_recEmcShowerCol->Clear(); }

◆ clearMucTrackCol()

void TDisTrack::clearMucTrackCol ( )
inline

clear the whole array

Definition at line 105 of file TDisTrack.h.

105{ m_recMucTrackCol->Clear();}

◆ clearRecCgemHitCol()

void TDisTrack::clearRecCgemHitCol ( )
inline

clear the whole array (necessary because of the consts-s)

Definition at line 85 of file TDisTrack.h.

85{ m_recCgemHitCol->Clear(); }

◆ clearRecCgemSegmentCol()

void TDisTrack::clearRecCgemSegmentCol ( )
inline

clear the whole array (necessary because of the consts-s)

Definition at line 76 of file TDisTrack.h.

76{ m_recCgemSegmentCol->Clear(); }

◆ clearRecCgemTrackCol()

void TDisTrack::clearRecCgemTrackCol ( )
inline

clear the whole array (necessary because of the consts-s)

Definition at line 64 of file TDisTrack.h.

64{ m_recCgemTrackCol->Clear(); }

◆ clearRecMdcHitCol()

void TDisTrack::clearRecMdcHitCol ( )
inline

clear the whole array (necessary because of the consts-s)

Definition at line 52 of file TDisTrack.h.

52{ m_recMdcHitCol->Clear(); }

◆ clearRecMdcTrackCol()

void TDisTrack::clearRecMdcTrackCol ( )
inline

clear the whole array (necessary because of the consts-s)

Definition at line 43 of file TDisTrack.h.

43{ m_recMdcTrackCol->Clear(); }

◆ clearTofTrackCol()

void TDisTrack::clearTofTrackCol ( )
inline

clear the whole array

Definition at line 96 of file TDisTrack.h.

96{ m_recTofTrackCol->Clear();}

◆ getCgemHitNum()

int TDisTrack::getCgemHitNum ( )

Definition at line 303 of file TDisTrack.cxx.

303 {
304 std::cout<<"getCgemHitkNum step1"<<std::endl;
305 if(m_recCgemHitCol){
306 std::cout<<"getCgemHitkNum step2"<<std::endl;
307 return m_recCgemHitCol->GetEntries();
308}
309 std::cout<<"getCgemHitkNum step3"<<std::endl;
310 return 0;
311}

◆ getCgemSegmentNum()

int TDisTrack::getCgemSegmentNum ( )

Definition at line 243 of file TDisTrack.cxx.

243 {
244 std::cout<<"getCgemSegmentNum step1"<<std::endl;
245 if(m_recCgemSegmentCol){
246 std::cout<<"getCgemSegmentNum step2"<<std::endl;
247 return m_recCgemSegmentCol->GetEntries();
248}
249 std::cout<<"getCgemSegmentNum step3"<<std::endl;
250 return 0;
251}

◆ getCgemTrackNum()

int TDisTrack::getCgemTrackNum ( )

Definition at line 253 of file TDisTrack.cxx.

253 {
254 std::cout<<"getCgemTrackNum step1"<<std::endl;
255 if(m_recCgemTrackCol){
256 std::cout<<"getCgemTrackNum step2"<<std::endl;
257 return m_recCgemTrackCol->GetEntries();
258}
259 std::cout<<"getCgemTrackNum step3"<<std::endl;
260 return 0;
261}

◆ getEmcShower()

const TRecEmcShower * TDisTrack::getEmcShower ( Int_t  i) const

retrieve a EmcShower from the collection, using the index into the array

Definition at line 227 of file TDisTrack.cxx.

227 {
228 if(Int_t(i) >=m_recEmcShowerCol->GetEntries())
229 return 0;
230 return (TRecEmcShower*) m_recEmcShowerCol->At(i);
231 }

Referenced by BesEvent::GetEmcShower(), and BesEvent::SetEmcShowers().

◆ getEmcShowerCol()

const TObjArray * TDisTrack::getEmcShowerCol ( ) const
inline

retrieve the whole TObjArray of EmcShower Data

Definition at line 156 of file TDisTrack.h.

156{ return m_recEmcShowerCol; };

◆ getEmcShowerNum()

int TDisTrack::getEmcShowerNum ( )

Definition at line 273 of file TDisTrack.cxx.

273 {
274 std::cout<<"getEmcShowerNum step1"<<std::endl;
275 if(m_recEmcShowerCol){
276 std::cout<<"getEmcShowerNum step2"<<std::endl;
277 return m_recEmcShowerCol->GetEntries();
278}
279std::cout<<"getEmcShowerNum step3"<<std::endl;
280 return 0;
281}

Referenced by BesEvent::GetEmcShowerNum(), and BesEvent::SetEmcShowers().

◆ getMdcHitNum()

int TDisTrack::getMdcHitNum ( )

Definition at line 293 of file TDisTrack.cxx.

293 {
294 std::cout<<"getMdcHitkNum step1"<<std::endl;
295 if(m_recMdcHitCol){
296 std::cout<<"getMdcHitkNum step2"<<std::endl;
297 return m_recMdcHitCol->GetEntries();
298}
299 std::cout<<"getMdcHitkNum step3"<<std::endl;
300 return 0;
301}

◆ getMdcTrackNum()

int TDisTrack::getMdcTrackNum ( )

Definition at line 233 of file TDisTrack.cxx.

233 {
234 std::cout<<"getMdcTrackNum step1"<<std::endl;
235 if(m_recMdcTrackCol){
236 std::cout<<"getMdcTrackNum step2"<<std::endl;
237 return m_recMdcTrackCol->GetEntries();
238}
239 std::cout<<"getMdcTrackNum step3"<<std::endl;
240 return 0;
241}

Referenced by BesEvent::GetMdcTrackNum(), and BesEvent::SetMdcTracks().

◆ getMucTrack()

const TRecMucTrack * TDisTrack::getMucTrack ( Int_t  i) const

retrieve a MucTrack From the collection, using the index into the array

Definition at line 215 of file TDisTrack.cxx.

215 {
216 if(Int_t(i) >=m_recMucTrackCol->GetEntries())
217 return 0;
218 return (TRecMucTrack*) m_recMucTrackCol->At(i);
219 }

Referenced by BesEvent::GetMucTrack(), and BesEvent::SetMucTracks().

◆ getMucTrackCol()

const TObjArray * TDisTrack::getMucTrackCol ( ) const
inline

retrieve the whole TObjArray of MucTrack Data

Definition at line 99 of file TDisTrack.h.

99{ return m_recMucTrackCol; };

Referenced by BesEvent::GetMucTrackCol().

◆ getMucTrackNum()

int TDisTrack::getMucTrackNum ( )

Definition at line 283 of file TDisTrack.cxx.

283 {
284 std::cout<<"getMucTrackNum step1"<<std::endl;
285 if(m_recMucTrackCol){
286 std::cout<<"getMucTrackNum step2"<<std::endl;
287 return m_recMucTrackCol->GetEntries();
288}
289 std::cout<<"getMucTrackNum step3"<<std::endl;
290 return 0;
291}

Referenced by BesEvent::GetMucTrackNum(), and BesEvent::SetMucTracks().

◆ getRecCgemHit()

const TRecCgemHit * TDisTrack::getRecCgemHit ( Int_t  i) const

retrieve a RecCgemHit from the collection, using the index into the array

Definition at line 194 of file TDisTrack.cxx.

194 {
195 if (Int_t(i) >= m_recCgemHitCol->GetEntries())
196 return 0;
197 return (TRecCgemHit*)m_recCgemHitCol->At(i);
198 }

◆ getRecCgemHitCol()

const TObjArray * TDisTrack::getRecCgemHitCol ( ) const
inline

retrieve the whole TObjArray of RecCgemHit Data

Definition at line 79 of file TDisTrack.h.

79{ return m_recCgemHitCol; };

◆ getRecCgemSegment()

const TRecCgemSegment * TDisTrack::getRecCgemSegment ( Int_t  i) const

retrieve a CgemSegment from the collection, using the index into the array

Definition at line 173 of file TDisTrack.cxx.

173 {
174 if (Int_t(i) >= m_recCgemSegmentCol->GetEntries())
175 return 0;
176 return (TRecCgemSegment*)m_recCgemSegmentCol->At(i);
177 }

◆ getRecCgemSegmentCol()

const TObjArray * TDisTrack::getRecCgemSegmentCol ( ) const
inline

retrieve the whole TObjArray of RecCgemSegment Data

Definition at line 67 of file TDisTrack.h.

67{ return m_recCgemSegmentCol; };

◆ getRecCgemTrack()

const TRecCgemTrack * TDisTrack::getRecCgemTrack ( Int_t  i) const

retrieve a CgemTrack from the collection, using the index into the array

Definition at line 183 of file TDisTrack.cxx.

183 {
184 if (Int_t(i) >= m_recCgemTrackCol->GetEntries())
185 return 0;
186 return (TRecCgemTrack*)m_recCgemTrackCol->At(i);
187 }

◆ getRecCgemTrackCol()

const TObjArray * TDisTrack::getRecCgemTrackCol ( ) const
inline

retrieve the whole TObjArray of RecCgemTrack Data

Definition at line 55 of file TDisTrack.h.

55{ return m_recCgemTrackCol; };

◆ getRecMdcHit()

const TRecMdcHit * TDisTrack::getRecMdcHit ( Int_t  i) const

retrieve a RecMdcHit from the collection, using the index into the array

Definition at line 162 of file TDisTrack.cxx.

162 {
163 if (Int_t(i) >= m_recMdcHitCol->GetEntries())
164 return 0;
165 return (TRecMdcHit*)m_recMdcHitCol->At(i);
166 }

◆ getRecMdcHitCol()

const TObjArray * TDisTrack::getRecMdcHitCol ( ) const
inline

retrieve the whole TObjArray of RecMdcHit Data

Definition at line 46 of file TDisTrack.h.

46{ return m_recMdcHitCol; };

Referenced by BesEvent::ConstructMdcTrackFromRec().

◆ getRecMdcTrack()

const TRecMdcTrack * TDisTrack::getRecMdcTrack ( Int_t  i) const

retrieve a MdcTrack from the collection, using the index into the array

Definition at line 151 of file TDisTrack.cxx.

151 {
152 if (Int_t(i) >= m_recMdcTrackCol->GetEntries())
153 return 0;
154 return (TRecMdcTrack*)m_recMdcTrackCol->At(i);
155 }

Referenced by BesEvent::GetMdcTrack(), and BesEvent::SetMdcTracks().

◆ getRecMdcTrackCol()

const TObjArray * TDisTrack::getRecMdcTrackCol ( ) const
inline

retrieve the whole TObjArray of RecMdcTrack Data

Definition at line 34 of file TDisTrack.h.

34{ return m_recMdcTrackCol; };

Referenced by BesEvent::GetMdcTrackCol().

◆ getTofTrack()

const TRecTofTrack * TDisTrack::getTofTrack ( Int_t  i) const

retrieve a TofTrack From the collection, using the index into the array

Definition at line 204 of file TDisTrack.cxx.

204 {
205 if(Int_t(i) >=m_recTofTrackCol->GetEntries())
206 return 0;
207 return (TRecTofTrack*) m_recTofTrackCol->At(i);
208}

Referenced by BesEvent::GetTofTrack(), and BesEvent::SetTofTracks().

◆ getTofTrackCol()

const TObjArray * TDisTrack::getTofTrackCol ( ) const
inline

retrieve the whole TObjArray of TofTrack Data

Definition at line 88 of file TDisTrack.h.

88 {
89 // std::cout<<" in TObjArray* getTofTrackCol()"<<std::endl;
90 return m_recTofTrackCol; };

Referenced by BesEvent::ConstructTofTrackFromRec(), and BesEvent::GetTofTrackCol().

◆ getTofTrackNum()

int TDisTrack::getTofTrackNum ( )

Definition at line 263 of file TDisTrack.cxx.

263 {
264 std::cout<<"getTofTrackNum step1"<<std::endl;
265 if(m_recTofTrackCol){
266 std::cout<<"getTofTrackNum step2"<<std::endl;
267 return m_recTofTrackCol->GetEntries();
268}
269 std::cout<<"getTofTrackNum step3"<<std::endl;
270 return 0;
271}

Referenced by BesEvent::GetTofTrackNum(), and BesEvent::SetTofTracks().

◆ initialize()

void TDisTrack::initialize ( )

Definition at line 84 of file TDisTrack.cxx.

84 {
85}

◆ Print()

void TDisTrack::Print ( Option_t *  option = "") const

Definition at line 140 of file TDisTrack.cxx.

140 {
141 TObject::Print(option);
142}

The documentation for this class was generated from the following files: