BOSS 7.0.4
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 , DECAYED =1 , DECAYFLT =1<<1 , PRIMARY =1<<2 , LEAF = 1<<3 , ERROR = 1<<4 } |
status bits modeled More... | |
enum | StatusBits { DECAYED =1 , DECAYFLT =1<<1 , PRIMARY =1<<2 , LEAF = 1<<3 , ERROR = 1<<4 , DECAYED =1 , DECAYFLT =1<<1 , PRIMARY =1<<2 , LEAF = 1<<3 , ERROR = 1<<4 } |
status bits modeled More... | |
typedef int | StdHepId |
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 | |
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 |
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 () |
static const CLID & | classID () |
Definition at line 28 of file Event/McTruth/McTruth-00-02-19/McTruth/McParticle.h.
typedef int Event::McParticle::StdHepId |
Definition at line 30 of file Event/McTruth/McTruth-00-02-19/McTruth/McParticle.h.
typedef int Event::McParticle::StdHepId |
Definition at line 30 of file InstallArea/include/McTruth/McTruth/McParticle.h.
status bits modeled
Definition at line 34 of file Event/McTruth/McTruth-00-02-19/McTruth/McParticle.h.
status bits modeled
Definition at line 34 of file InstallArea/include/McTruth/McTruth/McParticle.h.
|
inline |
Constructors.
Definition at line 58 of file Event/McTruth/McTruth-00-02-19/McTruth/McParticle.h.
|
inlinevirtual |
|
inline |
Constructors.
Definition at line 58 of file InstallArea/include/McTruth/McTruth/McParticle.h.
|
inlinevirtual |
|
inline |
add a daugther particle to this particle
Definition at line 147 of file Event/McTruth/McTruth-00-02-19/McTruth/McParticle.h.
Referenced by BesMcTruthWriter::AddMother().
|
inline |
add a daugther particle to this particle
Definition at line 147 of file InstallArea/include/McTruth/McTruth/McParticle.h.
|
inline |
add a new flag to the status flags
Definition at line 103 of file Event/McTruth/McTruth-00-02-19/McTruth/McParticle.h.
Referenced by BesMcTruthWriter::SaveMcParticle().
|
inline |
add a new flag to the status flags
Definition at line 103 of file InstallArea/include/McTruth/McTruth/McParticle.h.
|
inlinestatic |
Definition at line 56 of file Event/McTruth/McTruth-00-02-19/McTruth/McParticle.h.
Referenced by clID().
|
inlinestatic |
Definition at line 56 of file InstallArea/include/McTruth/McTruth/McParticle.h.
|
inlinevirtual |
Definition at line 55 of file Event/McTruth/McTruth-00-02-19/McTruth/McParticle.h.
|
inlinevirtual |
Definition at line 55 of file InstallArea/include/McTruth/McTruth/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 Event/McTruth/McTruth-00-02-19/McTruth/McParticle.h.
Referenced by PrintMcInfo::printPartInf(), and PrintMcInfo::printTree().
|
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 InstallArea/include/McTruth/McTruth/McParticle.h.
bool McParticle::decayFromGenerator | ( | ) | const |
Decayed from generator.
Retrieve whether decayed from generator.
Definition at line 25 of file McParticle.cxx.
bool Event::McParticle::decayFromGenerator | ( | ) | const |
Decayed from generator.
bool McParticle::decayInFlight | ( | ) | const |
bool Event::McParticle::decayInFlight | ( | ) | const |
Decayed in flight.
void McParticle::finalize | ( | const HepLorentzVector & | finalPosition | ) |
Set the final attributes of the McParticle.
Definition at line 85 of file McParticle.cxx.
Referenced by init(), and BesMcTruthWriter::SaveMcParticle().
void Event::McParticle::finalize | ( | const HepLorentzVector & | finalPosition | ) |
Set the final attributes of the McParticle.
const HepLorentzVector & McParticle::finalPosition | ( | ) | const |
Definition at line 99 of file McParticle.cxx.
Referenced by finalize(), and init().
const HepLorentzVector & Event::McParticle::finalPosition | ( | ) | const |
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.
void Event::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)
const HepLorentzVector & McParticle::initialFourMomentum | ( | ) | const |
Definition at line 103 of file McParticle.cxx.
const HepLorentzVector & Event::McParticle::initialFourMomentum | ( | ) | const |
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 Event::McParticle::initialize | ( | McParticle * | mother, |
StdHepId | id, | ||
unsigned int | statusBits, | ||
const HepLorentzVector & | initialMomentum, | ||
const HepLorentzVector & | initialPosition, | ||
const std::string | process = "" |
||
) |
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(), and BesMcTruthWriter::SaveMcParticle().
void Event::McParticle::initialize | ( | StdHepId | id, |
unsigned int | statusBits, | ||
const HepLorentzVector & | initialMomentum, | ||
const HepLorentzVector & | initialPosition, | ||
const std::string | process = "" |
||
) |
Set the initial attributes of the McParticle.
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().
const HepLorentzVector & Event::McParticle::initialPosition | ( | ) | const |
Retrieve pointer to the start, end vertex positions.
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().
bool Event::McParticle::leafParticle | ( | ) | const |
Retrieve whether this is a leaf particle.
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().
const McParticle & Event::McParticle::mother | ( | ) | const |
access to the mother particle
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().
StdHepId Event::McParticle::particleProperty | ( | ) | const |
Retrieve particle property.
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().
bool Event::McParticle::primaryParticle | ( | ) | const |
Retrieve whether this is a primary particle: there's no mother for a primary particle
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 Event::McParticle::removeDaughter | ( | const SmartRef< McParticle > | mcPart | ) |
Used for pruning.
void McParticle::setMother | ( | const SmartRef< McParticle > | m | ) |
void Event::McParticle::setMother | ( | const SmartRef< McParticle > | m | ) |
set the mother particle
|
inline |
Definition at line 128 of file Event/McTruth/McTruth-00-02-19/McTruth/McParticle.h.
Referenced by BesMcTruthWriter::SaveMcParticle().
|
inline |
Definition at line 128 of file InstallArea/include/McTruth/McTruth/McParticle.h.
|
inline |
methods for setting and getting vertex indexes
Definition at line 119 of file Event/McTruth/McTruth-00-02-19/McTruth/McParticle.h.
Referenced by BesMcTruthWriter::SaveMcParticle().
|
inline |
methods for setting and getting vertex indexes
Definition at line 119 of file InstallArea/include/McTruth/McTruth/McParticle.h.
|
inline |
Definition at line 123 of file Event/McTruth/McTruth-00-02-19/McTruth/McParticle.h.
Referenced by BesMcTruthWriter::SaveMcParticle().
|
inline |
Definition at line 123 of file InstallArea/include/McTruth/McTruth/McParticle.h.
unsigned int McParticle::statusFlags | ( | ) | const |
retrieve all of status flags for const object
Definition at line 112 of file McParticle.cxx.
unsigned int Event::McParticle::statusFlags | ( | ) | const |
retrieve all of status flags for const object
|
inline |
Definition at line 131 of file Event/McTruth/McTruth-00-02-19/McTruth/McParticle.h.
Referenced by PrintMcInfo::execute(), PrintMcInfo::printPartInf(), and setTrackIndex().
|
inline |
Definition at line 131 of file InstallArea/include/McTruth/McTruth/McParticle.h.
|
inline |
Definition at line 121 of file Event/McTruth/McTruth-00-02-19/McTruth/McParticle.h.
|
inline |
Definition at line 121 of file InstallArea/include/McTruth/McTruth/McParticle.h.
|
inline |
Definition at line 125 of file Event/McTruth/McTruth-00-02-19/McTruth/McParticle.h.
Referenced by BesMcTruthWriter::AddMother().
|
inline |
Definition at line 125 of file InstallArea/include/McTruth/McTruth/McParticle.h.