![]() |
ATLAS Offline Software
|
Class describing a signal truth event in the MC record. More...
#include <TruthEvent_v1.h>
Classes | |
| struct | PdfInfo |
| Helper struct holding a full set of PDF info values. More... | |
Public Member Functions | |
| TruthEvent_v1 () | |
| Default constructor. | |
| virtual 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. | |
Simple event properties | |
| const std::vector< float > & | weights () const |
| Const access to the weights vector. | |
| void | setWeights (const std::vector< float > &weights) |
| Set the event weights. | |
| float | crossSection () const |
| Get the cross section. | |
| void | setCrossSection (float value) |
| Set the cross-section. | |
| float | crossSectionError () const |
| Get the cross section error. | |
| void | setCrossSectionError (float value) |
| Set the cross-section error. | |
| void | setCrossSection (float value, float error) |
| Set the cross-section and its error. | |
Parton density info | |
Optional due to particle gun & NLO events where a single PDF info doesn't work. | |
| enum | PdfParam { PDGID1 = 0 , PDGID2 = 1 , PDFID1 = 2 , PDFID2 = 3 , X1 = 4 , X2 = 5 , SCALE = 6 , Q = 6 , PDF1 = 7 , PDF2 = 8 , XF1 = 7 , XF2 = 8 } |
| Accessor enums for PDF info parameter lookup. More... | |
| bool | pdfInfoParameter (int &value, PdfParam parameter) const |
| Read an integer PDF info parameter. | |
| bool | pdfInfoParameter (float &value, PdfParam parameter) const |
| Read a floating point PDF info parameter. | |
| bool | setPdfInfoParameter (int value, PdfParam parameter) |
| Set an integer PDF info parameter. | |
| bool | setPdfInfoParameter (float value, PdfParam parameter) |
| Set a floating point PDF info parameter. | |
| PdfInfo | pdfInfo () const |
| Retrieve a full PdfInfo with a single call. | |
Heavy ion info | |
| enum | HIParam { NCOLLHARD = 0 , NPARTPROJ = 1 , NPARTTARG = 2 , NCOLL = 3 , SPECTATORNEUTRONS = 4 , SPECTATORPROTONS = 5 , NNWOUNDEDCOLLISIONS = 6 , NWOUNDEDNCOLLISIONS = 7 , NWOUNDEDNWOUNDEDCOLLISIONS = 8 , IMPACTPARAMETER = 9 , EVENTPLANEANGLE = 10 , ECCENTRICITY = 11 , SIGMAINELNN = 12 , CENTRALITY = 13 } |
| Heavy ion parameter enum. More... | |
| bool | heavyIonParameter (int &value, HIParam parameter) const |
| Read an integer HI parameter. | |
| bool | heavyIonParameter (float &value, HIParam parameter) const |
| Read a floating point HI parameter. | |
| bool | setHeavyIonParameter (int value, HIParam parameter) |
| Set an integer HI parameter. | |
| bool | setHeavyIonParameter (float value, HIParam parameter) |
| Set a floating point HI parameter. | |
Links to particles and vertices in the event | |
| typedef ElementLink< TruthVertexContainer > | TruthVertexLink_t |
| Type of the links pointing at truth vertices. | |
| typedef ElementLink< TruthParticleContainer > | TruthParticleLink_t |
| Type of the links pointing at truth particles. | |
| const TruthVertex * | signalProcessVertex () const |
| Pointer to a vertex representing the primary beam interaction point. | |
| const TruthVertexLink_t & | signalProcessVertexLink () const |
| Link to the vertex representing the primary beam interaction point. | |
| void | setSignalProcessVertexLink (const TruthVertexLink_t &link) |
| Set pointer to a vertex representing the primary beam interaction point. | |
| std::pair< const TruthParticle *, const TruthParticle * > | beamParticles () const |
| Pair of pointers to the two incoming beam particles. | |
| void | setBeamParticleLinks (const TruthParticleLink_t &pcl1, const TruthParticleLink_t &pcl2) |
| Set incoming beam particles. | |
| const TruthParticleLink_t & | beamParticle1Link () const |
| Get the link to the first incoming beam particle. | |
| void | setBeamParticle1Link (const TruthParticleLink_t &pcl1) |
| Set one incoming beam particle. | |
| const TruthParticleLink_t & | beamParticle2Link () const |
| Get the link to the second incoming beam particle. | |
| void | setBeamParticle2Link (const TruthParticleLink_t &pcl2) |
| Set one incoming beam particle. | |
Access to all the particles associated with the event | |
| 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 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. | |
Class describing a signal truth event in the MC record.
Definition at line 35 of file TruthEvent_v1.h.
Type of the links pointing at truth particles.
Definition at line 177 of file TruthEvent_v1.h.
|
inherited |
Type of the truth particle links vector.
Definition at line 50 of file TruthEventBase_v1.h.
Type of the links pointing at truth vertices.
Definition at line 163 of file TruthEvent_v1.h.
|
inherited |
Type of the truth particle links vector.
Definition at line 75 of file TruthEventBase_v1.h.
Heavy ion parameter enum.
Definition at line 130 of file TruthEvent_v1.h.
Accessor enums for PDF info parameter lookup.
| Enumerator | |
|---|---|
| PDGID1 | [int] |
| PDGID2 | [int] |
| PDFID1 | [int] |
| PDFID2 | [int] |
| X1 | [float] |
| X2 | [float] |
| SCALE | Not implemented!!! |
| Q | [float] |
| PDF1 | Not implemented!!! |
| PDF2 | Not implemented!!! |
| XF1 | [float] |
| XF2 | [float] |
Definition at line 74 of file TruthEvent_v1.h.
| xAOD::TruthEvent_v1::TruthEvent_v1 | ( | ) |
Default constructor.
Definition at line 20 of file TruthEvent_v1.cxx.
|
inherited |
Add one truth particle.
Definition at line 68 of file TruthEventBase_v1.cxx.
|
inherited |
Add one truth vertex.
Definition at line 129 of file TruthEventBase_v1.cxx.
| const TruthParticleLink_t & xAOD::TruthEvent_v1::beamParticle1Link | ( | ) | const |
Get the link to the first incoming beam particle.
| const TruthParticleLink_t & xAOD::TruthEvent_v1::beamParticle2Link | ( | ) | const |
Get the link to the second incoming beam particle.
| std::pair< const TruthParticle *, const TruthParticle * > xAOD::TruthEvent_v1::beamParticles | ( | ) | const |
Pair of pointers to the two incoming beam particles.
Definition at line 226 of file TruthEvent_v1.cxx.
|
inherited |
Remove all truth particles.
Definition at line 74 of file TruthEventBase_v1.cxx.
|
inherited |
Remove all truth vertices.
Definition at line 135 of file TruthEventBase_v1.cxx.
| float xAOD::TruthEvent_v1::crossSection | ( | ) | const |
Get the cross section.
| float xAOD::TruthEvent_v1::crossSectionError | ( | ) | const |
Get the cross section error.
Read a floating point HI parameter.
Definition at line 150 of file TruthEvent_v1.cxx.
Read an integer HI parameter.
Definition at line 138 of file TruthEvent_v1.cxx.
|
inherited |
Get the number of truth particles.
|
inherited |
Get the number of truth vertices.
| TruthEvent_v1::PdfInfo xAOD::TruthEvent_v1::pdfInfo | ( | ) | const |
Retrieve a full PdfInfo with a single call.
Definition at line 114 of file TruthEvent_v1.cxx.
Read a floating point PDF info parameter.
Definition at line 63 of file TruthEvent_v1.cxx.
Read an integer PDF info parameter.
Definition at line 51 of file TruthEvent_v1.cxx.
| void xAOD::TruthEvent_v1::setBeamParticle1Link | ( | const TruthParticleLink_t & | pcl1 | ) |
Set one incoming beam particle.
| void xAOD::TruthEvent_v1::setBeamParticle2Link | ( | const TruthParticleLink_t & | pcl2 | ) |
Set one incoming beam particle.
| void xAOD::TruthEvent_v1::setBeamParticleLinks | ( | const TruthParticleLink_t & | pcl1, |
| const TruthParticleLink_t & | pcl2 ) |
Set incoming beam particles.
Definition at line 250 of file TruthEvent_v1.cxx.
Set the cross-section and its error.
Set a floating point HI parameter.
Definition at line 174 of file TruthEvent_v1.cxx.
Definition at line 162 of file TruthEvent_v1.cxx.
Set a floating point PDF info parameter.
Definition at line 87 of file TruthEvent_v1.cxx.
Set an integer PDF info parameter.
Definition at line 75 of file TruthEvent_v1.cxx.
| void xAOD::TruthEvent_v1::setSignalProcessVertexLink | ( | const TruthVertexLink_t & | link | ) |
Set pointer to a vertex representing the primary beam interaction point.
|
inherited |
Set all the truth particles.
|
inherited |
Set all the truth vertices.
Set the event weights.
| const TruthVertex * xAOD::TruthEvent_v1::signalProcessVertex | ( | ) | const |
Pointer to a vertex representing the primary beam interaction point.
The naming of the function is a bit misleading. The returned vertex can only be interpreted as an interaction position.
Definition at line 195 of file TruthEvent_v1.cxx.
| const TruthVertexLink_t & xAOD::TruthEvent_v1::signalProcessVertexLink | ( | ) | const |
Link to the vertex representing the primary beam interaction point.
| void xAOD::TruthEvent_v1::toPersistent | ( | ) |
Function making sure that the object is ready for persistification.
Definition at line 274 of file TruthEvent_v1.cxx.
|
inherited |
Get a pointer to one of the truth particles.
Definition at line 50 of file TruthEventBase_v1.cxx.
|
inherited |
Get the link to one of the truth particles.
Definition at line 45 of file TruthEventBase_v1.cxx.
|
inherited |
Get all the truth particles.
|
inherited |
Get a pointer to one of the truth vertices.
Definition at line 112 of file TruthEventBase_v1.cxx.
|
inherited |
Get the link to one of the truth vertices.
Definition at line 107 of file TruthEventBase_v1.cxx.
|
inherited |
Get all the truth vertices.
|
virtual |
The type of the object as a simple enumeration.
Implements xAOD::TruthEventBase_v1.
Definition at line 269 of file TruthEvent_v1.cxx.
Const access to the weights vector.