#include <TMcHitEvent.h>
Public Member Functions | |
TMcHitEvent () | |
virtual | ~TMcHitEvent () |
void | Clear (Option_t *option="") |
void | Print (Option_t *option="") const |
const TObjArray * | getMcHitTofCol () const |
retrieve the whole TObjArray of McHitTof Data | |
void | addMcHitTof (TMcHitTof *hit) |
Add a McHitTof into the TOF Data collection. | |
const TMcHitTof * | getMcHitTof (Int_t i) const |
retrieve a McHitTof From the collection, using the index into the array | |
const TObjArray * | getMcHitMdcCol () const |
retrieve the whole TObjArray of McHitMdc Data | |
void | addMcHitMdc (TMcHitMdc *hit) |
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 | |
const TObjArray * | getMcDigiEmcCol () const |
retrieve the whole TObjArray of McHitMdc Data | |
void | addMcDigiEmc (TMcDigiEmc *digi) |
Add a McHitMdc into the Mdc Data collection. | |
const TMcDigiEmc * | getMcDigiEmc (Int_t i) const |
retrieve a McHitMdc From the collection, using the index into the array | |
void | setBeamTime (Double_t time) |
Double_t | getBeamTime () const |
Private Attributes | |
TObjArray * | m_tTofMcHitCol |
data members to store Tof data | |
TObjArray * | m_tMdcMcHitCol |
data members to store Mdc data | |
TObjArray * | m_tEmcMcDigiCol |
data members to store Mdc data | |
Double_t | m_beamTime |
Definition at line 12 of file TMcHitEvent.h.
TMcHitEvent::TMcHitEvent | ( | ) |
TMcHitEvent::~TMcHitEvent | ( | ) | [virtual] |
Definition at line 17 of file TMcHitEvent.cxx.
References m_tEmcMcDigiCol, m_tMdcMcHitCol, and m_tTofMcHitCol.
00017 { 00018 m_tTofMcHitCol->Delete(); 00019 delete m_tTofMcHitCol; 00020 m_tTofMcHitCol = 0; 00021 00022 m_tMdcMcHitCol->Delete(); 00023 delete m_tMdcMcHitCol; 00024 m_tMdcMcHitCol = 0; 00025 00026 m_tEmcMcDigiCol->Delete(); 00027 delete m_tEmcMcDigiCol; 00028 m_tEmcMcDigiCol = 0; 00029 }
void TMcHitEvent::addMcDigiEmc | ( | TMcDigiEmc * | digi | ) |
Add a McHitMdc into the Mdc Data collection.
Definition at line 52 of file TMcHitEvent.cxx.
References m_tEmcMcDigiCol.
Referenced by BesRootIO::SaveEmcDigiRootEvent().
00052 { 00053 m_tEmcMcDigiCol->Add(mcDigi); 00054 }
void TMcHitEvent::addMcHitMdc | ( | TMcHitMdc * | hit | ) |
Add a McHitMdc into the Mdc Data collection.
Definition at line 74 of file TMcHitEvent.cxx.
References m_tMdcMcHitCol.
Referenced by BesRootIO::SaveMdcHitRoot().
00074 { 00075 m_tMdcMcHitCol->Add(mcHit); 00076 }
void TMcHitEvent::addMcHitTof | ( | TMcHitTof * | hit | ) |
Add a McHitTof into the TOF Data collection.
Definition at line 63 of file TMcHitEvent.cxx.
References m_tTofMcHitCol.
Referenced by BesRootIO::SaveTofHitRoot().
00063 { 00064 m_tTofMcHitCol->Add(mcHit); 00065 }
void TMcHitEvent::Clear | ( | Option_t * | option = "" |
) |
Definition at line 33 of file TMcHitEvent.cxx.
References genRecEmupikp::i, m_tEmcMcDigiCol, m_tMdcMcHitCol, and m_tTofMcHitCol.
Referenced by BesRootIO::SaveHitRootEvent().
00033 { 00034 int i = 0; 00035 00036 for(i = 0; i < m_tTofMcHitCol->GetEntries(); i++)delete m_tTofMcHitCol->At(i); 00037 m_tTofMcHitCol->Clear(); 00038 00039 for(i = 0; i < m_tMdcMcHitCol->GetEntries(); i++)delete m_tMdcMcHitCol->At(i); 00040 m_tMdcMcHitCol->Clear(); 00041 00042 for(i = 0; i < m_tEmcMcDigiCol->GetEntries(); i++)delete m_tEmcMcDigiCol->At(i); 00043 m_tEmcMcDigiCol->Clear(); 00044 }
Double_t TMcHitEvent::getBeamTime | ( | ) | const [inline] |
Definition at line 50 of file TMcHitEvent.h.
References m_beamTime.
Referenced by BesTuningIO::GetTofRootHits().
00050 {return m_beamTime;}
const TMcDigiEmc * TMcHitEvent::getMcDigiEmc | ( | Int_t | i | ) | const |
retrieve a McHitMdc From the collection, using the index into the array
Definition at line 57 of file TMcHitEvent.cxx.
References m_tEmcMcDigiCol.
Referenced by BesTuningIO::GetEmcRootDigi().
00057 { 00058 if(Int_t(i) >=m_tEmcMcDigiCol->GetEntries()) return 0; 00059 else return (TMcDigiEmc*) m_tEmcMcDigiCol->At(i); 00060 }
const TObjArray* TMcHitEvent::getMcDigiEmcCol | ( | ) | const [inline] |
retrieve the whole TObjArray of McHitMdc Data
Definition at line 41 of file TMcHitEvent.h.
References m_tEmcMcDigiCol.
Referenced by BesTuningIO::GetEmcRootDigi().
00041 { return m_tEmcMcDigiCol; };
const TMcHitMdc * TMcHitEvent::getMcHitMdc | ( | Int_t | i | ) | const |
retrieve a McHitMdc From the collection, using the index into the array
Definition at line 79 of file TMcHitEvent.cxx.
References m_tMdcMcHitCol.
Referenced by BesTuningIO::GetMdcRootHits().
00079 { 00080 if(Int_t(i) >=m_tMdcMcHitCol->GetEntries()) return 0; 00081 else return (TMcHitMdc*) m_tMdcMcHitCol->At(i); 00082 }
const TObjArray* TMcHitEvent::getMcHitMdcCol | ( | ) | const [inline] |
retrieve the whole TObjArray of McHitMdc Data
Definition at line 32 of file TMcHitEvent.h.
References m_tMdcMcHitCol.
Referenced by BesTuningIO::GetMdcRootHits().
00032 { return m_tMdcMcHitCol; };
const TMcHitTof * TMcHitEvent::getMcHitTof | ( | Int_t | i | ) | const |
retrieve a McHitTof From the collection, using the index into the array
Definition at line 68 of file TMcHitEvent.cxx.
References m_tTofMcHitCol.
Referenced by BesTuningIO::GetTofRootHits().
00068 { 00069 if(Int_t(i) >=m_tTofMcHitCol->GetEntries()) return 0; 00070 else return (TMcHitTof*) m_tTofMcHitCol->At(i); 00071 }
const TObjArray* TMcHitEvent::getMcHitTofCol | ( | ) | const [inline] |
retrieve the whole TObjArray of McHitTof Data
Definition at line 23 of file TMcHitEvent.h.
References m_tTofMcHitCol.
Referenced by BesTuningIO::GetTofRootHits().
00023 { return m_tTofMcHitCol; };
void TMcHitEvent::Print | ( | Option_t * | option = "" |
) | const |
void TMcHitEvent::setBeamTime | ( | Double_t | time | ) | [inline] |
Definition at line 49 of file TMcHitEvent.h.
References m_beamTime.
Referenced by BesRootIO::SaveTofHitRoot().
00049 {m_beamTime = time;}
Double_t TMcHitEvent::m_beamTime [private] |
TObjArray* TMcHitEvent::m_tEmcMcDigiCol [private] |
data members to store Mdc data
Definition at line 59 of file TMcHitEvent.h.
Referenced by addMcDigiEmc(), Clear(), getMcDigiEmc(), getMcDigiEmcCol(), and ~TMcHitEvent().
TObjArray* TMcHitEvent::m_tMdcMcHitCol [private] |
data members to store Mdc data
Definition at line 57 of file TMcHitEvent.h.
Referenced by addMcHitMdc(), Clear(), getMcHitMdc(), getMcHitMdcCol(), and ~TMcHitEvent().
TObjArray* TMcHitEvent::m_tTofMcHitCol [private] |
data members to store Tof data
Definition at line 55 of file TMcHitEvent.h.
Referenced by addMcHitTof(), Clear(), getMcHitTof(), getMcHitTofCol(), and ~TMcHitEvent().