2#include "TCollection.h"
8TObjArray *TRecTrackEvent::s_staticRecMdcTrackCol = 0;
9TObjArray *TRecTrackEvent::s_staticRecMdcHitCol = 0;
10TObjArray *TRecTrackEvent::s_staticTofTrackCol = 0;
11TObjArray *TRecTrackEvent::s_staticEmcHitCol = 0;
12TObjArray *TRecTrackEvent::s_staticEmcClusterCol = 0;
13TObjArray *TRecTrackEvent::s_staticEmcShowerCol = 0;
14TObjArray *TRecTrackEvent::s_staticMucTrackCol = 0;
15TObjArray *TRecTrackEvent::s_staticRecMdcDedxCol = 0;
16TObjArray *TRecTrackEvent::s_staticRecMdcDedxHitCol = 0;
17TObjArray *TRecTrackEvent::s_staticExtTrackCol = 0;
18TObjArray *TRecTrackEvent::s_staticRecMdcKalTrackCol = 0;
19TObjArray *TRecTrackEvent::s_staticRecMdcKalHelixSegCol = 0;
20TObjArray *TRecTrackEvent::s_staticEvTimeCol = 0;
21TObjArray *TRecTrackEvent::s_staticRecZddChannelCol = 0;
28 if (!s_staticRecMdcTrackCol) {
29 s_staticRecMdcTrackCol =
new TObjArray();
31 m_recMdcTrackCol = s_staticRecMdcTrackCol;
33 if (!s_staticRecMdcHitCol) {
34 s_staticRecMdcHitCol =
new TObjArray();
36 m_recMdcHitCol = s_staticRecMdcHitCol;
39 if (! s_staticTofTrackCol ){
40 s_staticTofTrackCol =
new TObjArray();
42 m_recTofTrackCol = s_staticTofTrackCol;
44 if (!s_staticEmcHitCol ){
45 s_staticEmcHitCol =
new TObjArray();
47 m_recEmcHitCol = s_staticEmcHitCol;
49 if (!s_staticEmcClusterCol ){
50 s_staticEmcClusterCol =
new TObjArray();
52 m_recEmcClusterCol = s_staticEmcClusterCol;
54 if (!s_staticEmcShowerCol ){
55 s_staticEmcShowerCol =
new TObjArray();
57 m_recEmcShowerCol = s_staticEmcShowerCol;
60 if (! s_staticMucTrackCol ){
61 s_staticMucTrackCol =
new TObjArray();
63 m_recMucTrackCol = s_staticMucTrackCol;
65 if (! s_staticRecMdcDedxCol ){
66 s_staticRecMdcDedxCol =
new TObjArray();
68 m_recMdcDedxCol = s_staticRecMdcDedxCol;
70 if (! s_staticRecMdcDedxHitCol ){
71 s_staticRecMdcDedxHitCol =
new TObjArray();
73 m_recMdcDedxHitCol = s_staticRecMdcDedxHitCol;
76 if (! s_staticExtTrackCol ){
77 s_staticExtTrackCol =
new TObjArray();
79 m_recExtTrackCol = s_staticExtTrackCol;
82 if (! s_staticRecMdcKalTrackCol ){
83 s_staticRecMdcKalTrackCol =
new TObjArray();
85 m_recMdcKalTrackCol = s_staticRecMdcKalTrackCol;
87 if (! s_staticRecMdcKalHelixSegCol ){
88 s_staticRecMdcKalHelixSegCol =
new TObjArray();
90 m_recMdcKalHelixSegCol = s_staticRecMdcKalHelixSegCol;
92 if(! s_staticEvTimeCol ){
93 s_staticEvTimeCol =
new TObjArray();
95 m_recEvTimeCol = s_staticEvTimeCol;
97 if ( ! s_staticRecZddChannelCol ) {
98 s_staticRecZddChannelCol =
new TObjArray();
100 m_recZddChannelCol = s_staticRecZddChannelCol;
110 if(m_recMdcTrackCol == s_staticRecMdcTrackCol) s_staticRecMdcTrackCol = 0;
111 m_recMdcTrackCol->Delete();
112 delete m_recMdcTrackCol;
113 m_recMdcTrackCol = 0;
115 if(m_recMdcHitCol == s_staticRecMdcHitCol) s_staticRecMdcHitCol = 0;
116 m_recMdcHitCol->Delete();
117 delete m_recMdcHitCol;
120 if(m_recTofTrackCol == s_staticTofTrackCol ) s_staticTofTrackCol = 0;
121 m_recTofTrackCol->Delete();
122 delete m_recTofTrackCol;
123 m_recTofTrackCol = 0;
125 if(m_recEmcHitCol == s_staticEmcHitCol) s_staticEmcHitCol = 0;
126 m_recEmcHitCol->Delete();
127 delete m_recEmcHitCol;
130 if(m_recEmcClusterCol == s_staticEmcClusterCol) s_staticEmcClusterCol = 0;
131 m_recEmcClusterCol->Delete();
132 delete m_recEmcClusterCol;
133 m_recEmcClusterCol = 0;
135 if(m_recEmcShowerCol == s_staticEmcShowerCol) s_staticEmcShowerCol = 0;
136 m_recEmcShowerCol->Delete();
137 delete m_recEmcShowerCol;
138 m_recEmcShowerCol = 0;
141 if(m_recMucTrackCol == s_staticMucTrackCol ) s_staticMucTrackCol = 0;
142 m_recMucTrackCol->Delete();
143 delete m_recMucTrackCol;
144 m_recMucTrackCol = 0;
146 if(m_recMdcDedxCol == s_staticRecMdcDedxCol ) s_staticRecMdcDedxCol = 0;
147 m_recMdcDedxCol->Delete();
148 delete m_recMdcDedxCol;
151 if(m_recMdcDedxHitCol == s_staticRecMdcDedxHitCol ) s_staticRecMdcDedxHitCol = 0;
152 m_recMdcDedxHitCol->Delete();
153 delete m_recMdcDedxHitCol;
154 m_recMdcDedxHitCol = 0;
157 if(m_recExtTrackCol == s_staticExtTrackCol ) s_staticExtTrackCol = 0;
158 m_recExtTrackCol->Delete();
159 delete m_recExtTrackCol;
160 m_recExtTrackCol = 0;
162 if(m_recMdcKalTrackCol == s_staticRecMdcKalTrackCol ) s_staticRecMdcKalTrackCol = 0;
163 m_recMdcKalTrackCol->Delete();
164 delete m_recMdcKalTrackCol;
165 m_recMdcKalTrackCol = 0;
167 if(m_recMdcKalHelixSegCol == s_staticRecMdcKalHelixSegCol ) s_staticRecMdcKalHelixSegCol = 0;
168 m_recMdcKalHelixSegCol->Delete();
169 delete m_recMdcKalHelixSegCol;
170 m_recMdcKalHelixSegCol = 0;
172 if(m_recEvTimeCol == s_staticEvTimeCol ) s_staticEvTimeCol = 0;
173 m_recEvTimeCol->Delete();
174 delete m_recEvTimeCol;
177 if ( m_recZddChannelCol == s_staticRecZddChannelCol ) s_staticRecZddChannelCol = 0;
178 m_recZddChannelCol->Delete();
179 delete m_recZddChannelCol;
180 m_recZddChannelCol = 0;
194 TObject::Print(option);
201 m_recMdcTrackCol->Add(
Track);
205 if (Int_t(i) >= m_recMdcTrackCol->GetEntries())
211 m_recMdcHitCol->Add(Hit);
215 if (Int_t(i) >= m_recMdcHitCol->GetEntries())
222 m_recTofTrackCol->Add(
Track);
226 if(Int_t(i) >=m_recTofTrackCol->GetEntries())
233 m_recEmcHitCol->Add(
Track);
237 if(Int_t(i) >= m_recEmcHitCol->GetEntries())
243 m_recEmcClusterCol->Add(
Track);
247 if(Int_t(i) >= m_recEmcClusterCol->GetEntries())
253 m_recEmcShowerCol->Add(
Track);
257 if(Int_t(i) >= m_recEmcShowerCol->GetEntries())
264 m_recMucTrackCol->Add(
Track);
269 if(Int_t(i) >=m_recMucTrackCol->GetEntries())
276 m_recMdcDedxCol->Add(
Track);
281 if(Int_t(i) >=m_recMdcDedxCol->GetEntries())
288 m_recMdcDedxHitCol->Add(
Track);
293 if(Int_t(i) >=m_recMdcDedxHitCol->GetEntries())
300 m_recExtTrackCol->Add(
Track);
304 if(Int_t(i) >=m_recExtTrackCol->GetEntries())
311 m_recMdcKalTrackCol->Add(
Track);
315 if(Int_t(i) >=m_recMdcKalTrackCol->GetEntries())
321 m_recMdcKalHelixSegCol->Add(
Track);
325 if(Int_t(i) >= m_recMdcKalHelixSegCol->GetEntries())
332 m_recEvTimeCol->Add(
Track);
336 if(Int_t(i) >=m_recEvTimeCol->GetEntries())
343 m_recZddChannelCol->Add(zdd);
347 if ( i >= m_recZddChannelCol->GetEntries() || i < 0 )
ClassImp(TBossFullEvent) TBossFullEvent
void addRecMdcKalTrack(TRecMdcKalTrack *Track)
void Clear(Option_t *option="")
void addMucTrack(TRecMucTrack *Track)
Add a MucTrack into the TOF Data collection.
const TRecExtTrack * getExtTrack(Int_t i) const
const TRecMdcKalHelixSeg * getRecMdcKalHelixSeg(Int_t i) const
void addRecMdcTrack(TRecMdcTrack *Track)
Add a TkrTrack into the Mdc data collection.
void addEmcCluster(TRecEmcCluster *Track)
Add a TkrTrack into the Emc data collection */.
void addEmcHit(TRecEmcHit *Track)
Add a TkrTrack into the Emc data collection */.
const TRecZddChannel * getRecZddChannel(Int_t i) const
const TRecMdcKalTrack * getRecMdcKalTrack(Int_t i) const
virtual ~TRecTrackEvent()
void addRecMdcKalHelixSeg(TRecMdcKalHelixSeg *Track)
void addRecMdcDedx(TRecMdcDedx *Track)
Add a Dedx into the TOF Data collection.
void addEmcShower(TRecEmcShower *Track)
Add a TkrTrack into the Emc data collection */.
const TRecMdcDedx * getRecMdcDedx(Int_t i) const
retrieve a TofTrack From the collection, using the index into the array
const TRecEvTime * getEvTime(Int_t i) const
const TRecEmcCluster * getEmcCluster(Int_t i) const
retrieve a EmcCluster from the collection, using the index into the array */
const TRecTofTrack * getTofTrack(Int_t i) const
retrieve a TofTrack From the collection, using the index into the array
const TRecEmcHit * getEmcHit(Int_t i) const
retrieve a EmcHit from the collection, using the index into the array */
void addEvTime(TRecEvTime *Track)
const TRecMdcTrack * getRecMdcTrack(Int_t i) const
retrieve a MdcTrack from the collection, using the index into the array
void addRecMdcHit(TRecMdcHit *Hit)
Add a Rec Mdc Hit into the Mdc data collection.
void Print(Option_t *option="") const
const TRecMdcDedxHit * getRecMdcDedxHit(Int_t i) const
retrieve a TofTrack From the collection, using the index into the array
const TRecEmcShower * getEmcShower(Int_t i) const
retrieve a EmcShower from the collection, using the index into the array */
void addRecMdcDedxHit(TRecMdcDedxHit *Track)
Add a Dedx into the TOF Data collection.
void addTofTrack(TRecTofTrack *Track)
Add a TofTrack into the TOF Data collection.
const TRecMucTrack * getMucTrack(Int_t i) const
retrieve a MucTrack 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 addRecZddChannel(TRecZddChannel *dtag)
void addExtTrack(TRecExtTrack *Track)
Add a ExtTrack into the Ext Data collection.