1#include "RootEventData/TDisTrack.h"
2#include "TCollection.h"
15 m_recMdcTrackCol =
new TObjArray();
17 m_recMdcHitCol =
new TObjArray();
18 m_recTofTrackCol =
new TObjArray();
19 m_recMucTrackCol =
new TObjArray();
20 m_recEmcShowerCol =
new TObjArray();
33 if ( m_recMdcTrackCol )
35 m_recMdcTrackCol->Delete();
36 delete m_recMdcTrackCol;
42 m_recMdcHitCol->Delete();
43 delete m_recMdcHitCol;
47 if ( m_recTofTrackCol )
49 m_recTofTrackCol->Delete();
50 delete m_recTofTrackCol;
54 if ( m_recMucTrackCol )
56 m_recMucTrackCol->Delete();
57 delete m_recMucTrackCol;
61 if ( m_recEmcShowerCol )
63 m_recEmcShowerCol->Delete();
64 delete m_recEmcShowerCol;
66 m_recEmcShowerCol = 0;
74 if ( m_recMdcTrackCol )
76 std::cout <<
"step1" << std::endl;
78 delete m_recMdcTrackCol;
84 std::cout <<
"step2" << std::endl;
86 delete m_recMdcHitCol;
90 if ( m_recTofTrackCol )
92 std::cout <<
"step3" << std::endl;
94 delete m_recTofTrackCol;
98 if ( m_recMucTrackCol )
100 std::cout <<
"step4" << std::endl;
102 delete m_recMucTrackCol;
104 m_recMucTrackCol = 0;
106 if ( m_recEmcShowerCol )
108 std::cout <<
"step5" << std::endl;
110 delete m_recEmcShowerCol;
112 m_recEmcShowerCol = 0;
123 if ( Int_t( i ) >= m_recMdcTrackCol->GetEntries() )
return 0;
131 if ( Int_t( i ) >= m_recMdcHitCol->GetEntries() )
return 0;
138 if ( Int_t( i ) >= m_recTofTrackCol->GetEntries() )
return 0;
146 if ( Int_t( i ) >= m_recMucTrackCol->GetEntries() )
return 0;
155 if ( Int_t( i ) >= m_recEmcShowerCol->GetEntries() )
return 0;
160 std::cout <<
"getMdcTrackNum step1" << std::endl;
161 if ( m_recMdcTrackCol )
163 std::cout <<
"getMdcTrackNum step2" << std::endl;
164 return m_recMdcTrackCol->GetEntries();
166 std::cout <<
"getMdcTrackNum step3" << std::endl;
171 std::cout <<
"getTofTrackNum step1" << std::endl;
172 if ( m_recTofTrackCol )
174 std::cout <<
"getTofTrackNum step2" << std::endl;
175 return m_recTofTrackCol->GetEntries();
177 std::cout <<
"getTofTrackNum step3" << std::endl;
182 std::cout <<
"getEmcShowerNum step1" << std::endl;
183 if ( m_recEmcShowerCol )
185 std::cout <<
"getEmcShowerNum step2" << std::endl;
186 return m_recEmcShowerCol->GetEntries();
188 std::cout <<
"getEmcShowerNum step3" << std::endl;
193 std::cout <<
"getMucTrackNum step1" << std::endl;
194 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;
205 if ( m_recMdcHitCol )
207 std::cout <<
"getMdcHitkNum step2" << std::endl;
208 return m_recMdcHitCol->GetEntries();
210 std::cout <<
"getMdcHitkNum step3" << std::endl;
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