2#include "TCollection.h"
7TObjArray *TMcEvent::s_staticMdcMcHitCol = 0;
8TObjArray *TMcEvent::s_staticEmcMcHitCol = 0;
9TObjArray *TMcEvent::s_staticTofMcHitCol = 0;
10TObjArray *TMcEvent::s_staticMucMcHitCol = 0;
11TObjArray *TMcEvent::s_staticMcParticleCol = 0;
19 if (!s_staticMdcMcHitCol) {
20 s_staticMdcMcHitCol =
new TObjArray();
22 m_mdcMcHitCol = s_staticMdcMcHitCol;
24 if (!s_staticEmcMcHitCol ){
25 s_staticEmcMcHitCol =
new TObjArray();
27 m_emcMcHitCol = s_staticEmcMcHitCol;
29 if (! s_staticTofMcHitCol ){
30 s_staticTofMcHitCol =
new TObjArray();
32 m_tofMcHitCol = s_staticTofMcHitCol;
34 if (! s_staticMucMcHitCol ){
35 s_staticMucMcHitCol =
new TObjArray();
37 m_mucMcHitCol = s_staticMucMcHitCol;
39 if (! s_staticMcParticleCol ){
40 s_staticMcParticleCol =
new TObjArray();
42 m_mcParticleCol = s_staticMcParticleCol;
55 if(m_mdcMcHitCol == s_staticMdcMcHitCol) s_staticMdcMcHitCol = 0;
56 m_mdcMcHitCol->Delete();
60 if(m_emcMcHitCol == s_staticEmcMcHitCol) s_staticEmcMcHitCol = 0;
61 m_emcMcHitCol->Delete();
65 if(m_tofMcHitCol == s_staticTofMcHitCol ) s_staticTofMcHitCol = 0;
66 m_tofMcHitCol->Delete();
70 if(m_mucMcHitCol == s_staticMucMcHitCol ) s_staticMucMcHitCol = 0;
71 m_mucMcHitCol->Delete();
75 if(m_mcParticleCol == s_staticMcParticleCol ) s_staticMcParticleCol = 0;
76 m_mcParticleCol->Delete();
77 delete m_mcParticleCol;
99 TObject::Print(option);
104 m_mdcMcHitCol->Add(mcHit);
108 if (Int_t(i) >= m_mdcMcHitCol->GetEntries())
110 return (
TMdcMc*)m_mdcMcHitCol->At(i);
114 m_emcMcHitCol->Add(mcHit);
118 if(Int_t(i) >= m_emcMcHitCol->GetEntries())
120 return (
TEmcMc*)m_emcMcHitCol->At(i);
125 m_tofMcHitCol->Add(mcHit);
130 if(Int_t(i) >=m_tofMcHitCol->GetEntries())
132 return (
TTofMc*) m_tofMcHitCol->At(i);
137 m_mucMcHitCol->Add(mcHit);
142 if(Int_t(i) >=m_mucMcHitCol->GetEntries())
144 return (
TMucMc*) m_mucMcHitCol->At(i);
149 m_mcParticleCol->Add(mcHit);
154 if(Int_t(i) >=m_mcParticleCol->GetEntries())
160void TMcEvent::addDecayMode(TDecayMode * decayMode){
161 m_decayMode = decayMode;
165const TDecayMode* TMcEvent::getDecayMode() const {
166 return (TDecayMode*)m_decayMode ;
ClassImp(TBossFullEvent) TBossFullEvent
void addMdcMc(TMdcMc *mcHit)
Mdc.
void addMcParticle(TMcParticle *mcHit)
McParticle.
void Clear(Option_t *option="")
void Print(Option_t *option="") const
const TMdcMc * getMdcMc(Int_t i) const
void addTofMc(TTofMc *mcHit)
Tof.
void addEmcMc(TEmcMc *mcHit)
Emc.
const TMcParticle * getMcParticle(Int_t i) const
void addMucMc(TMucMc *mcHit)
Muc.
const TEmcMc * getEmcMc(Int_t i) const
const TMucMc * getMucMc(Int_t i) const
const TTofMc * getTofMc(Int_t i) const