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;
27 if (!s_staticRecMdcTrackCol) {
28 s_staticRecMdcTrackCol =
new TObjArray();
30 m_recMdcTrackCol = s_staticRecMdcTrackCol;
32 if (!s_staticRecMdcHitCol) {
33 s_staticRecMdcHitCol =
new TObjArray();
35 m_recMdcHitCol = s_staticRecMdcHitCol;
38 if (! s_staticTofTrackCol ){
39 s_staticTofTrackCol =
new TObjArray();
41 m_recTofTrackCol = s_staticTofTrackCol;
43 if (!s_staticEmcHitCol ){
44 s_staticEmcHitCol =
new TObjArray();
46 m_recEmcHitCol = s_staticEmcHitCol;
48 if (!s_staticEmcClusterCol ){
49 s_staticEmcClusterCol =
new TObjArray();
51 m_recEmcClusterCol = s_staticEmcClusterCol;
53 if (!s_staticEmcShowerCol ){
54 s_staticEmcShowerCol =
new TObjArray();
56 m_recEmcShowerCol = s_staticEmcShowerCol;
59 if (! s_staticMucTrackCol ){
60 s_staticMucTrackCol =
new TObjArray();
62 m_recMucTrackCol = s_staticMucTrackCol;
64 if (! s_staticRecMdcDedxCol ){
65 s_staticRecMdcDedxCol =
new TObjArray();
67 m_recMdcDedxCol = s_staticRecMdcDedxCol;
69 if (! s_staticRecMdcDedxHitCol ){
70 s_staticRecMdcDedxHitCol =
new TObjArray();
72 m_recMdcDedxHitCol = s_staticRecMdcDedxHitCol;
75 if (! s_staticExtTrackCol ){
76 s_staticExtTrackCol =
new TObjArray();
78 m_recExtTrackCol = s_staticExtTrackCol;
81 if (! s_staticRecMdcKalTrackCol ){
82 s_staticRecMdcKalTrackCol =
new TObjArray();
84 m_recMdcKalTrackCol = s_staticRecMdcKalTrackCol;
86 if (! s_staticRecMdcKalHelixSegCol ){
87 s_staticRecMdcKalHelixSegCol =
new TObjArray();
89 m_recMdcKalHelixSegCol = s_staticRecMdcKalHelixSegCol;
91 if(! s_staticEvTimeCol ){
92 s_staticEvTimeCol =
new TObjArray();
94 m_recEvTimeCol = s_staticEvTimeCol;
104 if(m_recMdcTrackCol == s_staticRecMdcTrackCol) s_staticRecMdcTrackCol = 0;
105 m_recMdcTrackCol->Delete();
106 delete m_recMdcTrackCol;
107 m_recMdcTrackCol = 0;
109 if(m_recMdcHitCol == s_staticRecMdcHitCol) s_staticRecMdcHitCol = 0;
110 m_recMdcHitCol->Delete();
111 delete m_recMdcHitCol;
114 if(m_recTofTrackCol == s_staticTofTrackCol ) s_staticTofTrackCol = 0;
115 m_recTofTrackCol->Delete();
116 delete m_recTofTrackCol;
117 m_recTofTrackCol = 0;
119 if(m_recEmcHitCol == s_staticEmcHitCol) s_staticEmcHitCol = 0;
120 m_recEmcHitCol->Delete();
121 delete m_recEmcHitCol;
124 if(m_recEmcClusterCol == s_staticEmcClusterCol) s_staticEmcClusterCol = 0;
125 m_recEmcClusterCol->Delete();
126 delete m_recEmcClusterCol;
127 m_recEmcClusterCol = 0;
129 if(m_recEmcShowerCol == s_staticEmcShowerCol) s_staticEmcShowerCol = 0;
130 m_recEmcShowerCol->Delete();
131 delete m_recEmcShowerCol;
132 m_recEmcShowerCol = 0;
135 if(m_recMucTrackCol == s_staticMucTrackCol ) s_staticMucTrackCol = 0;
136 m_recMucTrackCol->Delete();
137 delete m_recMucTrackCol;
138 m_recMucTrackCol = 0;
140 if(m_recMdcDedxCol == s_staticRecMdcDedxCol ) s_staticRecMdcDedxCol = 0;
141 m_recMdcDedxCol->Delete();
142 delete m_recMdcDedxCol;
145 if(m_recMdcDedxHitCol == s_staticRecMdcDedxHitCol ) s_staticRecMdcDedxHitCol = 0;
146 m_recMdcDedxHitCol->Delete();
147 delete m_recMdcDedxHitCol;
148 m_recMdcDedxHitCol = 0;
151 if(m_recExtTrackCol == s_staticExtTrackCol ) s_staticExtTrackCol = 0;
152 m_recExtTrackCol->Delete();
153 delete m_recExtTrackCol;
154 m_recExtTrackCol = 0;
156 if(m_recMdcKalTrackCol == s_staticRecMdcKalTrackCol ) s_staticRecMdcKalTrackCol = 0;
157 m_recMdcKalTrackCol->Delete();
158 delete m_recMdcKalTrackCol;
159 m_recMdcKalTrackCol = 0;
161 if(m_recMdcKalHelixSegCol == s_staticRecMdcKalHelixSegCol ) s_staticRecMdcKalHelixSegCol = 0;
162 m_recMdcKalHelixSegCol->Delete();
163 delete m_recMdcKalHelixSegCol;
164 m_recMdcKalHelixSegCol = 0;
166 if(m_recEvTimeCol == s_staticEvTimeCol ) s_staticEvTimeCol = 0;
167 m_recEvTimeCol->Delete();
168 delete m_recEvTimeCol;
183 TObject::Print(option);
190 m_recMdcTrackCol->Add(
Track);
194 if (Int_t(i) >= m_recMdcTrackCol->GetEntries())
200 m_recMdcHitCol->Add(Hit);
204 if (Int_t(i) >= m_recMdcHitCol->GetEntries())
211 m_recTofTrackCol->Add(
Track);
215 if(Int_t(i) >=m_recTofTrackCol->GetEntries())
222 m_recEmcHitCol->Add(
Track);
226 if(Int_t(i) >= m_recEmcHitCol->GetEntries())
232 m_recEmcClusterCol->Add(
Track);
236 if(Int_t(i) >= m_recEmcClusterCol->GetEntries())
242 m_recEmcShowerCol->Add(
Track);
246 if(Int_t(i) >= m_recEmcShowerCol->GetEntries())
253 m_recMucTrackCol->Add(
Track);
258 if(Int_t(i) >=m_recMucTrackCol->GetEntries())
265 m_recMdcDedxCol->Add(
Track);
270 if(Int_t(i) >=m_recMdcDedxCol->GetEntries())
277 m_recMdcDedxHitCol->Add(
Track);
282 if(Int_t(i) >=m_recMdcDedxHitCol->GetEntries())
289 m_recExtTrackCol->Add(
Track);
293 if(Int_t(i) >=m_recExtTrackCol->GetEntries())
300 m_recMdcKalTrackCol->Add(
Track);
304 if(Int_t(i) >=m_recMdcKalTrackCol->GetEntries())
310 m_recMdcKalHelixSegCol->Add(
Track);
314 if(Int_t(i) >= m_recMdcKalHelixSegCol->GetEntries())
321 m_recEvTimeCol->Add(
Track);
325 if(Int_t(i) >=m_recEvTimeCol->GetEntries())
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 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 addExtTrack(TRecExtTrack *Track)
Add a ExtTrack into the Ext Data collection.