BOSS 7.0.7
BESIII Offline Software System
|
#include <McParticle.h>
Public Types | |
enum | StatusBits { DECAYED =1 , DECAYFLT =1<<1 , PRIMARY =1<<2 , LEAF = 1<<3 , ERROR = 1<<4 } |
status bits modeled More... | |
typedef int | StdHepId |
Public Member Functions | |
virtual const CLID & | clID () const |
McParticle () | |
Constructors. | |
virtual | ~McParticle () |
Destructor. | |
void | init (McParticle *mother, StdHepId id, unsigned int statusBits, const HepLorentzVector &initialMomentum, const HepLorentzVector &finalMomentum, const HepLorentzVector &initialPosition, const HepLorentzVector &finalPosition, const std::string process="") |
void | initialize (StdHepId id, unsigned int statusBits, const HepLorentzVector &initialMomentum, const HepLorentzVector &initialPosition, const std::string process="") |
Set the initial attributes of the McParticle. | |
void | initialize (McParticle *mother, StdHepId id, unsigned int statusBits, const HepLorentzVector &initialMomentum, const HepLorentzVector &initialPosition, const std::string process="") |
void | finalize (const HepLorentzVector &finalPosition) |
Set the final attributes of the McParticle. | |
StdHepId | particleProperty () const |
Retrieve particle property. | |
unsigned int | statusFlags () const |
retrieve all of status flags for const object | |
void | addStatusFlag (unsigned int flag) |
add a new flag to the status flags | |
bool | primaryParticle () const |
Retrieve whether this is a primary particle. | |
bool | leafParticle () const |
Retrieve whether this is a leaf particle. | |
bool | decayFromGenerator () const |
Decayed from generator. | |
bool | decayInFlight () const |
Decayed in flight. | |
void | setVertexIndex0 (int index0) |
methods for setting and getting vertex indexes | |
int | vertexIndex0 () const |
void | setVertexIndex1 (int index1) |
int | vertexIndex1 () const |
void | setTrackIndex (int trackIndex) |
int | trackIndex () const |
const HepLorentzVector & | initialPosition () const |
Retrieve pointer to the start, end vertex positions. | |
const HepLorentzVector & | finalPosition () const |
const HepLorentzVector & | initialFourMomentum () const |
const McParticle & | mother () const |
access to the mother particle | |
void | setMother (const SmartRef< McParticle > m) |
set the mother particle | |
void | addDaughter (const SmartRef< McParticle > d) |
add a daugther particle to this particle | |
void | removeDaughter (const SmartRef< McParticle > mcPart) |
Used for pruning. | |
const SmartRefVector< McParticle > & | daughterList () const |
access the process name | |
Static Public Member Functions | |
static const CLID & | classID () |
Definition at line 28 of file McParticle.h.
typedef int Event::McParticle::StdHepId |
Definition at line 30 of file McParticle.h.
status bits modeled
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 34 of file McParticle.h.
|
inline |
|
inlinevirtual |
|
inline |
add a daugther particle to this particle
Definition at line 147 of file McParticle.h.
Referenced by BesMcTruthWriter::AddMother().
|
inline |
add a new flag to the status flags
Definition at line 103 of file McParticle.h.
Referenced by BesMcTruthWriter::SaveMcParticle(), and McParticleCnv::TObjectToDataObject().
|
inlinestatic |
|
inlinevirtual |
Definition at line 55 of file McParticle.h.
|
inline |
access the process name
set the initial and final volume identifiers get the initial and final volume identifier access to the list of daughters
Definition at line 164 of file McParticle.h.
Referenced by PrintMcInfo::printPartInf(), and PrintMcInfo::printTree().
bool McParticle::decayFromGenerator | ( | ) | const |
Decayed from generator.
Retrieve whether decayed from generator.
Definition at line 25 of file McParticle.cxx.
bool McParticle::decayInFlight | ( | ) | const |
void McParticle::finalize | ( | const HepLorentzVector & | finalPosition | ) |
Set the final attributes of the McParticle.
Definition at line 85 of file McParticle.cxx.
Referenced by init(), BesMcTruthWriter::SaveMcParticle(), McParticleCnv::TObjectToDataObject(), and McParticleBuilder::unPack().
const HepLorentzVector & McParticle::finalPosition | ( | ) | const |
Definition at line 99 of file McParticle.cxx.
Referenced by finalize(), and init().
void McParticle::init | ( | McParticle * | mother, |
StdHepId | id, | ||
unsigned int | statusBits, | ||
const HepLorentzVector & | initialMomentum, | ||
const HepLorentzVector & | finalMomentum, | ||
const HepLorentzVector & | initialPosition, | ||
const HepLorentzVector & | finalPosition, | ||
const std::string | process = "" |
||
) |
completely initialize a newed object. No other way to set most attributes. it will be replaced by the following methods (left here just in the transition)
Definition at line 36 of file McParticle.cxx.
const HepLorentzVector & McParticle::initialFourMomentum | ( | ) | const |
Definition at line 103 of file McParticle.cxx.
void McParticle::initialize | ( | McParticle * | mother, |
StdHepId | id, | ||
unsigned int | statusBits, | ||
const HepLorentzVector & | initialMomentum, | ||
const HepLorentzVector & | initialPosition, | ||
const std::string | process = "" |
||
) |
Definition at line 63 of file McParticle.cxx.
void McParticle::initialize | ( | StdHepId | id, |
unsigned int | statusBits, | ||
const HepLorentzVector & | initialMomentum, | ||
const HepLorentzVector & | initialPosition, | ||
const std::string | process = "" |
||
) |
Set the initial attributes of the McParticle.
Definition at line 50 of file McParticle.cxx.
Referenced by init(), BesMcTruthWriter::SaveMcParticle(), McParticleCnv::TObjectToDataObject(), and McParticleBuilder::unPack().
const HepLorentzVector & McParticle::initialPosition | ( | ) | const |
Retrieve pointer to the start, end vertex positions.
Definition at line 95 of file McParticle.cxx.
Referenced by init(), initialize(), and PrintMcInfo::printPartInf().
bool McParticle::leafParticle | ( | ) | const |
Retrieve whether this is a leaf particle.
Retrieve whether this is a leave particle.
Definition at line 19 of file McParticle.cxx.
Referenced by BesMcTruthWriter::AddMother().
const McParticle & McParticle::mother | ( | ) | const |
access to the mother particle
Definition at line 117 of file McParticle.cxx.
Referenced by QCMCFilter::execute(), QCMCFilter::findD0Decay(), init(), and initialize().
McParticle::StdHepId McParticle::particleProperty | ( | ) | const |
Retrieve particle property.
Definition at line 7 of file McParticle.cxx.
Referenced by QCMCFilter::execute(), QCMCFilter::findD0Decay(), mcPartPrtLess(), and PrintMcInfo::printPartInf().
bool McParticle::primaryParticle | ( | ) | const |
Retrieve whether this is a primary particle.
Retrieve whether this is a primary particle: there's no mother for a primary particle
Definition at line 13 of file McParticle.cxx.
Referenced by PrintMcInfo::printPartInf(), and PrintMcInfo::printTree().
void McParticle::removeDaughter | ( | const SmartRef< McParticle > | mcPart | ) |
Used for pruning.
Remove daughters when in prune mode.
Definition at line 123 of file McParticle.cxx.
void McParticle::setMother | ( | const SmartRef< McParticle > | m | ) |
|
inline |
Definition at line 128 of file McParticle.h.
Referenced by BesMcTruthWriter::SaveMcParticle(), McParticleCnv::TObjectToDataObject(), and McParticleBuilder::unPack().
|
inline |
methods for setting and getting vertex indexes
Definition at line 119 of file McParticle.h.
Referenced by BesMcTruthWriter::SaveMcParticle(), McParticleCnv::TObjectToDataObject(), and McParticleBuilder::unPack().
|
inline |
Definition at line 123 of file McParticle.h.
Referenced by BesMcTruthWriter::SaveMcParticle(), McParticleCnv::TObjectToDataObject(), and McParticleBuilder::unPack().
unsigned int McParticle::statusFlags | ( | ) | const |
retrieve all of status flags for const object
Definition at line 112 of file McParticle.cxx.
|
inline |
Definition at line 131 of file McParticle.h.
Referenced by PrintMcInfo::execute(), PrintMcInfo::printPartInf(), and setTrackIndex().
|
inline |
Definition at line 121 of file McParticle.h.
|
inline |
Definition at line 125 of file McParticle.h.
Referenced by BesMcTruthWriter::AddMother().