2#include "TCollection.h"
10 m_tTofMcHitCol =
new TObjArray();
11 m_tMdcMcHitCol =
new TObjArray();
12 m_tCgemMcHitCol =
new TObjArray();
13 m_tEmcMcDigiCol=
new TObjArray();
19 m_tTofMcHitCol->Delete();
20 delete m_tTofMcHitCol;
23 m_tMdcMcHitCol->Delete();
24 delete m_tMdcMcHitCol;
27 m_tCgemMcHitCol->Delete();
28 delete m_tCgemMcHitCol;
31 m_tEmcMcDigiCol->Delete();
32 delete m_tEmcMcDigiCol;
41 for(i = 0; i < m_tTofMcHitCol->GetEntries(); i++)
delete m_tTofMcHitCol->At(i);
42 m_tTofMcHitCol->Clear();
44 for(i = 0; i < m_tMdcMcHitCol->GetEntries(); i++)
delete m_tMdcMcHitCol->At(i);
45 m_tMdcMcHitCol->Clear();
47 for(i = 0; i < m_tCgemMcHitCol->GetEntries(); i++)
delete m_tCgemMcHitCol->At(i);
48 m_tCgemMcHitCol->Clear();
50 for(i = 0; i < m_tEmcMcDigiCol->GetEntries(); i++)
delete m_tEmcMcDigiCol->At(i);
51 m_tEmcMcDigiCol->Clear();
56 TObject::Print(option);
61 m_tEmcMcDigiCol->Add(mcDigi);
66 if(Int_t(i) >=m_tEmcMcDigiCol->GetEntries())
return 0;
67 else return (
TMcDigiEmc*) m_tEmcMcDigiCol->At(i);
72 m_tTofMcHitCol->Add(mcHit);
77 if(Int_t(i) >=m_tTofMcHitCol->GetEntries())
return 0;
78 else return (
TMcHitTof*) m_tTofMcHitCol->At(i);
83 m_tMdcMcHitCol->Add(mcHit);
88 if(Int_t(i) >=m_tMdcMcHitCol->GetEntries())
return 0;
89 else return (
TMcHitMdc*) m_tMdcMcHitCol->At(i);
94 m_tCgemMcHitCol->Add(mcHit);
99 if(Int_t(i) >=m_tCgemMcHitCol->GetEntries())
return 0;
100 else return (
TMcHitCgem*) m_tCgemMcHitCol->At(i);
ClassImp(TMcHitEvent) TMcHitEvent
const TMcHitTof * getMcHitTof(Int_t i) const
retrieve a McHitTof From the collection, using the index into the array
const TMcHitCgem * getMcHitCgem(Int_t i) const
retrieve a McHitCgem From the collection, using the index into the array
void addMcHitCgem(TMcHitCgem *hit)
Add a McHitCgem into the Cgem Data collection.
void addMcHitTof(TMcHitTof *hit)
Add a McHitTof into the TOF Data collection.
void addMcDigiEmc(TMcDigiEmc *digi)
Add a McHitMdc into the Mdc Data collection.
const TMcHitMdc * getMcHitMdc(Int_t i) const
retrieve a McHitMdc From the collection, using the index into the array
void Print(Option_t *option="") const
const TMcDigiEmc * getMcDigiEmc(Int_t i) const
retrieve a McHitMdc From the collection, using the index into the array
void addMcHitMdc(TMcHitMdc *hit)
Add a McHitMdc into the Mdc Data collection.
void Clear(Option_t *option="")