1#include "RootEventData/TDstEvent.h"
2#include "TCollection.h"
8TObjArray *TDstEvent::s_staticMdcTrackCol = 0;
9TObjArray *TDstEvent::s_staticEmcTrackCol = 0;
10TObjArray *TDstEvent::s_staticTofTrackCol = 0;
11TObjArray *TDstEvent::s_staticMucTrackCol = 0;
12TObjArray *TDstEvent::s_staticMdcDedxCol = 0;
13TObjArray *TDstEvent::s_staticExtTrackCol = 0;
14TObjArray *TDstEvent::s_staticMdcKalTrackCol = 0;
21 if (!s_staticMdcTrackCol) {
22 s_staticMdcTrackCol =
new TObjArray();
24 m_mdcTrackCol = s_staticMdcTrackCol;
26 if (!s_staticEmcTrackCol ){
27 s_staticEmcTrackCol =
new TObjArray();
29 m_emcTrackCol = s_staticEmcTrackCol;
31 if (! s_staticTofTrackCol ){
32 s_staticTofTrackCol =
new TObjArray();
34 m_tofTrackCol = s_staticTofTrackCol;
36 if (! s_staticMucTrackCol ){
37 s_staticMucTrackCol =
new TObjArray();
39 m_mucTrackCol = s_staticMucTrackCol;
41 if (! s_staticMdcDedxCol ){
42 s_staticMdcDedxCol =
new TObjArray();
44 m_mdcDedxCol = s_staticMdcDedxCol;
46 if (! s_staticExtTrackCol ){
47 s_staticExtTrackCol =
new TObjArray();
49 m_extTrackCol = s_staticExtTrackCol;
52 if (! s_staticMdcKalTrackCol ){
53 s_staticMdcKalTrackCol =
new TObjArray();
55 m_mdcKalTrackCol = s_staticMdcKalTrackCol;
65 if(m_mdcTrackCol == s_staticMdcTrackCol) s_staticMdcTrackCol = 0;
66 m_mdcTrackCol->Delete();
70 if(m_emcTrackCol == s_staticEmcTrackCol) s_staticEmcTrackCol = 0;
71 m_emcTrackCol->Delete();
75 if(m_tofTrackCol == s_staticTofTrackCol ) s_staticTofTrackCol = 0;
76 m_tofTrackCol->Delete();
80 if(m_mucTrackCol == s_staticMucTrackCol ) s_staticMucTrackCol = 0;
81 m_mucTrackCol->Delete();
85 if(m_mdcDedxCol == s_staticMdcDedxCol ) s_staticMdcDedxCol = 0;
86 m_mdcDedxCol->Delete();
90 if(m_extTrackCol == s_staticExtTrackCol ) s_staticExtTrackCol = 0;
91 m_extTrackCol->Delete();
95 if(m_mdcKalTrackCol == s_staticMdcKalTrackCol ) s_staticMdcKalTrackCol = 0;
96 m_mdcKalTrackCol->Delete();
97 delete m_mdcKalTrackCol;
114 TObject::Print(option);
121 m_mdcTrackCol->Add(
Track);
125 if (Int_t(i) >= m_mdcTrackCol->GetEntries())
131 m_emcTrackCol->Add(
Track);
135 if(Int_t(i) >= m_emcTrackCol->GetEntries())
142 m_tofTrackCol->Add(
Track);
147 if(Int_t(i) >=m_tofTrackCol->GetEntries())
149 return (
TTofTrack*) m_tofTrackCol->At(i);
153 m_mucTrackCol->Add(
Track);
158 if(Int_t(i) >=m_mucTrackCol->GetEntries())
160 return (
TMucTrack*) m_mucTrackCol->At(i);
164 m_mdcDedxCol->Add(
Track);
169 if(Int_t(i) >=m_mdcDedxCol->GetEntries())
171 return (
TMdcDedx*) m_mdcDedxCol->At(i);
176 m_extTrackCol->Add(
Track);
180 if(Int_t(i) >=m_extTrackCol->GetEntries())
182 return (
TExtTrack*) m_extTrackCol->At(i);
187 m_mdcKalTrackCol->Add(
Track);
191 if(Int_t(i) >=m_mdcKalTrackCol->GetEntries())
ClassImp(TBossFullEvent) TBossFullEvent
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 addMdcKalTrack(TMdcKalTrack *Track)
void addMucTrack(TMucTrack *Track)
Add a MucTrack into the TOF Data collection.
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 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="")
void addTofTrack(TTofTrack *Track)
Add a TofTrack into the TOF Data collection.