2#include "TCollection.h"
8TObjArray *TDstEvent::s_staticMdcTrackCol = 0;
9TObjArray *TDstEvent::s_staticCgemTrackCol = 0;
10TObjArray *TDstEvent::s_staticEmcTrackCol = 0;
11TObjArray *TDstEvent::s_staticTofTrackCol = 0;
12TObjArray *TDstEvent::s_staticMucTrackCol = 0;
13TObjArray *TDstEvent::s_staticMdcDedxCol = 0;
14TObjArray *TDstEvent::s_staticCgemDedxCol = 0;
15TObjArray *TDstEvent::s_staticExtTrackCol = 0;
16TObjArray *TDstEvent::s_staticMdcKalTrackCol = 0;
17TObjArray *TDstEvent::s_staticCgemKalTrackCol = 0;
18TObjArray *TDstEvent::s_staticCgemSegmentCol = 0;
25 if (!s_staticMdcTrackCol) {
26 s_staticMdcTrackCol =
new TObjArray();
28 m_mdcTrackCol = s_staticMdcTrackCol;
30 if (!s_staticCgemTrackCol) {
31 s_staticCgemTrackCol =
new TObjArray();
33 m_cgemTrackCol = s_staticCgemTrackCol;
35 if (!s_staticCgemSegmentCol) {
36 s_staticCgemSegmentCol =
new TObjArray();
38 m_cgemSegmentCol = s_staticCgemSegmentCol;
40 if (!s_staticEmcTrackCol ){
41 s_staticEmcTrackCol =
new TObjArray();
43 m_emcTrackCol = s_staticEmcTrackCol;
45 if (! s_staticTofTrackCol ){
46 s_staticTofTrackCol =
new TObjArray();
48 m_tofTrackCol = s_staticTofTrackCol;
50 if (! s_staticMucTrackCol ){
51 s_staticMucTrackCol =
new TObjArray();
53 m_mucTrackCol = s_staticMucTrackCol;
55 if (! s_staticMdcDedxCol ){
56 s_staticMdcDedxCol =
new TObjArray();
58 m_mdcDedxCol = s_staticMdcDedxCol;
60 if (! s_staticCgemDedxCol ){
61 s_staticCgemDedxCol =
new TObjArray();
63 m_cgemDedxCol = s_staticCgemDedxCol;
65 if (! s_staticExtTrackCol ){
66 s_staticExtTrackCol =
new TObjArray();
68 m_extTrackCol = s_staticExtTrackCol;
71 if (! s_staticMdcKalTrackCol ){
72 s_staticMdcKalTrackCol =
new TObjArray();
74 m_mdcKalTrackCol = s_staticMdcKalTrackCol;
76 if (! s_staticCgemKalTrackCol ){
77 s_staticCgemKalTrackCol =
new TObjArray();
79 m_cgemKalTrackCol = s_staticCgemKalTrackCol;
89 if(m_mdcTrackCol == s_staticMdcTrackCol) s_staticMdcTrackCol = 0;
90 m_mdcTrackCol->Delete();
94 if(m_cgemSegmentCol == s_staticCgemSegmentCol) s_staticCgemSegmentCol = 0;
95 m_cgemSegmentCol->Delete();
96 delete m_cgemSegmentCol;
99 if(m_cgemTrackCol == s_staticCgemTrackCol) s_staticCgemTrackCol = 0;
100 m_cgemTrackCol->Delete();
101 delete m_cgemTrackCol;
104 if(m_emcTrackCol == s_staticEmcTrackCol) s_staticEmcTrackCol = 0;
105 m_emcTrackCol->Delete();
106 delete m_emcTrackCol;
109 if(m_tofTrackCol == s_staticTofTrackCol ) s_staticTofTrackCol = 0;
110 m_tofTrackCol->Delete();
111 delete m_tofTrackCol;
114 if(m_mucTrackCol == s_staticMucTrackCol ) s_staticMucTrackCol = 0;
115 m_mucTrackCol->Delete();
116 delete m_mucTrackCol;
119 if(m_mdcDedxCol == s_staticMdcDedxCol ) s_staticMdcDedxCol = 0;
120 m_mdcDedxCol->Delete();
124 if(m_cgemDedxCol == s_staticCgemDedxCol ) s_staticCgemDedxCol = 0;
125 m_cgemDedxCol->Delete();
126 delete m_cgemDedxCol;
129 if(m_extTrackCol == s_staticExtTrackCol ) s_staticExtTrackCol = 0;
130 m_extTrackCol->Delete();
131 delete m_extTrackCol;
134 if(m_mdcKalTrackCol == s_staticMdcKalTrackCol ) s_staticMdcKalTrackCol = 0;
135 m_mdcKalTrackCol->Delete();
136 delete m_mdcKalTrackCol;
137 m_mdcKalTrackCol = 0;
139 if(m_cgemKalTrackCol == s_staticCgemKalTrackCol ) s_staticCgemKalTrackCol = 0;
140 m_cgemKalTrackCol->Delete();
141 delete m_cgemKalTrackCol;
142 m_cgemKalTrackCol = 0;
158 TObject::Print(option);
165 m_mdcTrackCol->Add(
Track);
169 if (Int_t(i) >= m_mdcTrackCol->GetEntries())
175 m_cgemTrackCol->Add(
Track);
179 if (Int_t(i) >= m_cgemTrackCol->GetEntries())
185 m_cgemSegmentCol->Add(
Segment);
189 if (Int_t(i) >= m_cgemSegmentCol->GetEntries())
195 m_emcTrackCol->Add(
Track);
199 if(Int_t(i) >= m_emcTrackCol->GetEntries())
206 m_tofTrackCol->Add(
Track);
211 if(Int_t(i) >=m_tofTrackCol->GetEntries())
213 return (
TTofTrack*) m_tofTrackCol->At(i);
217 m_mucTrackCol->Add(
Track);
222 if(Int_t(i) >=m_mucTrackCol->GetEntries())
224 return (
TMucTrack*) m_mucTrackCol->At(i);
228 m_mdcDedxCol->Add(
Track);
233 if(Int_t(i) >=m_mdcDedxCol->GetEntries())
235 return (
TMdcDedx*) m_mdcDedxCol->At(i);
239 m_cgemDedxCol->Add(
Track);
244 if(Int_t(i) >=m_cgemDedxCol->GetEntries())
246 return (
TCgemDedx*) m_cgemDedxCol->At(i);
251 m_extTrackCol->Add(
Track);
255 if(Int_t(i) >=m_extTrackCol->GetEntries())
257 return (
TExtTrack*) m_extTrackCol->At(i);
262 m_mdcKalTrackCol->Add(
Track);
266 if(Int_t(i) >=m_mdcKalTrackCol->GetEntries())
273 m_cgemKalTrackCol->Add(
Track);
277 if(Int_t(i) >=m_cgemKalTrackCol->GetEntries())
ClassImp(TBossFullEvent) TBossFullEvent
const TCgemDedx * getCgemDedx(Int_t i) const
retrieve a TofTrack From the collection, using the index into the array
void addMdcTrack(TMdcTrack *Track)
Add a Tkrtrack into the Mdc data collection.
const TMdcDedx * getMdcDedx(Int_t i) const
retrieve a TofTrack From the collection, using the index into the array
void addEmcTrack(TEmcTrack *Track)
Add a TkrTrack into the Emc data collection.
const TEmcTrack * getEmcTrack(Int_t i) const
retrieve a EmcTrack from the collection, using the index into the array
void addExtTrack(TExtTrack *Track)
Add a ExtTrack into the Ext Data collection.
void addCgemDedx(TCgemDedx *Track)
Add a Dedx into the TOF Data collection.
void addCgemTrack(TCgemTrack *Track)
Add a tkrtrack into the Cgem data collection.
void addMdcKalTrack(TMdcKalTrack *Track)
void addMucTrack(TMucTrack *Track)
Add a MucTrack into the TOF Data collection.
const TCgemTrack * getCgemTrack(Int_t i) const
retrieve a CgemTrack from the collection, using the index into the array
void Print(Option_t *option="") const
const TExtTrack * getExtTrack(Int_t i) const
retrieve a MucTrack From the collection, using the index into the array
void addCgemSegment(TCgemSegment *Segment)
Add a segment into the Cgem data collection.
void addCgemKalTrack(TCgemKalTrack *Track)
void addMdcDedx(TMdcDedx *Track)
Add a Dedx into the TOF Data collection.
const TMdcKalTrack * getMdcKalTrack(Int_t i) const
const TTofTrack * getTofTrack(Int_t i) const
retrieve a TofTrack From the collection, using the index into the array
const TMucTrack * getMucTrack(Int_t i) const
retrieve a MucTrack From the collection, using the index into the array
const TMdcTrack * getMdcTrack(Int_t i) const
retrieve a Mdctrack from the collection, using the index into the array
void Clear(Option_t *option="")
const TCgemKalTrack * getCgemKalTrack(Int_t i) const
void addTofTrack(TTofTrack *Track)
Add a TofTrack into the TOF Data collection.
const TCgemSegment * getCgemSegment(Int_t i) const
retrieve a CgemSegment from the collection, using the index into the array