1#include "RootEventData/TDisTrack.h"
3#include "TCollection.h"
16 m_recMdcTrackCol =
new TObjArray();
18 m_recMdcHitCol =
new TObjArray();
19 m_recTofTrackCol =
new TObjArray();
20 m_recMucTrackCol =
new TObjArray();
21 m_recEmcShowerCol =
new TObjArray();
37 m_recMdcTrackCol->Delete();
38 delete m_recMdcTrackCol;}
42 m_recMdcHitCol->Delete();
43 delete m_recMdcHitCol;}
47 m_recTofTrackCol->Delete();
48 delete m_recTofTrackCol;}
52 m_recMucTrackCol->Delete();
53 delete m_recMucTrackCol;}
56 if(m_recEmcShowerCol){
57 m_recEmcShowerCol->Delete();
58 delete m_recEmcShowerCol;}
70 std::cout<<
"step1"<<std::endl;
72 delete m_recMdcTrackCol;}
76 std::cout<<
"step2"<<std::endl;
78 delete m_recMdcHitCol;}
82 std::cout<<
"step3"<<std::endl;
84delete m_recTofTrackCol;}
88 std::cout<<
"step4"<<std::endl;
90 delete m_recMucTrackCol;}
93 if(m_recEmcShowerCol){
94 std::cout<<
"step5"<<std::endl;
96 delete m_recEmcShowerCol;}
103 TObject::Print(option);
110 m_recMdcTrackCol->Add(
Track);
114 if (Int_t(i) >= m_recMdcTrackCol->GetEntries())
121 m_recMdcHitCol->Add(Hit);
125 if (Int_t(i) >= m_recMdcHitCol->GetEntries())
132 m_recTofTrackCol->Add(
Track);
135 if(Int_t(i) >=m_recTofTrackCol->GetEntries())
142 m_recMucTrackCol->Add(
Track);
146 if(Int_t(i) >=m_recMucTrackCol->GetEntries())
153 m_recEmcShowerCol->Add(
Track);
158 if(Int_t(i) >=m_recEmcShowerCol->GetEntries())
164 std::cout<<
"getMdcTrackNum step1"<<std::endl;
165 if(m_recMdcTrackCol){
166 std::cout<<
"getMdcTrackNum step2"<<std::endl;
167 return m_recMdcTrackCol->GetEntries();
169 std::cout<<
"getMdcTrackNum step3"<<std::endl;
174 std::cout<<
"getTofTrackNum step1"<<std::endl;
175 if(m_recTofTrackCol){
176 std::cout<<
"getTofTrackNum step2"<<std::endl;
177 return m_recTofTrackCol->GetEntries();
179 std::cout<<
"getTofTrackNum step3"<<std::endl;
184 std::cout<<
"getEmcShowerNum step1"<<std::endl;
185 if(m_recEmcShowerCol){
186 std::cout<<
"getEmcShowerNum step2"<<std::endl;
187 return m_recEmcShowerCol->GetEntries();
189std::cout<<
"getEmcShowerNum step3"<<std::endl;
194 std::cout<<
"getMucTrackNum step1"<<std::endl;
195 if(m_recMucTrackCol){
196 std::cout<<
"getMucTrackNum step2"<<std::endl;
197 return m_recMucTrackCol->GetEntries();
199 std::cout<<
"getMucTrackNum step3"<<std::endl;
204 std::cout<<
"getMdcHitkNum step1"<<std::endl;
206 std::cout<<
"getMdcHitkNum step2"<<std::endl;
207 return m_recMdcHitCol->GetEntries();
209 std::cout<<
"getMdcHitkNum step3"<<std::endl;
ClassImp(TDisTrack) TDisTrack
void addRecMdcTrack(TRecMdcTrack *Track)
Add a TkrTrack into the Mdc data collection.
const TRecTofTrack * getTofTrack(Int_t i) const
retrieve a TofTrack 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 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.
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