BOSS 7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
TMcParticle Class Reference

#include <TMcParticle.h>

+ Inheritance diagram for TMcParticle:

Public Types

enum  StatusBits {
  DECAYED =1 , DECAYFLT =1<<1 , PRIMARY =1<<2 , LEAF = 1<<3 ,
  ERROR = 1<<4
}
 

Public Member Functions

 TMcParticle ()
 
 ~TMcParticle ()
 
Int_t getParticleID () const
 
Int_t getTrackIndex () const
 
Int_t getVertexIndex0 () const
 
Int_t getVertexIndex1 () const
 
UInt_t getStatusFlags () const
 
Double_t getInitialPositionX () const
 
Double_t getInitialPositionY () const
 
Double_t getInitialPositionZ () const
 
Double_t getInitialPositionT () const
 
Double_t getFinalPositionX () const
 
Double_t getFinalPositionY () const
 
Double_t getFinalPositionZ () const
 
Double_t getFinalPositionT () const
 
Double_t getInitialMomentumX () const
 
Double_t getInitialMomentumY () const
 
Double_t getInitialMomentumZ () const
 
Double_t getInitialMomentumE () const
 
Int_t getMother () const
 
vector< Int_t > getDaughters () const
 
bool primaryParticle () const
 
bool leafParticle () const
 
bool decayFromGenerator () const
 
bool decayInFlight () const
 
void setParticleID (Int_t particleID)
 
void setTrackIndex (Int_t trackIndex)
 
void setVertexIndex0 (Int_t vertexIndex0)
 
void setVertexIndex1 (Int_t vertexIndex1)
 
void setStatusFlags (UInt_t statusFlags)
 
void setInitialPositionX (Double_t positionX)
 
void setInitialPositionY (Double_t positionY)
 
void setInitialPositionZ (Double_t positionZ)
 
void setInitialPositionT (Double_t positionT)
 
void setFinalPositionX (Double_t positionX)
 
void setFinalPositionY (Double_t positionY)
 
void setFinalPositionZ (Double_t positionZ)
 
void setFinalPositionT (Double_t positionT)
 
void setInitialMomentumX (Double_t momentumX)
 
void setInitialMomentumY (Double_t momentumY)
 
void setInitialMomentumZ (Double_t momentumZ)
 
void setInitialMomentumE (Double_t momentumE)
 
void setMother (Int_t mother)
 
void setDaughters (vector< Int_t > &daughters)
 

Detailed Description

Definition at line 9 of file TMcParticle.h.

Member Enumeration Documentation

◆ StatusBits

Enumerator
DECAYED 
DECAYFLT 

Decayed by generator.

PRIMARY 

Decayed in flight.

LEAF 

primary particle

ERROR 

this particle is a leaf in the particle tree

Definition at line 88 of file TMcParticle.h.

88 {
89 DECAYED =1 , //! Decayed by generator
90 DECAYFLT=1<<1, //! Decayed in flight
91 PRIMARY =1<<2, //! primary particle
92 LEAF = 1<<3, //! this particle is a leaf in the particle tree
93 ERROR = 1<<4 //! error
94 //MISSED= 1<<2, //! Does not hit detector
95 //NOINTER =1<<3, //! Traverses detector w/o interacting
96 //STOPPED =1<<4, //! Energy below cut; other bits may say why
97 //INTERACT=1<<5, //! Interacted, no further decision to be made
98 //INTSHDEP=1<<6, //! Interacted, further decision depends on ! selection of shower deposition
99 //PRIMARY =1<<7, //! primary particle
100 //SWERROR =1<<8, //! Error occurred in swimming the track
101 //BCKSPL=1<<9, //! The particle is backsplashed from the CAL back in the TKR region
102 //POSHIT =1<<10, //! The particle released a hit a PositionHit detector
103 //NOTTRACK=1<<11, //! Not tracked by user request
104 //Swum = 1<<12, //! this particle was produced by the swimmer
105 //LEAF = 1<<13 //! this particle is a leaf in the particle tree
106 };
@ PRIMARY
Decayed in flight.
Definition: TMcParticle.h:91
@ DECAYFLT
Decayed by generator.
Definition: TMcParticle.h:90
@ ERROR
this particle is a leaf in the particle tree
Definition: TMcParticle.h:93
@ LEAF
primary particle
Definition: TMcParticle.h:92

Constructor & Destructor Documentation

◆ TMcParticle()

TMcParticle::TMcParticle ( )

◆ ~TMcParticle()

TMcParticle::~TMcParticle ( )

Definition at line 12 of file TMcParticle.cxx.

12 {
13 Clear();
14 }

Member Function Documentation

◆ decayFromGenerator()

bool TMcParticle::decayFromGenerator ( ) const
inline

Definition at line 113 of file TMcParticle.h.

113{ return (m_statusFlags & DECAYED)==DECAYED;}

◆ decayInFlight()

bool TMcParticle::decayInFlight ( ) const
inline

Definition at line 115 of file TMcParticle.h.

115{ return (m_statusFlags & DECAYFLT)==DECAYFLT;}

◆ getDaughters()

vector< Int_t > TMcParticle::getDaughters ( ) const
inline

◆ getFinalPositionT()

Double_t TMcParticle::getFinalPositionT ( ) const
inline

Definition at line 53 of file TMcParticle.h.

53{return m_tFinalPosition;}

Referenced by McParticleCnv::TObjectToDataObject().

◆ getFinalPositionX()

Double_t TMcParticle::getFinalPositionX ( ) const
inline

Definition at line 44 of file TMcParticle.h.

44{return m_xFinalPosition;}

Referenced by McParticleCnv::TObjectToDataObject().

◆ getFinalPositionY()

Double_t TMcParticle::getFinalPositionY ( ) const
inline

Definition at line 47 of file TMcParticle.h.

47{return m_yFinalPosition;}

Referenced by McParticleCnv::TObjectToDataObject().

◆ getFinalPositionZ()

Double_t TMcParticle::getFinalPositionZ ( ) const
inline

Definition at line 50 of file TMcParticle.h.

50{return m_zFinalPosition;}

Referenced by McParticleCnv::TObjectToDataObject().

◆ getInitialMomentumE()

Double_t TMcParticle::getInitialMomentumE ( ) const
inline

Definition at line 65 of file TMcParticle.h.

65{return m_eInitialMomentum;}

Referenced by McParticleCnv::TObjectToDataObject().

◆ getInitialMomentumX()

Double_t TMcParticle::getInitialMomentumX ( ) const
inline

Definition at line 56 of file TMcParticle.h.

56{return m_xInitialMomentum;}

Referenced by McParticleCnv::TObjectToDataObject().

◆ getInitialMomentumY()

Double_t TMcParticle::getInitialMomentumY ( ) const
inline

Definition at line 59 of file TMcParticle.h.

59{return m_yInitialMomentum;}

Referenced by McParticleCnv::TObjectToDataObject().

◆ getInitialMomentumZ()

Double_t TMcParticle::getInitialMomentumZ ( ) const
inline

Definition at line 62 of file TMcParticle.h.

62{return m_zInitialMomentum;}

Referenced by McParticleCnv::TObjectToDataObject().

◆ getInitialPositionT()

Double_t TMcParticle::getInitialPositionT ( ) const
inline

Definition at line 41 of file TMcParticle.h.

41{return m_tInitialPosition;}

Referenced by McParticleCnv::TObjectToDataObject().

◆ getInitialPositionX()

Double_t TMcParticle::getInitialPositionX ( ) const
inline

Definition at line 32 of file TMcParticle.h.

32{return m_xInitialPosition;}

Referenced by McParticleCnv::TObjectToDataObject().

◆ getInitialPositionY()

Double_t TMcParticle::getInitialPositionY ( ) const
inline

Definition at line 35 of file TMcParticle.h.

35{return m_yInitialPosition;}

Referenced by McParticleCnv::TObjectToDataObject().

◆ getInitialPositionZ()

Double_t TMcParticle::getInitialPositionZ ( ) const
inline

Definition at line 38 of file TMcParticle.h.

38{return m_zInitialPosition;}

Referenced by McParticleCnv::TObjectToDataObject().

◆ getMother()

Int_t TMcParticle::getMother ( ) const
inline

Definition at line 82 of file TMcParticle.h.

82{ return m_mother; }

Referenced by McParticleCnv::TObjectToDataObject().

◆ getParticleID()

Int_t TMcParticle::getParticleID ( ) const
inline

◆ getStatusFlags()

UInt_t TMcParticle::getStatusFlags ( ) const
inline

Definition at line 29 of file TMcParticle.h.

29{return m_statusFlags; }

Referenced by McParticleCnv::TObjectToDataObject().

◆ getTrackIndex()

Int_t TMcParticle::getTrackIndex ( ) const
inline

Definition at line 20 of file TMcParticle.h.

20{return m_trackIndex; }

Referenced by McParticleCnv::TObjectToDataObject().

◆ getVertexIndex0()

Int_t TMcParticle::getVertexIndex0 ( ) const
inline

Definition at line 23 of file TMcParticle.h.

23{return m_vertexIndex0; }

Referenced by McParticleCnv::TObjectToDataObject().

◆ getVertexIndex1()

Int_t TMcParticle::getVertexIndex1 ( ) const
inline

Definition at line 26 of file TMcParticle.h.

26{return m_vertexIndex1; }

Referenced by McParticleCnv::TObjectToDataObject().

◆ leafParticle()

bool TMcParticle::leafParticle ( ) const
inline

Definition at line 111 of file TMcParticle.h.

111{ return (m_statusFlags & LEAF)==LEAF;}

◆ primaryParticle()

bool TMcParticle::primaryParticle ( ) const
inline

Definition at line 109 of file TMcParticle.h.

109{ return (m_statusFlags & PRIMARY)==PRIMARY;}

◆ setDaughters()

void TMcParticle::setDaughters ( vector< Int_t > &  daughters)
inline

