BOSS 7.0.8
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
 

Detailed Description

Definition at line 12 of file TMcHitEvent.h.

Constructor & Destructor Documentation

◆ TMcHitEvent()

TMcHitEvent::TMcHitEvent ( )

◆ ~TMcHitEvent()

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}

Member Function Documentation

◆ addMcDigiEmc()

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().

◆ addMcHitMdc()

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().

◆ addMcHitTof()

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().

◆ Clear()

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().

◆ getBeamTime()

Double_t TMcHitEvent::getBeamTime ( ) const
inline

Definition at line 50 of file TMcHitEvent.h.

50{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 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().

◆ getMcDigiEmcCol()

const TObjArray * TMcHitEvent::getMcDigiEmcCol ( ) const
inline

retrieve the whole TObjArray of McHitMdc Data

Definition at line 41 of file TMcHitEvent.h.

41{ return m_tEmcMcDigiCol; };

Referenced by BesTuningIO::GetEmcRootDigi().

◆ getMcHitMdc()

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().

◆ getMcHitMdcCol()

const TObjArray * TMcHitEvent::getMcHitMdcCol ( ) const
inline

retrieve the whole TObjArray of McHitMdc Data

Definition at line 32 of file TMcHitEvent.h.

32{ 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 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().

◆ getMcHitTofCol()

const TObjArray * TMcHitEvent::getMcHitTofCol ( ) const
inline

retrieve the whole TObjArray of McHitTof Data

Definition at line 23 of file TMcHitEvent.h.

23{ return m_tTofMcHitCol; };

Referenced by BesTuningIO::GetTofRootHits().

◆ Print()

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

Definition at line 47 of file TMcHitEvent.cxx.

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

◆ setBeamTime()

void TMcHitEvent::setBeamTime ( Double_t  time)
inline

Definition at line 49 of file TMcHitEvent.h.

49{m_beamTime = time;}
Double_t time

Referenced by BesRootIO::SaveTofHitRoot().


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