BOSS 7.0.2
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 * 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
 
 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 * 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

Constructor & Destructor Documentation

◆ TMcHitEvent() [1/2]

TMcHitEvent::TMcHitEvent ( )

◆ ~TMcHitEvent() [1/2]

TMcHitEvent::~TMcHitEvent ( )
virtual

Definition at line 17 of file TMcHitEvent.cxx.

17 {
18 m_tTofMcHitCol->Delete();
19 delete m_tTofMcHitCol;
20 m_tTofMcHitCol = 0;
21
22 m_tMdcMcHitCol->Delete();
23 delete m_tMdcMcHitCol;
24 m_tMdcMcHitCol = 0;
25
26 m_tEmcMcDigiCol->Delete();
27 delete m_tEmcMcDigiCol;
28 m_tEmcMcDigiCol = 0;
29}

◆ TMcHitEvent() [2/2]

TMcHitEvent::TMcHitEvent ( )

◆ ~TMcHitEvent() [2/2]

virtual TMcHitEvent::~TMcHitEvent ( )
virtual

Member Function Documentation

◆ addMcDigiEmc() [1/2]

void TMcHitEvent::addMcDigiEmc ( TMcDigiEmc digi)

Add a McHitMdc into the Mdc Data collection.

Emc.

Definition at line 52 of file TMcHitEvent.cxx.

52 {
53 m_tEmcMcDigiCol->Add(mcDigi);
54}

Referenced by BesRootIO::SaveEmcDigiRootEvent().

◆ addMcDigiEmc() [2/2]

void TMcHitEvent::addMcDigiEmc ( TMcDigiEmc digi)

Add a McHitMdc into the Mdc Data collection.

◆ addMcHitMdc() [1/2]

void TMcHitEvent::addMcHitMdc ( TMcHitMdc hit)

Add a McHitMdc into the Mdc Data collection.

Mdc.

Definition at line 74 of file TMcHitEvent.cxx.

74 {
75 m_tMdcMcHitCol->Add(mcHit);
76}

Referenced by BesRootIO::SaveMdcHitRoot().

◆ addMcHitMdc() [2/2]

void TMcHitEvent::addMcHitMdc ( TMcHitMdc hit)

Add a McHitMdc into the Mdc Data collection.

◆ addMcHitTof() [1/2]

void TMcHitEvent::addMcHitTof ( TMcHitTof hit)

Add a McHitTof into the TOF Data collection.

Tof.

Definition at line 63 of file TMcHitEvent.cxx.

63 {
64 m_tTofMcHitCol->Add(mcHit);
65}

Referenced by BesRootIO::SaveTofHitRoot().

◆ addMcHitTof() [2/2]

void TMcHitEvent::addMcHitTof ( TMcHitTof hit)

Add a McHitTof into the TOF Data collection.

◆ Clear() [1/2]

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

Definition at line 33 of file TMcHitEvent.cxx.

33 {
34 int i = 0;
35
36 for(i = 0; i < m_tTofMcHitCol->GetEntries(); i++)delete m_tTofMcHitCol->At(i);
37 m_tTofMcHitCol->Clear();
38
39 for(i = 0; i < m_tMdcMcHitCol->GetEntries(); i++)delete m_tMdcMcHitCol->At(i);
40 m_tMdcMcHitCol->Clear();
41
42 for(i = 0; i < m_tEmcMcDigiCol->GetEntries(); i++)delete m_tEmcMcDigiCol->At(i);
43 m_tEmcMcDigiCol->Clear();
44}

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

◆ Clear() [2/2]

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

◆ getBeamTime() [1/2]

Double_t TMcHitEvent::getBeamTime ( ) const
inline

Definition at line 50 of file Event/RootEventData/RootEventData-00-03-80/RootEventData/TMcHitEvent.h.

50{return m_beamTime;}

Referenced by BesTuningIO::GetTofRootHits().

◆ getBeamTime() [2/2]

Double_t TMcHitEvent::getBeamTime ( ) const
inline

Definition at line 50 of file InstallArea/include/RootEventData/RootEventData/TMcHitEvent.h.

50{return m_beamTime;}

◆ getMcDigiEmc() [1/2]

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.

