CGEM BOSS 6.6.5.h
BESIII Offline Software System
Loading...
Searching...
No Matches
TMcEvent Class Reference

#include <TMcEvent.h>

+ Inheritance diagram for TMcEvent:

Public Member Functions

 TMcEvent ()
 
virtual ~TMcEvent ()
 
void initialize ()
 
void Clear (Option_t *option="")
 
void Print (Option_t *option="") const
 
const TObjArray * getMdcMcHitCol () const
 
void addMdcMc (TMdcMc *mcHit)
 Mdc.
 
const TMdcMcgetMdcMc (Int_t i) const
 
void clearMdcMcHitCol ()
 
const TObjArray * getCgemMcHitCol () const
 
void addCgemMc (TCgemMc *mcHit)
 Cgem.
 
const TCgemMcgetCgemMc (Int_t i) const
 
void clearCgemMcHitCol ()
 
const TObjArray * getEmcMcHitCol () const
 
void addEmcMc (TEmcMc *mcHit)
 Emc.
 
const TEmcMcgetEmcMc (Int_t i) const
 
void clearEmcMcHitCol ()
 
const TObjArray * getTofMcHitCol () const
 
void addTofMc (TTofMc *mcHit)
 Tof.
 
const TTofMcgetTofMc (Int_t i) const
 
void clearTofMcHitCol ()
 
const TObjArray * getMucMcHitCol () const
 
void addMucMc (TMucMc *mcHit)
 Muc.
 
const TMucMcgetMucMc (Int_t i) const
 
void clearMucMcHitCol ()
 
const TObjArray * getMcParticleCol () const
 
void addMcParticle (TMcParticle *mcHit)
 McParticle.
 
const TMcParticlegetMcParticle (Int_t i) const
 
void clearMcParticleCol ()
 

Detailed Description

Definition at line 17 of file TMcEvent.h.

Constructor & Destructor Documentation

◆ TMcEvent()

TMcEvent::TMcEvent ( )

Definition at line 17 of file TMcEvent.cxx.

18{
19
20 if (!s_staticMdcMcHitCol) {
21 s_staticMdcMcHitCol = new TObjArray();
22 }
23 m_mdcMcHitCol = s_staticMdcMcHitCol;
24
25 if (!s_staticCgemMcHitCol) {
26 s_staticCgemMcHitCol = new TObjArray();
27 }
28 m_cgemMcHitCol = s_staticCgemMcHitCol;
29
30 if (!s_staticEmcMcHitCol ){
31 s_staticEmcMcHitCol = new TObjArray();
32 }
33 m_emcMcHitCol = s_staticEmcMcHitCol;
34
35 if (! s_staticTofMcHitCol ){
36 s_staticTofMcHitCol = new TObjArray();
37 }
38 m_tofMcHitCol = s_staticTofMcHitCol;
39
40 if (! s_staticMucMcHitCol ){
41 s_staticMucMcHitCol = new TObjArray();
42 }
43 m_mucMcHitCol = s_staticMucMcHitCol;
44
45 if (! s_staticMcParticleCol ){
46 s_staticMcParticleCol = new TObjArray();
47 }
48 m_mcParticleCol = s_staticMcParticleCol;
49 /*
50 if (! s_staticDecayMode ){
51 s_staticDecayMode = new TObject();
52 }
53 m_decayMode = s_staticDecayMode;
54*/
55 Clear();
56
57}
void Clear(Option_t *option="")
Definition TMcEvent.cxx:104

◆ ~TMcEvent()

TMcEvent::~TMcEvent ( )
virtual

Definition at line 60 of file TMcEvent.cxx.

