Belle II Software development
|
Class to represent Particle data in graph. More...
#include <MCParticleGraph.h>
Public Types | |
enum | StatusBit { c_PrimaryParticle = 1 << 0 , c_StableInGenerator = 1 << 1 , c_LeftDetector = 1 << 2 , c_StoppedInDetector = 1 << 3 , c_IsVirtual = 1 << 4 , c_Initial = 1 << 5 , c_IsISRPhoton = 1 << 6 , c_IsFSRPhoton = 1 << 7 , c_IsPHOTOSPhoton = 1 << 8 , c_IsRadiativePhoton = c_IsISRPhoton | c_IsFSRPhoton | c_IsPHOTOSPhoton } |
Exception is thrown if the requested index for the last child is out of range. More... | |
Public Member Functions | |
GraphParticle & | operator= (const MCParticle &particle) |
Assign the values of an existing MCParticle to this GraphParticle. | |
void | decaysInto (GraphParticle &daughter) |
Tells the graph that this particle decays into daughter. | |
void | comesFrom (GraphParticle &mother) |
Tells the graph that this particle is a decay product of mother. | |
void | setFirstDaughter (int daughter) |
Set the 1-based index of the first daughter, 0 means no daughters. | |
void | setLastDaughter (int daughter) |
Set the 1-based index of the last daughter, 0 means no daughters. | |
void | setIgnore (bool ignore=true) |
Set or remove the ignore flag. | |
bool | getIgnore () const |
Get the ignore flag. | |
void | setTrackID (int trackID) |
Set the track ID for the particle. | |
int | getTrackID () const |
Returns the track ID assigned to this MCParticle. | |
int | getPDG () const |
Return PDG code of particle. | |
unsigned int | getStatus (unsigned short int bitmask=USHRT_MAX) const |
Return status code of particle. | |
bool | hasStatus (unsigned short int bitmask) const |
Return if specific status bit is set. | |
float | getMass () const |
Return the particle mass in GeV. | |
float | getCharge () const |
Return the particle charge defined in TDatabasePDG. | |
float | getEnergy () const |
Return particle energy in GeV. | |
bool | hasValidVertex () const |
Indication whether vertex and time information is useful or just default. | |
float | getProductionTime () const |
Return production time in ns. | |
float | getDecayTime () const |
Return the decay time in ns. | |
float | getLifetime () const |
Return the lifetime in ns. | |
ROOT::Math::XYZVector | getVertex () const |
Return production vertex position, shorthand for getProductionVertex(). | |
ROOT::Math::XYZVector | getProductionVertex () const |
Return production vertex position. | |
ROOT::Math::XYZVector | getMomentum () const |
Return momentum. | |
ROOT::Math::PxPyPzEVector | get4Vector () const |
Return 4Vector of particle. | |
ROOT::Math::XYZVector | getDecayVertex () const |
Return decay vertex. | |
int | getIndex () const |
Get 1-based index of the particle in the corresponding MCParticle list. | |
int | getArrayIndex () const |
Get 0-based index of the particle in the corresponding MCParticle list. | |
int | getFirstDaughter () const |
Get 1-based index of first daughter, 0 if no daughters. | |
int | getLastDaughter () const |
Get 1-based index of last daughter, 0 if no daughters. | |
std::vector< Belle2::MCParticle * > | getDaughters () const |
Get vector of all daughter particles, empty vector if none. | |
const MCParticle * | getDaughter (int i) const |
Return i-th daughter. | |
int | getNDaughters () const |
Return number of daughter MCParticles. | |
MCParticle * | getMother () const |
Returns a pointer to the mother particle. | |
int | getSecondaryPhysicsProcess () const |
Returns the physics process type of a secondary particle. | |
Const::DetectorSet | getSeenInDetector () const |
Return the seen-in flags of the entire Belle II subdetectors for an MC particle. | |
bool | hasSeenInDetector (Const::DetectorSet set) const |
Return if the seen-in flag for a specific subdetector is set or not. | |
bool | isVirtual () const |
Check if particle is virtual. | |
bool | isInitial () const |
Check if particle is an initial particle such as ISR. | |
bool | isPrimaryParticle () const |
Check if particle is a primary particle which was created by the generator (and not, for example material interaction) | |
void | setPDG (int pdg) |
Set PDG code of the particle. | |
void | setMassFromPDG () |
Sets the mass for the particle from the particle's PDG code. | |
void | setStatus (unsigned short int status) |
Set Status code for the particle. | |
void | addStatus (unsigned short int bitmask) |
Add bitmask to current status. | |
void | removeStatus (unsigned short int bitmask) |
Remove bitmask from current status. | |
void | setMass (float mass) |
Set particle mass. | |
void | setEnergy (float energy) |
Set energy. | |
void | setValidVertex (bool valid) |
Set indication wether vertex and time information is valid or just default. | |
void | setProductionTime (float time) |
Set production time. | |
void | setDecayTime (float time) |
Set decay time. | |
void | setProductionVertex (const ROOT::Math::XYZVector &vertex) |
Set production vertex position. | |
void | setProductionVertex (float x, float y, float z) |
Set production vertex position. | |
void | setMomentum (const ROOT::Math::XYZVector &momentum) |
Set particle momentum. | |
void | setMomentum (float px, float py, float pz) |
Set particle momentum. | |
void | set4Vector (const ROOT::Math::PxPyPzEVector &p4) |
Sets the 4Vector of particle. | |
void | setDecayVertex (const ROOT::Math::XYZVector &vertex) |
Set decay vertex. | |
void | setDecayVertex (float x, float y, float z) |
Set decay vertex. | |
void | setSecondaryPhysicsProcess (int physicsProcess) |
Sets the physics process type of a secondary particle. | |
void | setSeenInDetector (Const::DetectorSet set) |
Set the seen-in flags for the entire Belle II subdetectors for an Monte Carlo particle. | |
void | addSeenInDetector (Const::DetectorSet set) |
Flag/Add a bit if the MC particle is seen in a specific subdetector. | |
void | removeSeenInDetector (Const::DetectorSet set) |
Unflag/Remove the bit if the MC particle is not seen in a specific subdetector. | |
void | fixParticleList () const |
Search the DataStore for the corresponding MCParticle array. | |
void | setVirtual () |
Set particle to virtual. | |
void | setInitial () |
Set particle to initial. | |
virtual std::string | getName () const override |
Return name of this particle. | |
virtual std::string | getInfoHTML () const override |
Return a short summary of this object's contents in HTML format. | |
const MCParticle * | getParticleFromGeneralizedIndexString (const std::string &generalizedIndex) const |
Explores the decay tree of the MC particle and returns the (grand^n)daughter identified by a generalized index. | |
void | addRelationTo (const RelationsInterface< BASE > *object, float weight=1.0, const std::string &namedRelation="") const |
Add a relation from this object to another object (with caching). | |
void | addRelationTo (const TObject *object, float weight=1.0, const std::string &namedRelation="") const |
Add a relation from this object to another object (no caching, can be quite slow). | |
void | copyRelations (const RelationsInterface< BASE > *sourceObj) |
Copies all relations of sourceObj (pointing from or to sourceObj) to this object (including weights). | |
template<class TO > | |
RelationVector< TO > | getRelationsTo (const std::string &name="", const std::string &namedRelation="") const |
Get the relations that point from this object to another store array. | |
template<class FROM > | |
RelationVector< FROM > | getRelationsFrom (const std::string &name="", const std::string &namedRelation="") const |
Get the relations that point from another store array to this object. | |
template<class T > | |
RelationVector< T > | getRelationsWith (const std::string &name="", const std::string &namedRelation="") const |
Get the relations between this object and another store array. | |
template<class TO > | |
TO * | getRelatedTo (const std::string &name="", const std::string &namedRelation="") const |
Get the object to which this object has a relation. | |
template<class FROM > | |
FROM * | getRelatedFrom (const std::string &name="", const std::string &namedRelation="") const |
Get the object from which this object has a relation. | |
template<class T > | |
T * | getRelated (const std::string &name="", const std::string &namedRelation="") const |
Get the object to or from which this object has a relation. | |
template<class TO > | |
std::pair< TO *, float > | getRelatedToWithWeight (const std::string &name="", const std::string &namedRelation="") const |
Get first related object & weight of relation pointing to an array. | |
template<class FROM > | |
std::pair< FROM *, float > | getRelatedFromWithWeight (const std::string &name="", const std::string &namedRelation="") const |
Get first related object & weight of relation pointing from an array. | |
template<class T > | |
std::pair< T *, float > | getRelatedWithWeight (const std::string &name="", const std::string &namedRelation="") const |
Get first related object & weight of relation pointing from/to an array. | |
std::string | getInfo () const |
Return a short summary of this object's contents in raw text format. | |
std::string | getArrayName () const |
Get name of array this object is stored in, or "" if not found. | |
Protected Member Functions | |
ClassDefOverride (MCParticle, 5) | |
A Class to store the Monte Carlo particle information. | |
TClonesArray * | getArrayPointer () const |
Returns the pointer to the raw DataStore array holding this object (protected since these arrays are easy to misuse). | |
Protected Attributes | |
TClonesArray * | m_plist |
Internal pointer to DataStore Array containing particles belonging to this collection. | |
int | m_index |
transient pointer to particle list | |
unsigned short int | m_status |
transient 1-based index of particle | |
int | m_pdg |
PDG-Code of the particle. | |
float | m_mass |
mass of the particle | |
float | m_energy |
energy of the particle | |
float | m_momentum_x |
momentum of particle, x component | |
float | m_momentum_y |
momentum of particle, y component | |
float | m_momentum_z |
momentum of particle, z component | |
bool | m_validVertex |
indication wether vertex and time information is useful or just default | |
float | m_productionTime |
production time | |
float | m_productionVertex_x |
production vertex of particle, x component | |
float | m_productionVertex_y |
production vertex of particle, y component | |
float | m_productionVertex_z |
production vertex of particle, z component | |
float | m_decayTime |
decay time | |
float | m_decayVertex_x |
decay vertex of particle, x component | |
float | m_decayVertex_y |
decay vertex of particle, y component | |
float | m_decayVertex_z |
decay vertex of particle, z component | |
int | m_mother |
1-based index of the mother particle | |
int | m_firstDaughter |
1-based index of first daughter particle in collection, 0 if no daughters | |
int | m_lastDaughter |
1-based index of last daughter particle in collection, 0 if no daughters | |
int | m_secondaryPhysicsProcess |
physics process type of a secondary particle | |
Const::DetectorSet | m_seenIn |
Each bit is a seen-in flag for the corresoponding subdetector of Belle II. | |
Static Protected Attributes | |
static const double | c_epsilon = 10e-7 |
limit of precision for two doubles to be the same. | |
Private Member Functions | |
GraphParticle ()=delete | |
No default constructor. | |
GraphParticle (const GraphParticle &)=delete | |
No copy constructor. | |
GraphParticle (TClonesArray *, const MCParticle &) | |
Hide MCParticle "almost copy" constructor. | |
GraphParticle (MCParticleGraph *graph, unsigned int vertexId) | |
Internally used constructor. | |
void | setIndex (int index) |
Set the 1-based index of the particle. | |
ClassDef (RelationsInterface, 0) | |
defines interface for accessing relations of objects in StoreArray. | |
Private Attributes | |
MCParticleGraph * | m_graph {0} |
internal pointer to the graph this particle belongs to | |
unsigned int | m_vertexId {0} |
vertex id in the graph | |
bool | m_ignore {false} |
ignore particle when writing MCParticle list ? | |
bool | m_primary {true} |
Is this a primary particle ? | |
int | m_trackID {0} |
The track ID from geant4 that created this particle. | |
DataStore::StoreEntry * | m_cacheDataStoreEntry |
Cache of the data store entry to which this object belongs. | |
int | m_cacheArrayIndex |
Cache of the index in the TClonesArray to which this object belongs. | |
Friends | |
class | MCParticleGraph |
class | ParticleSorter |
Class to represent Particle data in graph.
This is an extended version of the MCParticle class, allowing to set index and daughter indices as well as adding decay information. Use MCParticleGraph::addParticle() to add a new particle to the graph.
Definition at line 75 of file MCParticleGraph.h.
|
inherited |
Exception is thrown if the requested index for the last child is out of range.
Exception is thrown if no pointer to the particle list was set. Exception is thrown if the pdg value of the MCParticle is not known to the internal database (TDatabasePDG). The status information for the MCParticle.
Enumerator | |
---|---|
c_PrimaryParticle | bit 0: Particle is primary particle. For example, All the particles from the generator. |
c_StableInGenerator | bit 1: Particle is stable, i.e., not decaying in the generator.
|
c_LeftDetector | bit 2: Particle left the detector (the simulation volume). |
c_StoppedInDetector | bit 3: Particle was stopped in the detector (the simulation volume). |
c_IsVirtual | bit 4: Particle is virtual and not going to Geant4. Exchange boson, off-shell, unknown to Geant4, etc. |
c_Initial | bit 5: Particle is initial such as e+ or e- and not going to Geant4 |
c_IsISRPhoton | bit 6: Particle is from initial state radiation |
c_IsFSRPhoton | bit 7: Particle is from finial state radiation |
c_IsPHOTOSPhoton | bit 8: Particle is an radiative photon from PHOTOS |
c_IsRadiativePhoton | combined flag to test whether the particle is radiative |
Definition at line 45 of file MCParticle.h.
|
privatedelete |
No default constructor.
This class gets instantiated by MCParticleGraph::addParticle()
|
inlineprivate |
|
inlineprivate |
Internally used constructor.
Create a new Particle with given index and a pointer to the containing graph.
graph | Pointer to the graph the particle is part of. |
vertexId | The vertex id of the particle in the graph. |
Definition at line 180 of file MCParticleGraph.h.
|
inlineinherited |
Add a relation from this object to another object (with caching).
object | The object to which the relation should point. |
weight | The weight of the relation. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 142 of file RelationsObject.h.
|
inlineinherited |
Add a relation from this object to another object (no caching, can be quite slow).
object | The object to which the relation should point. |
weight | The weight of the relation. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 155 of file RelationsObject.h.
|
inlineinherited |
Flag/Add a bit if the MC particle is seen in a specific subdetector.
set | The ID for Belle II subdetector(s), in either Const::DetectorSet or Const::EDetector format |
Definition at line 480 of file MCParticle.h.
|
inlineinherited |
Add bitmask to current status.
bitmask | The status code which should be added to the existing MonteCarlo particle status code. |
Definition at line 353 of file MCParticle.h.
|
inline |
Tells the graph that this particle is a decay product of mother.
mother | The mother particle of this particle. |
Definition at line 105 of file MCParticleGraph.h.
|
inlineinherited |
Copies all relations of sourceObj (pointing from or to sourceObj) to this object (including weights).
Useful if you want to make a complete copy of a StoreArray object to make modifications to it, but retain all information on linked objects.
Note: this only works if sourceObj inherits from the same base (e.g. RelationsObject), and only for related objects that also inherit from the same base.
Definition at line 170 of file RelationsObject.h.
|
inline |
Tells the graph that this particle decays into daughter.
daughter | The daughter particle in which this particle decays. |
Definition at line 99 of file MCParticleGraph.h.
|
inherited |
Search the DataStore for the corresponding MCParticle array.
This function should not be needed by normal users and is called automatically if the pointer to the particle list is not set when needed, e.g. after deserialization.
Definition at line 82 of file MCParticle.cc.
|
inlineinherited |
Return 4Vector of particle.
Definition at line 207 of file MCParticle.h.
|
inlineinherited |
Get 0-based index of the particle in the corresponding MCParticle list.
This is the function for users who want to use the indices of the TClonesArray. To get the corresponding mother and daughter indices use ->getMother()->getArrayIndex().
Definition at line 244 of file MCParticle.h.
|
inlineinherited |
Get name of array this object is stored in, or "" if not found.
Definition at line 377 of file RelationsObject.h.
|
inlineprotectedinherited |
Returns the pointer to the raw DataStore array holding this object (protected since these arrays are easy to misuse).
Definition at line 418 of file RelationsObject.h.
|
inherited |
Return the particle charge defined in TDatabasePDG.
Definition at line 36 of file MCParticle.cc.
|
inherited |
Return i-th daughter.
Definition at line 67 of file MCParticle.cc.
|
inherited |
Get vector of all daughter particles, empty vector if none.
Throws an exception of type LastChildIndexOutOfRangError if the last daughter is out of the index range.
Definition at line 52 of file MCParticle.cc.
|
inlineinherited |
Return the decay time in ns.
Definition at line 168 of file MCParticle.h.
|
inlineinherited |
Return decay vertex.
Definition at line 219 of file MCParticle.h.
|
inlineinherited |
Return particle energy in GeV.
Definition at line 147 of file MCParticle.h.
|
inlineinherited |
Get 1-based index of first daughter, 0 if no daughters.
Definition at line 251 of file MCParticle.h.
|
inline |
Get the ignore flag.
Definition at line 139 of file MCParticleGraph.h.
|
inlineinherited |
Get 1-based index of the particle in the corresponding MCParticle list.
This is used by the MCParticle Graph.
Definition at line 230 of file MCParticle.h.
|
inlineinherited |
Return a short summary of this object's contents in raw text format.
Returns the contents of getInfoHTML() while translating line-breaks etc.
Definition at line 370 of file RelationsObject.h.
|
overridevirtualinherited |
Return a short summary of this object's contents in HTML format.
Reimplemented from RelationsInterface< BASE >.
Definition at line 125 of file MCParticle.cc.
|
inlineinherited |
Get 1-based index of last daughter, 0 if no daughters.
Definition at line 259 of file MCParticle.h.
|
inlineinherited |
Return the lifetime in ns.
A convenient method to get the lifetime of the MonteCarlo particle.
Definition at line 177 of file MCParticle.h.
|
inlineinherited |
Return the particle mass in GeV.
Definition at line 135 of file MCParticle.h.
|
inlineinherited |
Return momentum.
Definition at line 198 of file MCParticle.h.
|
overridevirtualinherited |
Return name of this particle.
Reimplemented from RelationsInterface< BASE >.
Definition at line 117 of file MCParticle.cc.
|
inherited |
Return number of daughter MCParticles.
Definition at line 75 of file MCParticle.cc.
|
inherited |
Explores the decay tree of the MC particle and returns the (grand^n)daughter identified by a generalized index.
The generalized index consists of a colon-separated list of daughter indexes, starting from the root particle: 0:1:3 identifies the fourth daughter (3) of the second daughter (1) of the first daughter (0) of the mother particle. This method mirrors the method used in the Particle class.
generalizedIndex | the generalized index of the particle to be returned |
Definition at line 152 of file MCParticle.cc.
|
inlineinherited |
Return PDG code of particle.
Definition at line 112 of file MCParticle.h.
|
inlineinherited |
Return production time in ns.
Definition at line 159 of file MCParticle.h.
|
inlineinherited |
Return production vertex position.
Definition at line 189 of file MCParticle.h.
|
inlineinherited |
Get the object to or from which this object has a relation.
T | The class of objects to or from which the relation points. |
name | The name of the store array to or from which the relation points. If empty the default store array name for class T will be used. If the special name "ALL" is given all store arrays containing objects of type T are considered. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 278 of file RelationsObject.h.
|
inlineinherited |
Get the object from which this object has a relation.
FROM | The class of objects from which the relation points. |
name | The name of the store array from which the relation points. If empty the default store array name for class FROM will be used. If the special name "ALL" is given all store arrays containing objects of type FROM are considered. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 263 of file RelationsObject.h.
|
inlineinherited |
Get first related object & weight of relation pointing from an array.
FROM | The class of objects from which the relation points. |
name | The name of the store array from which the relation points. If empty the default store array name for class FROM will be used. If the special name "ALL" is given all store arrays containing objects of type FROM are considered. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 314 of file RelationsObject.h.
|
inlineinherited |
Get the object to which this object has a relation.
TO | The class of objects to which the relation points. |
name | The name of the store array to which the relation points. If empty the default store array name for class TO will be used. If the special name "ALL" is given all store arrays containing objects of type TO are considered. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 248 of file RelationsObject.h.
|
inlineinherited |
Get first related object & weight of relation pointing to an array.
TO | The class of objects to which the relation points. |
name | The name of the store array to which the relation points. If empty the default store array name for class TO will be used. If the special name "ALL" is given all store arrays containing objects of type TO are considered. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 297 of file RelationsObject.h.
|
inlineinherited |
Get first related object & weight of relation pointing from/to an array.
T | The class of objects to or from which the relation points. |
name | The name of the store array to or from which the relation points. If empty the default store array name for class T will be used. If the special name "ALL" is given all store arrays containing objects of type T are considered. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 331 of file RelationsObject.h.
|
inlineinherited |
Get the relations that point from another store array to this object.
FROM | The class of objects from which the relations point. |
name | The name of the store array from which the relations point. If empty the default store array name for class FROM will be used. If the special name "ALL" is given all store arrays containing objects of type FROM are considered. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 212 of file RelationsObject.h.
|
inlineinherited |
Get the relations that point from this object to another store array.
TO | The class of objects to which the relations point. |
name | The name of the store array to which the relations point. If empty the default store array name for class TO will be used. If the special name "ALL" is given all store arrays containing objects of type TO are considered. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 197 of file RelationsObject.h.
|
inlineinherited |
Get the relations between this object and another store array.
Relations in both directions are returned.
T | The class of objects to or from which the relations point. |
name | The name of the store array to or from which the relations point. If empty the default store array name for class T will be used. If the special name "ALL" is given all store arrays containing objects of type T are considered. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 230 of file RelationsObject.h.
|
inlineinherited |
Returns the physics process type of a secondary particle.
Definition at line 297 of file MCParticle.h.
|
inlineinherited |
Return the seen-in flags of the entire Belle II subdetectors for an MC particle.
Definition at line 303 of file MCParticle.h.
|
inlineinherited |
Return status code of particle.
bitmask | Takes an optional bitmask that is compared to the status of the particle. |
Definition at line 122 of file MCParticle.h.
|
inline |
Returns the track ID assigned to this MCParticle.
Definition at line 154 of file MCParticleGraph.h.
|
inlineinherited |
Return production vertex position, shorthand for getProductionVertex().
Definition at line 183 of file MCParticle.h.
|
inlineinherited |
Return if the seen-in flag for a specific subdetector is set or not.
set | The ID for Belle II subdetector(s), in either Const::DetectorSet or Const::EDetector format. |
Definition at line 310 of file MCParticle.h.
|
inlineinherited |
Return if specific status bit is set.
bitmask | The bitmask which is compared to the status of the particle. |
Definition at line 129 of file MCParticle.h.
|
inlineinherited |
Indication whether vertex and time information is useful or just default.
Definition at line 153 of file MCParticle.h.
|
inline |
Assign the values of an existing MCParticle to this GraphParticle.
This assignment will leave all bookkeeping members of the GraphParticle untouched (decays, ignore status, track id) but will assign all values/flags from the MCParticle.
particle | Particle which values (momentum, energy, mass, vertex, etc.) shall be assigned |
Definition at line 85 of file MCParticleGraph.h.
|
inlineinherited |
Unflag/Remove the bit if the MC particle is not seen in a specific subdetector.
set | The ID for Belle II subdetector(s), in either Const::DetectorSet or Const::EDetector format |
Definition at line 486 of file MCParticle.h.
|
inlineinherited |
Remove bitmask from current status.
bitmask | The status code which should be removed from the existing MonteCarlo particle status code. |
Definition at line 360 of file MCParticle.h.
|
inlineinherited |
Sets the 4Vector of particle.
p4 | 4Vector |
Definition at line 438 of file MCParticle.h.
|
inlineinherited |
Set decay time.
time | The timestamp of the decay of the MonteCarlo time. |
Definition at line 390 of file MCParticle.h.
|
inlineinherited |
Set decay vertex.
vertex | The position of the decay vertex given as XYZVector. |
Definition at line 447 of file MCParticle.h.
|
inlineinherited |
Set decay vertex.
The position of the decay vertex is given as three float parameters.
x | The x position of the decay vertex. |
y | The y position of the decay vertex. |
z | The z position of the decay vertex. |
Definition at line 459 of file MCParticle.h.
|
inlineinherited |
Set energy.
energy | The energy of the MonteCarlo particle. |
Definition at line 372 of file MCParticle.h.
|
inline |
Set the 1-based index of the first daughter, 0 means no daughters.
Will be reset when sorting the particle graph and will be set according to the information given with decaysInto() and comesFrom().
daughter | The index of the first daughter particle. Set to 0 for no daughters. |
Definition at line 114 of file MCParticleGraph.h.
|
inline |
Set or remove the ignore flag.
If ignore is set, this particle will not be written to the MCParticle list and all its daughters without ignore flag will be attributed to all parents of this particle.
ignore | Set to true to ignore this particle when creating the MCParticle list. |
Definition at line 132 of file MCParticleGraph.h.
|
inlineprivate |
Set the 1-based index of the particle.
index | The index of the particle. |
Definition at line 193 of file MCParticleGraph.h.
|
inlineinherited |
Set particle to initial.
(A bit more convinient)
Definition at line 505 of file MCParticle.h.
|
inline |
Set the 1-based index of the last daughter, 0 means no daughters.
daughter | The index of the last daughter particle. Set to 0 for no daughters. |
Definition at line 122 of file MCParticleGraph.h.
|
inlineinherited |
Set particle mass.
mass | The MonteCarlo particle mass. |
Definition at line 366 of file MCParticle.h.
|
inherited |
|
inlineinherited |
Set particle momentum.
momentum | The momentum of the MonteCarlo particle given as XYZVector. |
Definition at line 417 of file MCParticle.h.
|
inlineinherited |
Set particle momentum.
The momentum of the MonteCarlo particle is given as three float parameters.
px | The x component of the momentum vector. |
py | The y component of the momentum vector. |
pz | The z component of the momentum vector. |
Definition at line 429 of file MCParticle.h.
|
inlineinherited |
Set PDG code of the particle.
pdg | The PDG code of the MonteCarlo particle. |
Definition at line 335 of file MCParticle.h.
|
inlineinherited |
Set production time.
time | The timestamp of the production of the MonteCarlo particle. |
Definition at line 384 of file MCParticle.h.
|
inlineinherited |
Set production vertex position.
vertex | The position of the production vertex given as XYZVector. |
Definition at line 396 of file MCParticle.h.
|
inlineinherited |
Set production vertex position.
The position of the production vertex is given as three float parameters.
x | The x position of the production vertex. |
y | The y position of the production vertex. |
z | The z position of the production vertex. |
Definition at line 408 of file MCParticle.h.
|
inlineinherited |
Sets the physics process type of a secondary particle.
physicsProcess | physics process type as an integer number for a secondary particle. |
Definition at line 468 of file MCParticle.h.
|
inlineinherited |
Set the seen-in flags for the entire Belle II subdetectors for an Monte Carlo particle.
set | The ID for Belle II subdetector(s), in either Const::DetectorSet or Const::EDetector format |
Definition at line 474 of file MCParticle.h.
|
inlineinherited |
Set Status code for the particle.
status | The status code of the MonteCarlo particle. |
Definition at line 346 of file MCParticle.h.
|
inline |
Set the track ID for the particle.
The track ID is used to build the relationship between MCParticles and created Hits.
trackID | The ID of the Geant4 track which created this MCParticle. |
Definition at line 147 of file MCParticleGraph.h.
|
inlineinherited |
Set indication wether vertex and time information is valid or just default.
valid | Set to true if the vertex is valid. |
Definition at line 378 of file MCParticle.h.
|
inlineinherited |
|
friend |
Definition at line 201 of file MCParticleGraph.h.
|
friend |
Definition at line 202 of file MCParticleGraph.h.
|
staticprotectedinherited |
limit of precision for two doubles to be the same.
Definition at line 563 of file MCParticle.h.
|
mutableprivateinherited |
Cache of the index in the TClonesArray to which this object belongs.
Definition at line 432 of file RelationsObject.h.
|
mutableprivateinherited |
Cache of the data store entry to which this object belongs.
Definition at line 429 of file RelationsObject.h.
|
protectedinherited |
decay time
Definition at line 555 of file MCParticle.h.
|
protectedinherited |
decay vertex of particle, x component
Definition at line 556 of file MCParticle.h.
|
protectedinherited |
decay vertex of particle, y component
Definition at line 557 of file MCParticle.h.
|
protectedinherited |
decay vertex of particle, z component
Definition at line 558 of file MCParticle.h.
|
protectedinherited |
energy of the particle
Definition at line 543 of file MCParticle.h.
|
protectedinherited |
1-based index of first daughter particle in collection, 0 if no daughters
Definition at line 561 of file MCParticle.h.
|
private |
internal pointer to the graph this particle belongs to
Definition at line 195 of file MCParticleGraph.h.
|
private |
ignore particle when writing MCParticle list ?
Definition at line 197 of file MCParticleGraph.h.
|
protectedinherited |
transient pointer to particle list
1-based index of the particle, will be set automatically after deserialisation if needed.
Definition at line 538 of file MCParticle.h.
|
protectedinherited |
1-based index of last daughter particle in collection, 0 if no daughters
Definition at line 562 of file MCParticle.h.
|
protectedinherited |
mass of the particle
Definition at line 542 of file MCParticle.h.
|
protectedinherited |
momentum of particle, x component
Definition at line 544 of file MCParticle.h.
|
protectedinherited |
momentum of particle, y component
Definition at line 545 of file MCParticle.h.
|
protectedinherited |
momentum of particle, z component
Definition at line 546 of file MCParticle.h.
|
protectedinherited |
1-based index of the mother particle
Definition at line 560 of file MCParticle.h.
|
protectedinherited |
PDG-Code of the particle.
Definition at line 541 of file MCParticle.h.
|
protectedinherited |
Internal pointer to DataStore Array containing particles belonging to this collection.
This is a transient member and will not be written to file. The pointer will be set correctly on first access after deserialisation
Definition at line 532 of file MCParticle.h.
|
private |
Is this a primary particle ?
Definition at line 198 of file MCParticleGraph.h.
|
protectedinherited |
production time
Definition at line 550 of file MCParticle.h.
|
protectedinherited |
production vertex of particle, x component
Definition at line 551 of file MCParticle.h.
|
protectedinherited |
production vertex of particle, y component
Definition at line 552 of file MCParticle.h.
|
protectedinherited |
production vertex of particle, z component
Definition at line 553 of file MCParticle.h.
|
protectedinherited |
physics process type of a secondary particle
Definition at line 565 of file MCParticle.h.
|
protectedinherited |
Each bit is a seen-in flag for the corresoponding subdetector of Belle II.
Definition at line 567 of file MCParticle.h.
|
protectedinherited |
|
private |
The track ID from geant4 that created this particle.
Definition at line 199 of file MCParticleGraph.h.
|
protectedinherited |
indication wether vertex and time information is useful or just default
Definition at line 548 of file MCParticle.h.
|
private |
vertex id in the graph
Definition at line 196 of file MCParticleGraph.h.