2#include "TCollection.h"
7TObjArray *TMcEvent::s_staticMdcMcHitCol = 0;
8TObjArray *TMcEvent::s_staticCgemMcHitCol = 0;
9TObjArray *TMcEvent::s_staticEmcMcHitCol = 0;
10TObjArray *TMcEvent::s_staticTofMcHitCol = 0;
11TObjArray *TMcEvent::s_staticMucMcHitCol = 0;
12TObjArray *TMcEvent::s_staticMcParticleCol = 0;
20 if (!s_staticMdcMcHitCol) {
21 s_staticMdcMcHitCol =
new TObjArray();
23 m_mdcMcHitCol = s_staticMdcMcHitCol;
25 if (!s_staticCgemMcHitCol) {
26 s_staticCgemMcHitCol =
new TObjArray();
28 m_cgemMcHitCol = s_staticCgemMcHitCol;
30 if (!s_staticEmcMcHitCol ){
31 s_staticEmcMcHitCol =
new TObjArray();
33 m_emcMcHitCol = s_staticEmcMcHitCol;
35 if (! s_staticTofMcHitCol ){
36 s_staticTofMcHitCol =
new TObjArray();
38 m_tofMcHitCol = s_staticTofMcHitCol;
40 if (! s_staticMucMcHitCol ){
41 s_staticMucMcHitCol =
new TObjArray();
43 m_mucMcHitCol = s_staticMucMcHitCol;
45 if (! s_staticMcParticleCol ){
46 s_staticMcParticleCol =
new TObjArray();
48 m_mcParticleCol = s_staticMcParticleCol;
61 if(m_mdcMcHitCol == s_staticMdcMcHitCol) s_staticMdcMcHitCol = 0;
62 m_mdcMcHitCol->Delete();
66 if(m_cgemMcHitCol == s_staticCgemMcHitCol) s_staticCgemMcHitCol = 0;
67 m_cgemMcHitCol->Delete();
68 delete m_cgemMcHitCol;
71 if(m_emcMcHitCol == s_staticEmcMcHitCol) s_staticEmcMcHitCol = 0;
72 m_emcMcHitCol->Delete();
76 if(m_tofMcHitCol == s_staticTofMcHitCol ) s_staticTofMcHitCol = 0;
77 m_tofMcHitCol->Delete();
81 if(m_mucMcHitCol == s_staticMucMcHitCol ) s_staticMucMcHitCol = 0;
82 m_mucMcHitCol->Delete();
86 if(m_mcParticleCol == s_staticMcParticleCol ) s_staticMcParticleCol = 0;
87 m_mcParticleCol->Delete();
88 delete m_mcParticleCol;
110 TObject::Print(option);
115 m_mdcMcHitCol->Add(mcHit);
119 if (Int_t(i) >= m_mdcMcHitCol->GetEntries())
121 return (
TMdcMc*)m_mdcMcHitCol->At(i);
125 m_cgemMcHitCol->Add(mcHit);
129 if (Int_t(i) >= m_cgemMcHitCol->GetEntries())
131 return (
TCgemMc*)m_cgemMcHitCol->At(i);
135 m_emcMcHitCol->Add(mcHit);
139 if(Int_t(i) >= m_emcMcHitCol->GetEntries())
141 return (
TEmcMc*)m_emcMcHitCol->At(i);
146 m_tofMcHitCol->Add(mcHit);
151 if(Int_t(i) >=m_tofMcHitCol->GetEntries())
153 return (
TTofMc*) m_tofMcHitCol->At(i);
158 m_mucMcHitCol->Add(mcHit);
163 if(Int_t(i) >=m_mucMcHitCol->GetEntries())
165 return (
TMucMc*) m_mucMcHitCol->At(i);
170 m_mcParticleCol->Add(mcHit);
175 if(Int_t(i) >=m_mcParticleCol->GetEntries())
181void TMcEvent::addDecayMode(TDecayMode * decayMode){
182 m_decayMode = decayMode;
186const TDecayMode* TMcEvent::getDecayMode() const {
187 return (TDecayMode*)m_decayMode ;
ClassImp(TBossFullEvent) TBossFullEvent
void addMdcMc(TMdcMc *mcHit)
Mdc.
const TCgemMc * getCgemMc(Int_t i) const
void addMcParticle(TMcParticle *mcHit)
McParticle.
void Clear(Option_t *option="")
void Print(Option_t *option="") const
const TMdcMc * getMdcMc(Int_t i) const
void addCgemMc(TCgemMc *mcHit)
Cgem.
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