60 {
61 if(m_mdcMcHitCol == s_staticMdcMcHitCol) s_staticMdcMcHitCol = 0;
62 m_mdcMcHitCol->Delete();
63 delete m_mdcMcHitCol;
64 m_mdcMcHitCol = 0;
65
66 if(m_cgemMcHitCol == s_staticCgemMcHitCol) s_staticCgemMcHitCol = 0;
67 m_cgemMcHitCol->Delete();
68 delete m_cgemMcHitCol;
69 m_cgemMcHitCol = 0;
70
71 if(m_emcMcHitCol == s_staticEmcMcHitCol) s_staticEmcMcHitCol = 0;
72 m_emcMcHitCol->Delete();
73 delete m_emcMcHitCol;
74 m_emcMcHitCol = 0;
75
76 if(m_tofMcHitCol == s_staticTofMcHitCol ) s_staticTofMcHitCol = 0;
77 m_tofMcHitCol->Delete();
78 delete m_tofMcHitCol;
79 m_tofMcHitCol = 0;
80
81 if(m_mucMcHitCol == s_staticMucMcHitCol ) s_staticMucMcHitCol = 0;
82 m_mucMcHitCol->Delete();
83 delete m_mucMcHitCol;
84 m_mucMcHitCol = 0;
85
86 if(m_mcParticleCol == s_staticMcParticleCol ) s_staticMcParticleCol = 0;
87 m_mcParticleCol->Delete();
88 delete m_mcParticleCol;
89 m_mcParticleCol = 0;
90/*
91 if(m_decayMode == s_staticDecayMode ) s_staticDecayMode = 0;
92 m_decayMode->Delete();
93 delete m_decayMode;
94 m_decayMode = 0;
95*/
96}

Member Function Documentation

◆ addCgemMc()

void TMcEvent::addCgemMc ( TCgemMc * mcHit)

Cgem.

Definition at line 124 of file TMcEvent.cxx.

124 {
125 m_cgemMcHitCol->Add(mcHit);
126}

Referenced by CgemMcHitCnv::DataObjectToTObject().

◆ addEmcMc()

void TMcEvent::addEmcMc ( TEmcMc * mcHit)

Emc.

Definition at line 134 of file TMcEvent.cxx.

134 {
135 m_emcMcHitCol->Add(mcHit);
136}

Referenced by EmcMcHitCnv::DataObjectToTObject().

◆ addMcParticle()

void TMcEvent::addMcParticle ( TMcParticle * mcHit)

McParticle.

Definition at line 169 of file TMcEvent.cxx.

169 {
170 m_mcParticleCol->Add(mcHit);
171}

Referenced by McParticleCnv::DataObjectToTObject().

◆ addMdcMc()

void TMcEvent::addMdcMc ( TMdcMc * mcHit)

Mdc.

Definition at line 114 of file TMcEvent.cxx.

114 {
115 m_mdcMcHitCol->Add(mcHit);
116}

Referenced by MdcMcHitCnv::DataObjectToTObject().

◆ addMucMc()

void TMcEvent::addMucMc ( TMucMc * mcHit)

Muc.

Definition at line 157 of file TMcEvent.cxx.

157 {
158 m_mucMcHitCol->Add(mcHit);
159}

Referenced by MucMcHitCnv::DataObjectToTObject().

◆ addTofMc()

void TMcEvent::addTofMc ( TTofMc * mcHit)

Tof.

Definition at line 145 of file TMcEvent.cxx.

145 {
146 m_tofMcHitCol->Add(mcHit);
147}

Referenced by TofMcHitCnv::DataObjectToTObject().

◆ Clear()

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

Definition at line 104 of file TMcEvent.cxx.

104 {
105
106}

Referenced by TMcEvent().

◆ clearCgemMcHitCol()

void TMcEvent::clearCgemMcHitCol ( )
inline

Definition at line 41 of file TMcEvent.h.

41{ m_cgemMcHitCol->Clear(); }

Referenced by CgemMcHitCnv::DataObjectToTObject().

◆ clearEmcMcHitCol()

void TMcEvent::clearEmcMcHitCol ( )
inline

Definition at line 47 of file TMcEvent.h.

47{ m_emcMcHitCol->Clear(); }

Referenced by EmcMcHitCnv::DataObjectToTObject().

◆ clearMcParticleCol()

void TMcEvent::clearMcParticleCol ( )
inline

Definition at line 63 of file TMcEvent.h.

63{ m_mcParticleCol->Clear();}

Referenced by McParticleCnv::DataObjectToTObject().

◆ clearMdcMcHitCol()

void TMcEvent::clearMdcMcHitCol ( )
inline

Definition at line 36 of file TMcEvent.h.

36{ m_mdcMcHitCol->Clear(); }

Referenced by MdcMcHitCnv::DataObjectToTObject().

◆ clearMucMcHitCol()

void TMcEvent::clearMucMcHitCol ( )
inline

Definition at line 58 of file TMcEvent.h.

58{ m_mucMcHitCol->Clear();}

Referenced by MucMcHitCnv::DataObjectToTObject().

◆ clearTofMcHitCol()

void TMcEvent::clearTofMcHitCol ( )
inline

Definition at line 53 of file TMcEvent.h.

53{ m_tofMcHitCol->Clear();}

Referenced by TofMcHitCnv::DataObjectToTObject().

◆ getCgemMc()

const TCgemMc * TMcEvent::getCgemMc ( Int_t i) const

Definition at line 128 of file TMcEvent.cxx.

128 {
129 if (Int_t(i) >= m_cgemMcHitCol->GetEntries())
130 return 0;
131 return (TCgemMc*)m_cgemMcHitCol->At(i);
132}

◆ getCgemMcHitCol()

const TObjArray * TMcEvent::getCgemMcHitCol ( ) const
inline

Definition at line 38 of file TMcEvent.h.

38{ return m_cgemMcHitCol; }

Referenced by CgemMcHitCnv::DataObjectToTObject().

◆ getEmcMc()

const TEmcMc * TMcEvent::getEmcMc ( Int_t i) const

Definition at line 138 of file TMcEvent.cxx.

138 {
139 if(Int_t(i) >= m_emcMcHitCol->GetEntries())
140 return 0;
141 return (TEmcMc*)m_emcMcHitCol->At(i);
142}

◆ getEmcMcHitCol()

const TObjArray * TMcEvent::getEmcMcHitCol ( ) const
inline

Definition at line 44 of file TMcEvent.h.

44{ return m_emcMcHitCol; }

Referenced by EmcMcHitCnv::DataObjectToTObject().

◆ getMcParticle()

const TMcParticle * TMcEvent::getMcParticle ( Int_t i) const

Definition at line 174 of file TMcEvent.cxx.

174 {
175 if(Int_t(i) >=m_mcParticleCol->GetEntries())
176 return 0;
177 return (TMcParticle*) m_mcParticleCol->At(i);
178}

Referenced by BesEvent::SetMcEvent().

◆ getMcParticleCol()

const TObjArray * TMcEvent::getMcParticleCol ( ) const
inline

Definition at line 60 of file TMcEvent.h.

60{ return m_mcParticleCol; }

Referenced by McParticleCnv::DataObjectToTObject(), and BesEvent::SetMcEvent().

◆ getMdcMc()

const TMdcMc * TMcEvent::getMdcMc ( Int_t i) const

Definition at line 118 of file TMcEvent.cxx.

118 {
119 if (Int_t(i) >= m_mdcMcHitCol->GetEntries())
120 return 0;
121 return (TMdcMc*)m_mdcMcHitCol->At(i);
122}
Definition TMdcMc.h:9

◆ getMdcMcHitCol()

const TObjArray * TMcEvent::getMdcMcHitCol ( ) const
inline

Definition at line 33 of file TMcEvent.h.

33{ return m_mdcMcHitCol; }

Referenced by MdcMcHitCnv::DataObjectToTObject().

◆ getMucMc()

const TMucMc * TMcEvent::getMucMc ( Int_t i) const

Definition at line 162 of file TMcEvent.cxx.

162 {
163 if(Int_t(i) >=m_mucMcHitCol->GetEntries())
164 return 0;
165 return (TMucMc*) m_mucMcHitCol->At(i);
166}
Definition TMucMc.h:8

◆ getMucMcHitCol()

const TObjArray * TMcEvent::getMucMcHitCol ( ) const
inline

Definition at line 55 of file TMcEvent.h.

55{ return m_mucMcHitCol; }

Referenced by MucMcHitCnv::DataObjectToTObject().

◆ getTofMc()

const TTofMc * TMcEvent::getTofMc ( Int_t i) const

Definition at line 150 of file TMcEvent.cxx.

150 {
151 if(Int_t(i) >=m_tofMcHitCol->GetEntries())
152 return 0;
153 return (TTofMc*) m_tofMcHitCol->At(i);
154}
Definition TTofMc.h:8

◆ getTofMcHitCol()

const TObjArray * TMcEvent::getTofMcHitCol ( ) const
inline

Definition at line 50 of file TMcEvent.h.

50{ return m_tofMcHitCol; }

Referenced by TofMcHitCnv::DataObjectToTObject().

◆ initialize()

void TMcEvent::initialize ( )

Definition at line 99 of file TMcEvent.cxx.

99 {
100
101}

Referenced by McCnv::DataObjectToTObject().

◆ Print()

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

Definition at line 109 of file TMcEvent.cxx.

109 {
110 TObject::Print(option);
111}

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