![]() |
ATLAS Offline Software
|
Base class describing a pile-up or signal truth event in the MC record. More...
#include <TruthEventBase_v1.h>
Public Member Functions | |
| TruthEventBase_v1 () | |
| Default constructor. | |
| virtual | ~TruthEventBase_v1 () |
| Virtual destructor, to make vtable happy. | |
| virtual Type::ObjectType | type () const =0 |
| The type of the object as a simple enumeration. | |
| void | toPersistent () |
| Function making sure that the object is ready for persistification. | |
Access to all the particles associated with the event | |
| typedef ElementLink< TruthParticleContainer > | TruthParticleLink_t |
| Type of a single truth particle link. | |
| typedef std::vector< TruthParticleLink_t > | TruthParticleLinks_t |
| Type of the truth particle links vector. | |
| const TruthParticleLinks_t & | truthParticleLinks () const |
| Get all the truth particles. | |
| void | setTruthParticleLinks (const TruthParticleLinks_t &plinks) |
| Set all the truth particles. | |
| size_t | nTruthParticles () const |
| Get the number of truth particles. | |
| const TruthParticleLink_t & | truthParticleLink (size_t index) const |
| Get the link to one of the truth particles. | |
| const TruthParticle * | truthParticle (size_t index) const |
| Get a pointer to one of the truth particles. | |
| void | addTruthParticleLink (const TruthParticleLink_t &plink) |
| Add one truth particle. | |
| void | clearTruthParticleLinks () |
| Remove all truth particles. | |
Access to all the vertices associated with the event | |
| typedef ElementLink< TruthVertexContainer > | TruthVertexLink_t |
| Type of a single truth vertex link. | |
| typedef std::vector< TruthVertexLink_t > | TruthVertexLinks_t |
| Type of the truth particle links vector. | |
| const TruthVertexLinks_t & | truthVertexLinks () const |
| Get all the truth vertices. | |
| void | setTruthVertexLinks (const TruthVertexLinks_t &links) |
| Set all the truth vertices. | |
| size_t | nTruthVertices () const |
| Get the number of truth vertices. | |
| const TruthVertexLink_t & | truthVertexLink (size_t index) const |
| Get the link to one of the truth vertices. | |
| const TruthVertex * | truthVertex (size_t index) const |
| Get a pointer to one of the truth vertices. | |
| void | addTruthVertexLink (const TruthVertexLink_t &vlink) |
| Add one truth vertex. | |
| void | clearTruthVertexLinks () |
| Remove all truth vertices. | |
Base class describing a pile-up or signal truth event in the MC record.
Provides access to particles and vertices, but no extra event info since this is different for signal and pile-up events.
Definition at line 36 of file TruthEventBase_v1.h.
Type of a single truth particle link.
Definition at line 48 of file TruthEventBase_v1.h.
| typedef std::vector< TruthParticleLink_t > xAOD::TruthEventBase_v1::TruthParticleLinks_t |
Type of the truth particle links vector.
Definition at line 50 of file TruthEventBase_v1.h.
Type of a single truth vertex link.
Definition at line 73 of file TruthEventBase_v1.h.
| typedef std::vector< TruthVertexLink_t > xAOD::TruthEventBase_v1::TruthVertexLinks_t |
Type of the truth particle links vector.
Definition at line 75 of file TruthEventBase_v1.h.
| xAOD::TruthEventBase_v1::TruthEventBase_v1 | ( | ) |
Default constructor.
Definition at line 15 of file TruthEventBase_v1.cxx.
|
inlinevirtual |
| void xAOD::TruthEventBase_v1::addTruthParticleLink | ( | const TruthParticleLink_t & | plink | ) |
Add one truth particle.
Definition at line 68 of file TruthEventBase_v1.cxx.
| void xAOD::TruthEventBase_v1::addTruthVertexLink | ( | const TruthVertexLink_t & | vlink | ) |
Add one truth vertex.
Definition at line 129 of file TruthEventBase_v1.cxx.
| void xAOD::TruthEventBase_v1::clearTruthParticleLinks | ( | ) |
Remove all truth particles.
Definition at line 74 of file TruthEventBase_v1.cxx.
| void xAOD::TruthEventBase_v1::clearTruthVertexLinks | ( | ) |
Remove all truth vertices.
Definition at line 135 of file TruthEventBase_v1.cxx.
| size_t xAOD::TruthEventBase_v1::nTruthParticles | ( | ) | const |
Get the number of truth particles.
| size_t xAOD::TruthEventBase_v1::nTruthVertices | ( | ) | const |
Get the number of truth vertices.
| void xAOD::TruthEventBase_v1::setTruthParticleLinks | ( | const TruthParticleLinks_t & | plinks | ) |
Set all the truth particles.
| void xAOD::TruthEventBase_v1::setTruthVertexLinks | ( | const TruthVertexLinks_t & | links | ) |
Set all the truth vertices.
| void xAOD::TruthEventBase_v1::toPersistent | ( | ) |
Function making sure that the object is ready for persistification.
Definition at line 143 of file TruthEventBase_v1.cxx.
| const TruthParticle * xAOD::TruthEventBase_v1::truthParticle | ( | size_t | index | ) | const |
Get a pointer to one of the truth particles.
Definition at line 50 of file TruthEventBase_v1.cxx.
| const TruthEventBase_v1::TruthParticleLink_t & xAOD::TruthEventBase_v1::truthParticleLink | ( | size_t | index | ) | const |
Get the link to one of the truth particles.
Definition at line 45 of file TruthEventBase_v1.cxx.
| const TruthParticleLinks_t & xAOD::TruthEventBase_v1::truthParticleLinks | ( | ) | const |
Get all the truth particles.
| const TruthVertex * xAOD::TruthEventBase_v1::truthVertex | ( | size_t | index | ) | const |
Get a pointer to one of the truth vertices.
Definition at line 112 of file TruthEventBase_v1.cxx.
| const TruthEventBase_v1::TruthVertexLink_t & xAOD::TruthEventBase_v1::truthVertexLink | ( | size_t | index | ) | const |
Get the link to one of the truth vertices.
Definition at line 107 of file TruthEventBase_v1.cxx.
| const TruthVertexLinks_t & xAOD::TruthEventBase_v1::truthVertexLinks | ( | ) | const |
Get all the truth vertices.
|
pure virtual |
The type of the object as a simple enumeration.
Implemented in xAOD::TruthEvent_v1, and xAOD::TruthPileupEvent_v1.