1#include "RootEventData/TDisTrack.h"
3#include "TCollection.h"
16 m_recMdcTrackCol =
new TObjArray();
18 m_recMdcHitCol =
new TObjArray();
19 m_recCgemTrackCol =
new TObjArray();
20 m_recCgemSegmentCol =
new TObjArray();
21 m_recCgemHitCol =
new TObjArray();
22 m_recTofTrackCol =
new TObjArray();
23 m_recMucTrackCol =
new TObjArray();
24 m_recEmcShowerCol =
new TObjArray();
40 m_recMdcTrackCol->Delete();
41 delete m_recMdcTrackCol;}
45 m_recMdcHitCol->Delete();
46 delete m_recMdcHitCol;}
50 if(m_recCgemTrackCol){
51 m_recCgemTrackCol->Delete();
52 delete m_recCgemTrackCol;}
53 m_recCgemTrackCol = 0;
56 if(m_recCgemSegmentCol){
57 m_recCgemSegmentCol->Delete();
58 delete m_recCgemSegmentCol;}
59 m_recCgemSegmentCol = 0;
62 m_recCgemHitCol->Delete();
63 delete m_recCgemHitCol;}
67 m_recTofTrackCol->Delete();
68 delete m_recTofTrackCol;}
72 m_recMucTrackCol->Delete();
73 delete m_recMucTrackCol;}
76 if(m_recEmcShowerCol){
77 m_recEmcShowerCol->Delete();
78 delete m_recEmcShowerCol;}
90 std::cout<<
"step1"<<std::endl;
92 delete m_recMdcTrackCol;}
96 std::cout<<
"step2"<<std::endl;
98 delete m_recMdcHitCol;}
101 if(m_recCgemTrackCol){
102 std::cout<<
"step1"<<std::endl;
104 delete m_recCgemTrackCol;}
105 m_recCgemTrackCol = 0;
107 if(m_recCgemSegmentCol){
108 std::cout<<
"step1"<<std::endl;
110 delete m_recCgemSegmentCol;}
111 m_recCgemSegmentCol = 0;
114 std::cout<<
"step2"<<std::endl;
116 delete m_recCgemHitCol;}
119 if(m_recTofTrackCol){
120 std::cout<<
"step3"<<std::endl;
122delete m_recTofTrackCol;}
123 m_recTofTrackCol = 0;
125 if(m_recMucTrackCol){
126 std::cout<<
"step4"<<std::endl;
128 delete m_recMucTrackCol;}
129 m_recMucTrackCol = 0;
131 if(m_recEmcShowerCol){
132 std::cout<<
"step5"<<std::endl;
134 delete m_recEmcShowerCol;}
135 m_recEmcShowerCol =0;
141 TObject::Print(option);
148 m_recMdcTrackCol->Add(
Track);
152 if (Int_t(i) >= m_recMdcTrackCol->GetEntries())
159 m_recMdcHitCol->Add(Hit);
163 if (Int_t(i) >= m_recMdcHitCol->GetEntries())
170 m_recCgemSegmentCol->Add(
Segment);
174 if (Int_t(i) >= m_recCgemSegmentCol->GetEntries())
180 m_recCgemTrackCol->Add(
Track);
184 if (Int_t(i) >= m_recCgemTrackCol->GetEntries())
191 m_recCgemHitCol->Add(Hit);
195 if (Int_t(i) >= m_recCgemHitCol->GetEntries())
202 m_recTofTrackCol->Add(
Track);
205 if(Int_t(i) >=m_recTofTrackCol->GetEntries())
212 m_recMucTrackCol->Add(
Track);
216 if(Int_t(i) >=m_recMucTrackCol->GetEntries())
223 m_recEmcShowerCol->Add(
Track);
228 if(Int_t(i) >=m_recEmcShowerCol->GetEntries())
234 std::cout<<
"getMdcTrackNum step1"<<std::endl;
235 if(m_recMdcTrackCol){
236 std::cout<<
"getMdcTrackNum step2"<<std::endl;
237 return m_recMdcTrackCol->GetEntries();
239 std::cout<<
"getMdcTrackNum step3"<<std::endl;
244 std::cout<<
"getCgemSegmentNum step1"<<std::endl;
245 if(m_recCgemSegmentCol){
246 std::cout<<
"getCgemSegmentNum step2"<<std::endl;
247 return m_recCgemSegmentCol->GetEntries();
249 std::cout<<
"getCgemSegmentNum step3"<<std::endl;
254 std::cout<<
"getCgemTrackNum step1"<<std::endl;
255 if(m_recCgemTrackCol){
256 std::cout<<
"getCgemTrackNum step2"<<std::endl;
257 return m_recCgemTrackCol->GetEntries();
259 std::cout<<
"getCgemTrackNum step3"<<std::endl;
264 std::cout<<
"getTofTrackNum step1"<<std::endl;
265 if(m_recTofTrackCol){
266 std::cout<<
"getTofTrackNum step2"<<std::endl;
267 return m_recTofTrackCol->GetEntries();
269 std::cout<<
"getTofTrackNum step3"<<std::endl;
274 std::cout<<
"getEmcShowerNum step1"<<std::endl;
275 if(m_recEmcShowerCol){
276 std::cout<<
"getEmcShowerNum step2"<<std::endl;
277 return m_recEmcShowerCol->GetEntries();
279std::cout<<
"getEmcShowerNum step3"<<std::endl;
284 std::cout<<
"getMucTrackNum step1"<<std::endl;
285 if(m_recMucTrackCol){
286 std::cout<<
"getMucTrackNum step2"<<std::endl;
287 return m_recMucTrackCol->GetEntries();
289 std::cout<<
"getMucTrackNum step3"<<std::endl;
294 std::cout<<
"getMdcHitkNum step1"<<std::endl;
296 std::cout<<
"getMdcHitkNum step2"<<std::endl;
297 return m_recMdcHitCol->GetEntries();
299 std::cout<<
"getMdcHitkNum step3"<<std::endl;
304 std::cout<<
"getCgemHitkNum step1"<<std::endl;
306 std::cout<<
"getCgemHitkNum step2"<<std::endl;
307 return m_recCgemHitCol->GetEntries();
309 std::cout<<
"getCgemHitkNum step3"<<std::endl;
ClassImp(TDisTrack) TDisTrack
void addRecMdcTrack(TRecMdcTrack *Track)
Add a TkrTrack into the Mdc data collection.
void addRecCgemHit(TRecCgemHit *Hit)
Add a Rec Cgem Hit into the Cgem data collection.
const TRecTofTrack * getTofTrack(Int_t i) const
retrieve a TofTrack From the collection, using the index into the array
const TRecCgemTrack * getRecCgemTrack(Int_t i) const
retrieve a CgemTrack from the collection, using the index into the array
const TRecCgemSegment * getRecCgemSegment(Int_t i) const
retrieve a CgemSegment from the collection, using the index into the array
const TRecMucTrack * getMucTrack(Int_t i) const
retrieve a MucTrack From the collection, using the index into the array
void addRecCgemTrack(TRecCgemTrack *Track)
Add a TkrTrack into the Cgem data collection.
void addTofTrack(TRecTofTrack *Track)
void addMucTrack(TRecMucTrack *Track)
Add a MucTrack into the TOF Data collection.
void Clear(Option_t *option="")
const TRecEmcShower * getEmcShower(Int_t i) const
retrieve a EmcShower 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 Print(Option_t *option="") const
void addRecMdcHit(TRecMdcHit *Hit)
Add a Rec Mdc Hit into the Mdc data collection.
const TRecCgemHit * getRecCgemHit(Int_t i) const
retrieve a RecCgemHit from the collection, using the index into the array
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
void addRecCgemSegment(TRecCgemSegment *Segment)
Add a TkrSegment into the Cgem data collection.