BOSS 8.0.0
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
 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/3]

TMcHitEvent::TMcHitEvent ( )

Definition at line 7 of file TMcHitEvent.cxx.

7 {
8 m_beamTime = -1.;
9 m_tTofMcHitCol = new TObjArray();
10 m_tMdcMcHitCol = new TObjArray();
11 m_tEmcMcDigiCol = new TObjArray();
12 Clear();
13}
void Clear(Option_t *option="")

◆ ~TMcHitEvent() [1/3]

TMcHitEvent::~TMcHitEvent ( )
virtual

Definition at line 16 of file TMcHitEvent.cxx.

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

◆ TMcHitEvent() [2/3]

TMcHitEvent::TMcHitEvent ( )

◆ ~TMcHitEvent() [2/3]

virtual TMcHitEvent::~TMcHitEvent ( )
virtual

◆ TMcHitEvent() [3/3]

TMcHitEvent::TMcHitEvent ( )

◆ ~TMcHitEvent() [3/3]

virtual TMcHitEvent::~TMcHitEvent ( )
virtual

Member Function Documentation

◆ addMcDigiEmc() [1/3]

void TMcHitEvent::addMcDigiEmc ( TMcDigiEmc * digi)

Add a McHitMdc into the Mdc Data collection.

Emc.

Definition at line 48 of file TMcHitEvent.cxx.

48{ m_tEmcMcDigiCol->Add( mcDigi ); }

◆ addMcDigiEmc() [2/3]

void TMcHitEvent::addMcDigiEmc ( TMcDigiEmc * digi)

Add a McHitMdc into the Mdc Data collection.

◆ addMcDigiEmc() [3/3]

void TMcHitEvent::addMcDigiEmc ( TMcDigiEmc * digi)

Add a McHitMdc into the Mdc Data collection.

◆ addMcHitMdc() [1/3]

void TMcHitEvent::addMcHitMdc ( TMcHitMdc * hit)

Add a McHitMdc into the Mdc Data collection.

Mdc.

Definition at line 64 of file TMcHitEvent.cxx.

64{ m_tMdcMcHitCol->Add( mcHit ); }

◆ addMcHitMdc() [2/3]

void TMcHitEvent::addMcHitMdc ( TMcHitMdc * hit)

Add a McHitMdc into the Mdc Data collection.

◆ addMcHitMdc() [3/3]

void TMcHitEvent::addMcHitMdc ( TMcHitMdc * hit)

Add a McHitMdc into the Mdc Data collection.

◆ addMcHitTof() [1/3]

void TMcHitEvent::addMcHitTof ( TMcHitTof * hit)

Add a McHitTof into the TOF Data collection.

Tof.

Definition at line 56 of file TMcHitEvent.cxx.

56{ m_tTofMcHitCol->Add( mcHit ); }

◆ addMcHitTof() [2/3]

void TMcHitEvent::addMcHitTof ( TMcHitTof * hit)

Add a McHitTof into the TOF Data collection.

◆ addMcHitTof() [3/3]

void TMcHitEvent::addMcHitTof ( TMcHitTof * hit)

Add a McHitTof into the TOF Data collection.

◆ Clear() [1/3]

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

Definition at line 31 of file TMcHitEvent.cxx.

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

Referenced by TMcHitEvent().

◆ Clear() [2/3]

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

◆ Clear() [3/3]

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

◆ getBeamTime() [1/3]

Double_t TMcHitEvent::getBeamTime ( ) const
inline

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

49{ return m_beamTime; }

◆ getBeamTime() [2/3]

Double_t TMcHitEvent::getBeamTime ( ) const
inline

Definition at line 49 of file InstallArea/x86_64-el9-gcc13-dbg/include/RootEventData/TMcHitEvent.h.

49{ return m_beamTime; }

◆ getBeamTime() [3/3]

Double_t TMcHitEvent::getBeamTime ( ) const
inline

Definition at line 49 of file InstallArea/x86_64-el9-gcc13-opt/include/RootEventData/TMcHitEvent.h.

49{ return m_beamTime; }

◆ getMcDigiEmc() [1/3]

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

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

Definition at line 50 of file TMcHitEvent.cxx.

50 {
51 if ( Int_t( i ) >= m_tEmcMcDigiCol->GetEntries() ) return 0;
52 else return (TMcDigiEmc*)m_tEmcMcDigiCol->At( i );
53}

◆ getMcDigiEmc() [2/3]

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

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

◆ getMcDigiEmc() [3/3]

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

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

◆ getMcDigiEmcCol() [1/3]

const TObjArray * TMcHitEvent::getMcDigiEmcCol ( ) const
inline

retrieve the whole TObjArray of McHitMdc Data

Definition at line 40 of file Event/RootEventData/include/RootEventData/TMcHitEvent.h.

