1#include "RootEventData/TMcHitEvent.h"
2#include "TCollection.h"
10 m_tTofMcHitCol =
new TObjArray();
11 m_tMdcMcHitCol =
new TObjArray();
12 m_tEmcMcDigiCol=
new TObjArray();
18 m_tTofMcHitCol->Delete();
19 delete m_tTofMcHitCol;
22 m_tMdcMcHitCol->Delete();
23 delete m_tMdcMcHitCol;
26 m_tEmcMcDigiCol->Delete();
27 delete m_tEmcMcDigiCol;
36 for(i = 0; i < m_tTofMcHitCol->GetEntries(); i++)
delete m_tTofMcHitCol->At(i);
37 m_tTofMcHitCol->Clear();
39 for(i = 0; i < m_tMdcMcHitCol->GetEntries(); i++)
delete m_tMdcMcHitCol->At(i);
40 m_tMdcMcHitCol->Clear();
42 for(i = 0; i < m_tEmcMcDigiCol->GetEntries(); i++)
delete m_tEmcMcDigiCol->At(i);
43 m_tEmcMcDigiCol->Clear();
48 TObject::Print(option);
53 m_tEmcMcDigiCol->Add(mcDigi);
58 if(Int_t(i) >=m_tEmcMcDigiCol->GetEntries())
return 0;
59 else return (
TMcDigiEmc*) m_tEmcMcDigiCol->At(i);
64 m_tTofMcHitCol->Add(mcHit);
69 if(Int_t(i) >=m_tTofMcHitCol->GetEntries())
return 0;
70 else return (
TMcHitTof*) m_tTofMcHitCol->At(i);
75 m_tMdcMcHitCol->Add(mcHit);
80 if(Int_t(i) >=m_tMdcMcHitCol->GetEntries())
return 0;
81 else return (
TMcHitMdc*) m_tMdcMcHitCol->At(i);
ClassImp(TMcHitEvent) TMcHitEvent
const TMcHitTof * getMcHitTof(Int_t i) const
retrieve a McHitTof From the collection, using the index into the array
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="")