Definition at line 150 of file TMcParticle.h.

150{ m_daughters = daughters; }

Referenced by McParticleCnv::DataObjectToTObject().

◆ setFinalPositionT()

void TMcParticle::setFinalPositionT ( Double_t  positionT)
inline

Definition at line 136 of file TMcParticle.h.

136{m_tFinalPosition = positionT;}

Referenced by McParticleCnv::DataObjectToTObject().

◆ setFinalPositionX()

void TMcParticle::setFinalPositionX ( Double_t  positionX)
inline

Definition at line 133 of file TMcParticle.h.

133{m_xFinalPosition = positionX;}

Referenced by McParticleCnv::DataObjectToTObject().

◆ setFinalPositionY()

void TMcParticle::setFinalPositionY ( Double_t  positionY)
inline

Definition at line 134 of file TMcParticle.h.

134{m_yFinalPosition = positionY;}

Referenced by McParticleCnv::DataObjectToTObject().

◆ setFinalPositionZ()

void TMcParticle::setFinalPositionZ ( Double_t  positionZ)
inline

Definition at line 135 of file TMcParticle.h.

135{m_zFinalPosition = positionZ;}

Referenced by McParticleCnv::DataObjectToTObject().

◆ setInitialMomentumE()

void TMcParticle::setInitialMomentumE ( Double_t  momentumE)
inline

Definition at line 141 of file TMcParticle.h.

141{m_eInitialMomentum = momentumE;}

Referenced by McParticleCnv::DataObjectToTObject().

◆ setInitialMomentumX()

void TMcParticle::setInitialMomentumX ( Double_t  momentumX)
inline

Definition at line 138 of file TMcParticle.h.

138{m_xInitialMomentum = momentumX;}

Referenced by McParticleCnv::DataObjectToTObject().

◆ setInitialMomentumY()

void TMcParticle::setInitialMomentumY ( Double_t  momentumY)
inline

Definition at line 139 of file TMcParticle.h.

139{m_yInitialMomentum = momentumY;}

Referenced by McParticleCnv::DataObjectToTObject().

◆ setInitialMomentumZ()

void TMcParticle::setInitialMomentumZ ( Double_t  momentumZ)
inline

Definition at line 140 of file TMcParticle.h.

140{m_zInitialMomentum = momentumZ;}

Referenced by McParticleCnv::DataObjectToTObject().

◆ setInitialPositionT()

void TMcParticle::setInitialPositionT ( Double_t  positionT)
inline

Definition at line 131 of file TMcParticle.h.

131{m_tInitialPosition = positionT;}

Referenced by McParticleCnv::DataObjectToTObject().

◆ setInitialPositionX()

void TMcParticle::setInitialPositionX ( Double_t  positionX)
inline

Definition at line 128 of file TMcParticle.h.

128{m_xInitialPosition = positionX;}

Referenced by McParticleCnv::DataObjectToTObject().

◆ setInitialPositionY()

void TMcParticle::setInitialPositionY ( Double_t  positionY)
inline

Definition at line 129 of file TMcParticle.h.

129{m_yInitialPosition = positionY;}

Referenced by McParticleCnv::DataObjectToTObject().

◆ setInitialPositionZ()

void TMcParticle::setInitialPositionZ ( Double_t  positionZ)
inline

Definition at line 130 of file TMcParticle.h.

130{m_zInitialPosition = positionZ;}

Referenced by McParticleCnv::DataObjectToTObject().

◆ setMother()

void TMcParticle::setMother ( Int_t  mother)
inline

Definition at line 149 of file TMcParticle.h.

149{m_mother = mother; }

Referenced by McParticleCnv::DataObjectToTObject().

◆ setParticleID()

void TMcParticle::setParticleID ( Int_t  particleID)
inline

Definition at line 121 of file TMcParticle.h.

121{m_particleID = particleID;}

Referenced by McParticleCnv::DataObjectToTObject().

◆ setStatusFlags()

void TMcParticle::setStatusFlags ( UInt_t  statusFlags)
inline

Definition at line 126 of file TMcParticle.h.

126{m_statusFlags = statusFlags; }

Referenced by McParticleCnv::DataObjectToTObject().

◆ setTrackIndex()

void TMcParticle::setTrackIndex ( Int_t  trackIndex)
inline

Definition at line 122 of file TMcParticle.h.

122{m_trackIndex = trackIndex;}

Referenced by McParticleCnv::DataObjectToTObject().

◆ setVertexIndex0()

void TMcParticle::setVertexIndex0 ( Int_t  vertexIndex0)
inline

Definition at line 124 of file TMcParticle.h.

124{m_vertexIndex0 = vertexIndex0; }

Referenced by McParticleCnv::DataObjectToTObject().

◆ setVertexIndex1()

void TMcParticle::setVertexIndex1 ( Int_t  vertexIndex1)
inline

Definition at line 125 of file TMcParticle.h.

125{m_vertexIndex1 = vertexIndex1; }

Referenced by McParticleCnv::DataObjectToTObject().


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