40{ return m_tEmcMcDigiCol; };

◆ getMcDigiEmcCol() [2/3]

const TObjArray * TMcHitEvent::getMcDigiEmcCol ( ) const
inline

retrieve the whole TObjArray of McHitMdc Data

Definition at line 40 of file InstallArea/x86_64-el9-gcc13-dbg/include/RootEventData/TMcHitEvent.h.

40{ return m_tEmcMcDigiCol; };

◆ getMcDigiEmcCol() [3/3]

const TObjArray * TMcHitEvent::getMcDigiEmcCol ( ) const
inline

retrieve the whole TObjArray of McHitMdc Data

Definition at line 40 of file InstallArea/x86_64-el9-gcc13-opt/include/RootEventData/TMcHitEvent.h.

40{ return m_tEmcMcDigiCol; };

◆ getMcHitMdc() [1/3]

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

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

Definition at line 66 of file TMcHitEvent.cxx.

66 {
67 if ( Int_t( i ) >= m_tMdcMcHitCol->GetEntries() ) return 0;
68 else return (TMcHitMdc*)m_tMdcMcHitCol->At( i );
69}

◆ getMcHitMdc() [2/3]

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

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

◆ getMcHitMdc() [3/3]

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

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

◆ getMcHitMdcCol() [1/3]

const TObjArray * TMcHitEvent::getMcHitMdcCol ( ) const
inline

retrieve the whole TObjArray of McHitMdc Data

Definition at line 31 of file Event/RootEventData/include/RootEventData/TMcHitEvent.h.

31{ return m_tMdcMcHitCol; };

◆ getMcHitMdcCol() [2/3]

const TObjArray * TMcHitEvent::getMcHitMdcCol ( ) const
inline

retrieve the whole TObjArray of McHitMdc Data

Definition at line 31 of file InstallArea/x86_64-el9-gcc13-dbg/include/RootEventData/TMcHitEvent.h.

31{ return m_tMdcMcHitCol; };

◆ getMcHitMdcCol() [3/3]

const TObjArray * TMcHitEvent::getMcHitMdcCol ( ) const
inline

retrieve the whole TObjArray of McHitMdc Data

Definition at line 31 of file InstallArea/x86_64-el9-gcc13-opt/include/RootEventData/TMcHitEvent.h.

31{ return m_tMdcMcHitCol; };

◆ getMcHitTof() [1/3]

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

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

Definition at line 58 of file TMcHitEvent.cxx.

58 {
59 if ( Int_t( i ) >= m_tTofMcHitCol->GetEntries() ) return 0;
60 else return (TMcHitTof*)m_tTofMcHitCol->At( i );
61}

◆ getMcHitTof() [2/3]

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

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

◆ getMcHitTof() [3/3]

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

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

◆ getMcHitTofCol() [1/3]

const TObjArray * TMcHitEvent::getMcHitTofCol ( ) const
inline

retrieve the whole TObjArray of McHitTof Data

Definition at line 22 of file Event/RootEventData/include/RootEventData/TMcHitEvent.h.

22{ return m_tTofMcHitCol; };

◆ getMcHitTofCol() [2/3]

const TObjArray * TMcHitEvent::getMcHitTofCol ( ) const
inline

retrieve the whole TObjArray of McHitTof Data

Definition at line 22 of file InstallArea/x86_64-el9-gcc13-dbg/include/RootEventData/TMcHitEvent.h.

22{ return m_tTofMcHitCol; };

◆ getMcHitTofCol() [3/3]

const TObjArray * TMcHitEvent::getMcHitTofCol ( ) const
inline

retrieve the whole TObjArray of McHitTof Data

Definition at line 22 of file InstallArea/x86_64-el9-gcc13-opt/include/RootEventData/TMcHitEvent.h.

22{ return m_tTofMcHitCol; };

◆ Print() [1/3]

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

Definition at line 45 of file TMcHitEvent.cxx.

45{ TObject::Print( option ); }

◆ Print() [2/3]

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

◆ Print() [3/3]

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

◆ setBeamTime() [1/3]

void TMcHitEvent::setBeamTime ( Double_t time)
inline

Definition at line 48 of file Event/RootEventData/include/RootEventData/TMcHitEvent.h.

48{ m_beamTime = time; }
Double_t time

◆ setBeamTime() [2/3]

void TMcHitEvent::setBeamTime ( Double_t time)
inline

Definition at line 48 of file InstallArea/x86_64-el9-gcc13-dbg/include/RootEventData/TMcHitEvent.h.

48{ m_beamTime = time; }

◆ setBeamTime() [3/3]

void TMcHitEvent::setBeamTime ( Double_t time)
inline

Definition at line 48 of file InstallArea/x86_64-el9-gcc13-opt/include/RootEventData/TMcHitEvent.h.

48{ m_beamTime = time; }

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