![]() |
ATLAS Offline Software
|
Class describing a truth vertex in the MC record. More...
#include <TruthVertex_v1.h>
Public Member Functions | |
| TruthVertex_v1 () | |
| Default constructor. | |
| Type::ObjectType | type () const |
| The type of the object as a simple enumeration. | |
| void | toPersistent () |
| Function making sure that the object is ready for persistification. | |
Functions identifying the vertex in the MC record | |
| int | status () const |
| Get the vertex status. | |
| void | setStatus (int value) |
| Set the vertex status. | |
| int | uid () const |
| Get the vertex unique ID. | |
| void | setUid (int value) |
| Set the vertex unique ID. | |
Links to the particles associated with this vertex | |
| typedef ElementLink< TruthParticleContainer > | TPLink_t |
| Type of one truth particle link. | |
| typedef std::vector< TPLink_t > | TPLinks_t |
| Type used to save the links to incoming and outgoing particles. | |
| const TPLinks_t & | incomingParticleLinks () const |
| Get all the incoming particles. | |
| void | setIncomingParticleLinks (const TPLinks_t &links) |
| Set all the incoming particles. | |
| size_t | nIncomingParticles () const |
| Get the number of incoming particles. | |
| const TruthParticle_v1 * | incomingParticle (size_t index) const |
| Get one of the incoming particles. | |
| void | addIncomingParticleLink (const TPLink_t &link) |
| Add one incoming particle. | |
| void | clearIncomingParticleLinks () |
| Remove all incoming particles. | |
| const TPLinks_t & | outgoingParticleLinks () const |
| Get all the outgoing particles. | |
| void | setOutgoingParticleLinks (const TPLinks_t &links) |
| Set all the outgoing particles. | |
| size_t | nOutgoingParticles () const |
| Get the number of outgoing particles. | |
| const TruthParticle_v1 * | outgoingParticle (size_t index) const |
| Get one of the outgoing particles. | |
| std::vector< const TruthParticle * > | particles_in () const |
| Get the incoming particles. | |
| std::vector< const TruthParticle * > | particles_out () const |
| Get the outgoing particles. | |
| void | addOutgoingParticleLink (const TPLink_t &link) |
| Add one outgoing particle. | |
| void | clearOutgoingParticleLinks () |
| Remove all outgoing particles. | |
Vertex position functions | |
| typedef TLorentzVector | FourVec_t |
| The 4-vector type. | |
| typedef ROOT::Math::LorentzVector< ROOT::Math::PxPyPzE4D< double > > | GenVecFourVec_t |
| Base 4 Momentum type for TruthVector. | |
| float | x () const |
| Vertex x displacement. | |
| void | setX (float value) |
| Set the x displacement of the vertex. | |
| float | y () const |
| Vertex y displacement. | |
| void | setY (float value) |
| Set the y displacement of the vertex. | |
| float | z () const |
| Vertex longitudinal distance along the beam line form the origin. | |
| void | setZ (float value) |
| Set the vertex's longitudinal distance from the origin. | |
| float | perp () const |
| Vertex transverse distance from the beam line. | |
| float | eta () const |
| Vertex pseudorapidity. | |
| float | phi () const |
| Vertex azimuthal angle. | |
| float | t () const |
| Vertex time. | |
| void | setT (float value) |
| Set the vertex time. | |
| FourVec_t | v4 () const |
| The full 4-vector of the vertex. | |
| GenVecFourVec_t | genvecV4 () const |
| The full 4-vector of the particle : GenVector form. | |
Class describing a truth vertex in the MC record.
The xAOD truth record mimicks the structure of HepMC. Truth particles and truth vertices form a decay tree. Where each truth particle is connected to a single production and decay vertex. And each vertex is connected to one or more incoming, and one or more outgoing particles.
Definition at line 37 of file TruthVertex_v1.h.
| typedef TLorentzVector xAOD::TruthVertex_v1::FourVec_t |
The 4-vector type.
Definition at line 129 of file TruthVertex_v1.h.
| typedef ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> > xAOD::TruthVertex_v1::GenVecFourVec_t |
Base 4 Momentum type for TruthVector.
Definition at line 135 of file TruthVertex_v1.h.
Type of one truth particle link.
Definition at line 62 of file TruthVertex_v1.h.
| typedef std::vector< TPLink_t > xAOD::TruthVertex_v1::TPLinks_t |
Type used to save the links to incoming and outgoing particles.
Definition at line 64 of file TruthVertex_v1.h.
| xAOD::TruthVertex_v1::TruthVertex_v1 | ( | ) |
Default constructor.
Definition at line 17 of file TruthVertex_v1.cxx.
Add one incoming particle.
Definition at line 88 of file TruthVertex_v1.cxx.
Add one outgoing particle.
Definition at line 138 of file TruthVertex_v1.cxx.
| void xAOD::TruthVertex_v1::clearIncomingParticleLinks | ( | ) |
Remove all incoming particles.
Definition at line 94 of file TruthVertex_v1.cxx.
| void xAOD::TruthVertex_v1::clearOutgoingParticleLinks | ( | ) |
Remove all outgoing particles.
Definition at line 144 of file TruthVertex_v1.cxx.
| float xAOD::TruthVertex_v1::eta | ( | ) | const |
Vertex pseudorapidity.
Definition at line 171 of file TruthVertex_v1.cxx.
| TruthVertex_v1::GenVecFourVec_t xAOD::TruthVertex_v1::genvecV4 | ( | ) | const |
The full 4-vector of the particle : GenVector form.
Definition at line 189 of file TruthVertex_v1.cxx.
| const TruthParticle * xAOD::TruthVertex_v1::incomingParticle | ( | size_t | index | ) | const |
Get one of the incoming particles.
Definition at line 70 of file TruthVertex_v1.cxx.
Get all the incoming particles.
| size_t xAOD::TruthVertex_v1::nIncomingParticles | ( | ) | const |
Get the number of incoming particles.
| size_t xAOD::TruthVertex_v1::nOutgoingParticles | ( | ) | const |
Get the number of outgoing particles.
| const TruthParticle * xAOD::TruthVertex_v1::outgoingParticle | ( | size_t | index | ) | const |
Get one of the outgoing particles.
Definition at line 120 of file TruthVertex_v1.cxx.
Get all the outgoing particles.
| std::vector< const TruthParticle * > xAOD::TruthVertex_v1::particles_in | ( | ) | const |
Get the incoming particles.
Definition at line 60 of file TruthVertex_v1.cxx.
| std::vector< const TruthParticle * > xAOD::TruthVertex_v1::particles_out | ( | ) | const |
Get the outgoing particles.
Definition at line 65 of file TruthVertex_v1.cxx.
| float xAOD::TruthVertex_v1::perp | ( | ) | const |
| float xAOD::TruthVertex_v1::phi | ( | ) | const |
Vertex azimuthal angle.
Definition at line 177 of file TruthVertex_v1.cxx.
Set all the incoming particles.
Set all the outgoing particles.
| void xAOD::TruthVertex_v1::setZ | ( | float | value | ) |
Set the vertex's longitudinal distance from the origin.
| int xAOD::TruthVertex_v1::status | ( | ) | const |
Get the vertex status.
| void xAOD::TruthVertex_v1::toPersistent | ( | ) |
Function making sure that the object is ready for persistification.
Definition at line 201 of file TruthVertex_v1.cxx.
| Type::ObjectType xAOD::TruthVertex_v1::type | ( | ) | const |
The type of the object as a simple enumeration.
Definition at line 196 of file TruthVertex_v1.cxx.
| int xAOD::TruthVertex_v1::uid | ( | ) | const |
Get the vertex unique ID.
| TruthVertex_v1::FourVec_t xAOD::TruthVertex_v1::v4 | ( | ) | const |
The full 4-vector of the vertex.
Definition at line 185 of file TruthVertex_v1.cxx.
| float xAOD::TruthVertex_v1::z | ( | ) | const |
Vertex longitudinal distance along the beam line form the origin.