CGEM BOSS 6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
TMcHitEvent Class Reference

#include <TMcHitEvent.h>

+ Inheritance diagram for TMcHitEvent:

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 TMcHitTofgetMcHitTof (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 TMcHitMdcgetMcHitMdc (Int_t i) const
 retrieve a McHitMdc From the collection, using the index into the array
 
const TObjArray * getMcHitCgemCol () const
 retrieve the whole TObjArray of McHitCgem Data
 
void addMcHitCgem (TMcHitCgem *hit)
 Add a McHitCgem into the Cgem Data collection.
 
const TMcHitCgemgetMcHitCgem (Int_t i) const
 retrieve a McHitCgem 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 TMcDigiEmcgetMcDigiEmc (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
 

Detailed Description

Definition at line 13 of file TMcHitEvent.h.

Constructor & Destructor Documentation

◆ TMcHitEvent()

TMcHitEvent::TMcHitEvent ( )

◆ ~TMcHitEvent()

TMcHitEvent::~TMcHitEvent ( )
virtual

Definition at line 18 of file TMcHitEvent.cxx.

18 {
19 m_tTofMcHitCol->Delete();
20 delete m_tTofMcHitCol;
21 m_tTofMcHitCol = 0;
22
23 m_tMdcMcHitCol->Delete();
24 delete m_tMdcMcHitCol;
25 m_tMdcMcHitCol = 0;
26
27 m_tCgemMcHitCol->Delete();
28 delete m_tCgemMcHitCol;
29 m_tCgemMcHitCol = 0;
30
31 m_tEmcMcDigiCol->Delete();
32 delete m_tEmcMcDigiCol;
33 m_tEmcMcDigiCol = 0;
34}

Member Function Documentation

◆ addMcDigiEmc()

void TMcHitEvent::addMcDigiEmc ( TMcDigiEmc digi)

Add a McHitMdc into the Mdc Data collection.

Emc.

Definition at line 60 of file TMcHitEvent.cxx.

60 {
61 m_tEmcMcDigiCol->Add(mcDigi);
62}

Referenced by BesRootIO::SaveEmcDigiRootEvent().

◆ addMcHitCgem()

void TMcHitEvent::addMcHitCgem ( TMcHitCgem hit)

Add a McHitCgem into the Cgem Data collection.

Cgem.

Definition at line 93 of file TMcHitEvent.cxx.

93 {
94 m_tCgemMcHitCol->Add(mcHit);
95}

Referenced by BesRootIO::SaveCgemHitRoot().

◆ addMcHitMdc()

void TMcHitEvent::addMcHitMdc ( TMcHitMdc hit)

Add a McHitMdc into the Mdc Data collection.

Mdc.

Definition at line 82 of file TMcHitEvent.cxx.

82 {
83 m_tMdcMcHitCol->Add(mcHit);
84}

Referenced by BesRootIO::SaveMdcHitRoot().

◆ addMcHitTof()

void TMcHitEvent::addMcHitTof ( TMcHitTof hit)

Add a McHitTof into the TOF Data collection.

Tof.

Definition at line 71 of file TMcHitEvent.cxx.

71 {
72 m_tTofMcHitCol->Add(mcHit);
73}

Referenced by BesRootIO::SaveTofHitRoot().

◆ Clear()

void TMcHitEvent::Clear ( Option_t *  option = "")

Definition at line 38 of file TMcHitEvent.cxx.

38 {
39 int i = 0;
40
41 for(i = 0; i < m_tTofMcHitCol->GetEntries(); i++)delete m_tTofMcHitCol->At(i);
42 m_tTofMcHitCol->Clear();
43
44 for(i = 0; i < m_tMdcMcHitCol->GetEntries(); i++)delete m_tMdcMcHitCol->At(i);
45 m_tMdcMcHitCol->Clear();
46
47 for(i = 0; i < m_tCgemMcHitCol->GetEntries(); i++)delete m_tCgemMcHitCol->At(i);
48 m_tCgemMcHitCol->Clear();
49
50 for(i = 0; i < m_tEmcMcDigiCol->GetEntries(); i++)delete m_tEmcMcDigiCol->At(i);
51 m_tEmcMcDigiCol->Clear();
52}

Referenced by ClassImp(), and BesRootIO::SaveHitRootEvent().

◆ getBeamTime()

Double_t TMcHitEvent::getBeamTime ( ) const
inline

Definition at line 60 of file TMcHitEvent.h.

60{return m_beamTime;}

Referenced by BesTuningIO::GetTofRootHits().

◆ getMcDigiEmc()

const TMcDigiEmc * TMcHitEvent::getMcDigiEmc ( Int_t  i) const

retrieve a McHitMdc From the collection, using the index into the array

Definition at line 65 of file TMcHitEvent.cxx.

65 {
66 if(Int_t(i) >=m_tEmcMcDigiCol->GetEntries()) return 0;
67 else return (TMcDigiEmc*) m_tEmcMcDigiCol->At(i);
68}

Referenced by BesTuningIO::GetEmcRootDigi().

◆ getMcDigiEmcCol()

const TObjArray * TMcHitEvent::getMcDigiEmcCol ( ) const
inline

retrieve the whole TObjArray of McHitMdc Data

Definition at line 51 of file TMcHitEvent.h.

51{ return m_tEmcMcDigiCol; };

Referenced by BesTuningIO::GetEmcRootDigi().

◆ getMcHitCgem()

const TMcHitCgem * TMcHitEvent::getMcHitCgem ( Int_t  i) const

retrieve a McHitCgem From the collection, using the index into the array

Definition at line 98 of file TMcHitEvent.cxx.

98 {
99 if(Int_t(i) >=m_tCgemMcHitCol->GetEntries()) return 0;
100 else return (TMcHitCgem*) m_tCgemMcHitCol->At(i);
101}

Referenced by BesTuningIO::GetCgemRootHits().

◆ getMcHitCgemCol()

const TObjArray * TMcHitEvent::getMcHitCgemCol ( ) const
inline

retrieve the whole TObjArray of McHitCgem Data

Definition at line 42 of file TMcHitEvent.h.

42{ return m_tCgemMcHitCol; };

Referenced by BesTuningIO::GetCgemRootHits().

◆ getMcHitMdc()

const TMcHitMdc * TMcHitEvent::getMcHitMdc ( Int_t  i) const

retrieve a McHitMdc From the collection, using the index into the array

Definition at line 87 of file TMcHitEvent.cxx.

87 {
88 if(Int_t(i) >=m_tMdcMcHitCol->GetEntries()) return 0;
89 else return (TMcHitMdc*) m_tMdcMcHitCol->At(i);
90}

Referenced by BesTuningIO::GetMdcRootHits().

◆ getMcHitMdcCol()

const TObjArray * TMcHitEvent::getMcHitMdcCol ( ) const
inline

retrieve the whole TObjArray of McHitMdc Data

Definition at line 33 of file TMcHitEvent.h.

33{ return m_tMdcMcHitCol; };

Referenced by BesTuningIO::GetMdcRootHits().

◆ getMcHitTof()

const TMcHitTof * TMcHitEvent::getMcHitTof ( Int_t  i) const

retrieve a McHitTof From the collection, using the index into the array

Definition at line 76 of file TMcHitEvent.cxx.

76 {
77 if(Int_t(i) >=m_tTofMcHitCol->GetEntries()) return 0;
78 else return (TMcHitTof*) m_tTofMcHitCol->At(i);
79}

Referenced by BesTuningIO::GetTofRootHits().

◆ getMcHitTofCol()

const TObjArray * TMcHitEvent::getMcHitTofCol ( ) const
inline

retrieve the whole TObjArray of McHitTof Data

Definition at line 24 of file TMcHitEvent.h.

24{ return m_tTofMcHitCol; };

Referenced by BesTuningIO::GetTofRootHits().

◆ Print()

void TMcHitEvent::Print ( Option_t *  option = "") const

Definition at line 55 of file TMcHitEvent.cxx.

55 {
56 TObject::Print(option);
57}

◆ setBeamTime()

void TMcHitEvent::setBeamTime ( Double_t  time)
inline

Definition at line 59 of file TMcHitEvent.h.

59{m_beamTime = time;}
Double_t time

Referenced by BesRootIO::SaveTofHitRoot().


The documentation for this class was generated from the following files: