BOSS 7.0.7
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 * 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 16 of file TMcEvent.h.

Constructor & Destructor Documentation

◆ TMcEvent()

TMcEvent::TMcEvent ( )

Definition at line 16 of file TMcEvent.cxx.

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

◆ ~TMcEvent()

TMcEvent::~TMcEvent ( )
virtual

Definition at line 54 of file TMcEvent.cxx.

54 {
55 if(m_mdcMcHitCol == s_staticMdcMcHitCol) s_staticMdcMcHitCol = 0;
56 m_mdcMcHitCol->Delete();
57 delete m_mdcMcHitCol;
58 m_mdcMcHitCol = 0;
59
60 if(m_emcMcHitCol == s_staticEmcMcHitCol) s_staticEmcMcHitCol = 0;
61 m_emcMcHitCol->Delete();
62 delete m_emcMcHitCol;
63 m_emcMcHitCol = 0;
64
65 if(m_tofMcHitCol == s_staticTofMcHitCol ) s_staticTofMcHitCol = 0;
66 m_tofMcHitCol->Delete();
67 delete m_tofMcHitCol;
68 m_tofMcHitCol = 0;
69
70 if(m_mucMcHitCol == s_staticMucMcHitCol ) s_staticMucMcHitCol = 0;
71 m_mucMcHitCol->Delete();
72 delete m_mucMcHitCol;
73 m_mucMcHitCol = 0;
74
75 if(m_mcParticleCol == s_staticMcParticleCol ) s_staticMcParticleCol = 0;
76 m_mcParticleCol->Delete();
77 delete m_mcParticleCol;
78 m_mcParticleCol = 0;
79/*
80 if(m_decayMode == s_staticDecayMode ) s_staticDecayMode = 0;
81 m_decayMode->Delete();
82 delete m_decayMode;
83 m_decayMode = 0;
84*/
85}

Member Function Documentation

◆ addEmcMc()

void TMcEvent::addEmcMc ( TEmcMc mcHit)

Emc.

Definition at line 113 of file TMcEvent.cxx.

113 {
114 m_emcMcHitCol->Add(mcHit);
115}

Referenced by EmcMcHitCnv::DataObjectToTObject().

◆ addMcParticle()

void TMcEvent::addMcParticle ( TMcParticle mcHit)

McParticle.

Definition at line 148 of file TMcEvent.cxx.

148 {
149 m_mcParticleCol->Add(mcHit);
150}

Referenced by McParticleCnv::DataObjectToTObject().

◆ addMdcMc()

void TMcEvent::addMdcMc ( TMdcMc mcHit)

Mdc.

Definition at line 103 of file TMcEvent.cxx.

103 {
104 m_mdcMcHitCol->Add(mcHit);
105}

Referenced by MdcMcHitCnv::DataObjectToTObject().

◆ addMucMc()

void TMcEvent::addMucMc ( TMucMc mcHit)

Muc.

Definition at line 136 of file TMcEvent.cxx.

136 {
137 m_mucMcHitCol->Add(mcHit);
138}

Referenced by MucMcHitCnv::DataObjectToTObject().

◆ addTofMc()

void TMcEvent::addTofMc ( TTofMc mcHit)

Tof.

Definition at line 124 of file TMcEvent.cxx.

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

Referenced by TofMcHitCnv::DataObjectToTObject().

◆ Clear()

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

Definition at line 93 of file TMcEvent.cxx.

93 {
94
95}

Referenced by RootCnvSvc::commitOutput(), and TMcEvent().

◆ clearEmcMcHitCol()

void TMcEvent::clearEmcMcHitCol ( )
inline

Definition at line 41 of file TMcEvent.h.

41{ m_emcMcHitCol->Clear(); }

Referenced by EmcMcHitCnv::DataObjectToTObject().

◆ clearMcParticleCol()

void TMcEvent::clearMcParticleCol ( )
inline

Definition at line 57 of file TMcEvent.h.

57{ m_mcParticleCol->Clear();}

Referenced by McParticleCnv::DataObjectToTObject().

◆ clearMdcMcHitCol()

void TMcEvent::clearMdcMcHitCol ( )
inline

Definition at line 35 of file TMcEvent.h.

35{ m_mdcMcHitCol->Clear(); }

Referenced by MdcMcHitCnv::DataObjectToTObject().

◆ clearMucMcHitCol()

void TMcEvent::clearMucMcHitCol ( )
inline

Definition at line 52 of file TMcEvent.h.

52{ m_mucMcHitCol->Clear();}

Referenced by MucMcHitCnv::DataObjectToTObject().

◆ clearTofMcHitCol()

void TMcEvent::clearTofMcHitCol ( )
inline

Definition at line 47 of file TMcEvent.h.

47{ m_tofMcHitCol->Clear();}

Referenced by TofMcHitCnv::DataObjectToTObject().

◆ getEmcMc()

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

Definition at line 117 of file TMcEvent.cxx.

117 {
118 if(Int_t(i) >= m_emcMcHitCol->GetEntries())
119 return 0;
120 return (TEmcMc*)m_emcMcHitCol->At(i);
121}
Definition: TEmcMc.h:10

◆ getEmcMcHitCol()

const TObjArray * TMcEvent::getEmcMcHitCol ( ) const
inline

Definition at line 38 of file TMcEvent.h.

38{ return m_emcMcHitCol; }

Referenced by EmcMcHitCnv::DataObjectToTObject().

◆ getMcParticle()

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

Definition at line 153 of file TMcEvent.cxx.

153 {
154 if(Int_t(i) >=m_mcParticleCol->GetEntries())
155 return 0;
156 return (TMcParticle*) m_mcParticleCol->At(i);
157}

◆ getMcParticleCol()

const TObjArray * TMcEvent::getMcParticleCol ( ) const
inline

Definition at line 54 of file TMcEvent.h.

54{ return m_mcParticleCol; }

Referenced by McParticleCnv::DataObjectToTObject().

◆ getMdcMc()

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

Definition at line 107 of file TMcEvent.cxx.

107 {
108 if (Int_t(i) >= m_mdcMcHitCol->GetEntries())
109 return 0;
110 return (TMdcMc*)m_mdcMcHitCol->At(i);
111}
Definition: TMdcMc.h:8

◆ getMdcMcHitCol()

const TObjArray * TMcEvent::getMdcMcHitCol ( ) const
inline

Definition at line 32 of file TMcEvent.h.

32{ return m_mdcMcHitCol; }

Referenced by MdcMcHitCnv::DataObjectToTObject().

◆ getMucMc()

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

Definition at line 141 of file TMcEvent.cxx.

141 {
142 if(Int_t(i) >=m_mucMcHitCol->GetEntries())
143 return 0;
144 return (TMucMc*) m_mucMcHitCol->At(i);
145}
Definition: TMucMc.h:8

◆ getMucMcHitCol()

const TObjArray * TMcEvent::getMucMcHitCol ( ) const
inline

Definition at line 49 of file TMcEvent.h.

49{ return m_mucMcHitCol; }

Referenced by MucMcHitCnv::DataObjectToTObject().

◆ getTofMc()

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

Definition at line 129 of file TMcEvent.cxx.

129 {
130 if(Int_t(i) >=m_tofMcHitCol->GetEntries())
131 return 0;
132 return (TTofMc*) m_tofMcHitCol->At(i);
133}
Definition: TTofMc.h:8

◆ getTofMcHitCol()

const TObjArray * TMcEvent::getTofMcHitCol ( ) const
inline

Definition at line 44 of file TMcEvent.h.

44{ return m_tofMcHitCol; }

Referenced by TofMcHitCnv::DataObjectToTObject().

◆ initialize()

void TMcEvent::initialize ( )

Definition at line 88 of file TMcEvent.cxx.

88 {
89
90}

Referenced by McCnv::DataObjectToTObject().

◆ Print()

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

Definition at line 98 of file TMcEvent.cxx.

98 {
99 TObject::Print(option);
100}

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