1#include "RootEventData/TMcHitEvent.h"
2#include "TCollection.h"
9 m_tTofMcHitCol =
new TObjArray();
10 m_tMdcMcHitCol =
new TObjArray();
11 m_tEmcMcDigiCol =
new TObjArray();
17 m_tTofMcHitCol->Delete();
18 delete m_tTofMcHitCol;
21 m_tMdcMcHitCol->Delete();
22 delete m_tMdcMcHitCol;
25 m_tEmcMcDigiCol->Delete();
26 delete m_tEmcMcDigiCol;
34 for ( i = 0; i < m_tTofMcHitCol->GetEntries(); i++ )
delete m_tTofMcHitCol->At( i );
35 m_tTofMcHitCol->Clear();
37 for ( i = 0; i < m_tMdcMcHitCol->GetEntries(); i++ )
delete m_tMdcMcHitCol->At( i );
38 m_tMdcMcHitCol->Clear();
40 for ( i = 0; i < m_tEmcMcDigiCol->GetEntries(); i++ )
delete m_tEmcMcDigiCol->At( i );
41 m_tEmcMcDigiCol->Clear();
51 if ( Int_t( i ) >= m_tEmcMcDigiCol->GetEntries() )
return 0;
52 else return (
TMcDigiEmc*)m_tEmcMcDigiCol->At( i );
59 if ( Int_t( i ) >= m_tTofMcHitCol->GetEntries() )
return 0;
60 else return (
TMcHitTof*)m_tTofMcHitCol->At( i );
67 if ( Int_t( i ) >= m_tMdcMcHitCol->GetEntries() )
return 0;
68 else return (
TMcHitMdc*)m_tMdcMcHitCol->At( i );
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="")