57 {
58 if(Int_t(i) >=m_tEmcMcDigiCol->GetEntries()) return 0;
59 else return (TMcDigiEmc*) m_tEmcMcDigiCol->At(i);
60}

Referenced by BesTuningIO::GetEmcRootDigi().

◆ getMcDigiEmc() [2/2]

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

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

◆ getMcDigiEmcCol() [1/2]

const TObjArray * TMcHitEvent::getMcDigiEmcCol ( ) const
inline

retrieve the whole TObjArray of McHitMdc Data

Definition at line 41 of file Event/RootEventData/RootEventData-00-03-80/RootEventData/TMcHitEvent.h.

41{ return m_tEmcMcDigiCol; };

Referenced by BesTuningIO::GetEmcRootDigi().

◆ getMcDigiEmcCol() [2/2]

const TObjArray * TMcHitEvent::getMcDigiEmcCol ( ) const
inline

retrieve the whole TObjArray of McHitMdc Data

Definition at line 41 of file InstallArea/include/RootEventData/RootEventData/TMcHitEvent.h.

41{ return m_tEmcMcDigiCol; };

◆ getMcHitMdc() [1/2]

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.

79 {
80 if(Int_t(i) >=m_tMdcMcHitCol->GetEntries()) return 0;
81 else return (TMcHitMdc*) m_tMdcMcHitCol->At(i);
82}

Referenced by BesTuningIO::GetMdcRootHits().

◆ getMcHitMdc() [2/2]

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

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

◆ getMcHitMdcCol() [1/2]

const TObjArray * TMcHitEvent::getMcHitMdcCol ( ) const
inline

retrieve the whole TObjArray of McHitMdc Data

Definition at line 32 of file Event/RootEventData/RootEventData-00-03-80/RootEventData/TMcHitEvent.h.

32{ return m_tMdcMcHitCol; };

Referenced by BesTuningIO::GetMdcRootHits().

◆ getMcHitMdcCol() [2/2]

const TObjArray * TMcHitEvent::getMcHitMdcCol ( ) const
inline

retrieve the whole TObjArray of McHitMdc Data

Definition at line 32 of file InstallArea/include/RootEventData/RootEventData/TMcHitEvent.h.

32{ return m_tMdcMcHitCol; };

◆ getMcHitTof() [1/2]

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.

68 {
69 if(Int_t(i) >=m_tTofMcHitCol->GetEntries()) return 0;
70 else return (TMcHitTof*) m_tTofMcHitCol->At(i);
71}

Referenced by BesTuningIO::GetTofRootHits().

◆ getMcHitTof() [2/2]

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

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

◆ getMcHitTofCol() [1/2]

const TObjArray * TMcHitEvent::getMcHitTofCol ( ) const
inline

retrieve the whole TObjArray of McHitTof Data

Definition at line 23 of file Event/RootEventData/RootEventData-00-03-80/RootEventData/TMcHitEvent.h.

23{ return m_tTofMcHitCol; };

Referenced by BesTuningIO::GetTofRootHits().

◆ getMcHitTofCol() [2/2]

const TObjArray * TMcHitEvent::getMcHitTofCol ( ) const
inline

retrieve the whole TObjArray of McHitTof Data

Definition at line 23 of file InstallArea/include/RootEventData/RootEventData/TMcHitEvent.h.

23{ return m_tTofMcHitCol; };

◆ Print() [1/2]

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

Definition at line 47 of file TMcHitEvent.cxx.

47 {
48 TObject::Print(option);
49}

◆ Print() [2/2]

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

◆ setBeamTime() [1/2]

void TMcHitEvent::setBeamTime ( Double_t  time)
inline

Definition at line 49 of file Event/RootEventData/RootEventData-00-03-80/RootEventData/TMcHitEvent.h.

49{m_beamTime = time;}
Double_t time

Referenced by BesRootIO::SaveTofHitRoot().

◆ setBeamTime() [2/2]

void TMcHitEvent::setBeamTime ( Double_t  time)
inline

Definition at line 49 of file InstallArea/include/RootEventData/RootEventData/TMcHitEvent.h.

49{m_beamTime = time;}

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