#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 | |
| void | setId (int value) | 
| Set vertex ID code. | |
| int | id () const | 
| Vertex ID code. | |
| void | setBarcode (int value) | 
| Set barcode. | |
| int | barcode () const | 
| Barcode. | |
| 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. | |
| 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. | |
| 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. | |
| const FourVec_t & | v4 () const | 
| The full 4-vector of the vertex. | |
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.
 1.6.1
 1.6.1