ATLAS Offline Software
Loading...
Searching...
No Matches
xAOD::TruthEvent_v1 Class Reference

Class describing a signal truth event in the MC record. More...

#include <TruthEvent_v1.h>

Inheritance diagram for xAOD::TruthEvent_v1:
Collaboration diagram for xAOD::TruthEvent_v1:

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< TruthVertexContainerTruthVertexLink_t
 Type of the links pointing at truth vertices.
typedef ElementLink< TruthParticleContainerTruthParticleLink_t
 Type of the links pointing at truth particles.
const TruthVertexsignalProcessVertex () const
 Pointer to a vertex representing the primary beam interaction point.
const TruthVertexLink_tsignalProcessVertexLink () 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_tbeamParticle1Link () const
 Get the link to the first incoming beam particle.
void setBeamParticle1Link (const TruthParticleLink_t &pcl1)
 Set one incoming beam particle.
const TruthParticleLink_tbeamParticle2Link () 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_tTruthParticleLinks_t
 Type of the truth particle links vector.
const TruthParticleLinks_ttruthParticleLinks () 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_ttruthParticleLink (size_t index) const
 Get the link to one of the truth particles.
const TruthParticletruthParticle (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_tTruthVertexLinks_t
 Type of the truth particle links vector.
const TruthVertexLinks_ttruthVertexLinks () 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_ttruthVertexLink (size_t index) const
 Get the link to one of the truth vertices.
const TruthVertextruthVertex (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.

Detailed Description

Class describing a signal truth event in the MC record.

Author
Jovan Mitervski Jovan.nosp@m..Mit.nosp@m.revsk.nosp@m.i@ce.nosp@m.rn.ch
Andy Buckley Andy..nosp@m.Buck.nosp@m.ley@c.nosp@m.ern..nosp@m.ch
Revision
761796
Date
2016-07-14 10:06:02 +0200 (Thu, 14 Jul 2016)

Definition at line 35 of file TruthEvent_v1.h.

Member Typedef Documentation

◆ TruthParticleLink_t

Type of the links pointing at truth particles.

Definition at line 177 of file TruthEvent_v1.h.

◆ TruthParticleLinks_t

Type of the truth particle links vector.

Definition at line 50 of file TruthEventBase_v1.h.

◆ TruthVertexLink_t

Type of the links pointing at truth vertices.

Definition at line 163 of file TruthEvent_v1.h.

◆ TruthVertexLinks_t

Type of the truth particle links vector.

Definition at line 75 of file TruthEventBase_v1.h.

Member Enumeration Documentation

◆ HIParam

Heavy ion parameter enum.

Enumerator
NCOLLHARD 

[int]

NPARTPROJ 

[int]

NPARTTARG 

[int]

NCOLL 

[int]

SPECTATORNEUTRONS 

[int]

SPECTATORPROTONS 

[int]

NNWOUNDEDCOLLISIONS 

[int]

NWOUNDEDNCOLLISIONS 

[int]

NWOUNDEDNWOUNDEDCOLLISIONS 

[int]

IMPACTPARAMETER 

[float]

EVENTPLANEANGLE 

[float]

ECCENTRICITY 

[float]

SIGMAINELNN 

[float]

CENTRALITY 

[float]

Definition at line 130 of file TruthEvent_v1.h.

130 {
131 NCOLLHARD = 0,
132 NPARTPROJ = 1,
133 NPARTTARG = 2,
134 NCOLL = 3,
136 SPECTATORPROTONS = 5,
140 IMPACTPARAMETER = 9,
141 EVENTPLANEANGLE = 10,
142 ECCENTRICITY = 11,
143 SIGMAINELNN = 12,
144 CENTRALITY = 13,
145 }; // enum HIParam
@ NWOUNDEDNWOUNDEDCOLLISIONS
[int]

◆ PdfParam

Accessor enums for PDF info parameter lookup.

Enumerator
PDGID1 

[int]

PDGID2 

[int]

PDFID1 

[int]

PDFID2 

[int]

X1 

[float]

X2 

[float]

SCALE 

Not implemented!!!

[float]

PDF1 

Not implemented!!!

PDF2 

Not implemented!!!

XF1 

[float]

XF2 

[float]

Definition at line 74 of file TruthEvent_v1.h.

74 {
75 PDGID1 = 0,
76 PDGID2 = 1,
77 PDFID1 = 2,
78 PDFID2 = 3,
79 X1 = 4,
80 X2 = 5,
81 SCALE = 6,
82 Q = 6,
83 PDF1 = 7,
84 PDF2 = 8,
85 XF1 = 7,
86 XF2 = 8
87 }; // enum PdfParam
@ PDF2
Not implemented!!!
@ SCALE
Not implemented!!!
@ PDF1
Not implemented!!!

Constructor & Destructor Documentation

◆ TruthEvent_v1()

xAOD::TruthEvent_v1::TruthEvent_v1 ( )

Default constructor.

Definition at line 20 of file TruthEvent_v1.cxx.

22
23 }
TruthEventBase_v1()
Default constructor.

Member Function Documentation

◆ addTruthParticleLink()

void xAOD::TruthEventBase_v1::addTruthParticleLink ( const TruthParticleLink_t & plink)
inherited

Add one truth particle.

Definition at line 68 of file TruthEventBase_v1.cxx.

68 {
69
70 truthParticleLinksAcc( *this ).push_back( link );
71 return;
72 }

◆ addTruthVertexLink()

void xAOD::TruthEventBase_v1::addTruthVertexLink ( const TruthVertexLink_t & vlink)
inherited

Add one truth vertex.

Definition at line 129 of file TruthEventBase_v1.cxx.

129 {
130
131 truthVertexLinksAcc( *this ).push_back( link );
132 return;
133 }

◆ beamParticle1Link()

const TruthParticleLink_t & xAOD::TruthEvent_v1::beamParticle1Link ( ) const

Get the link to the first incoming beam particle.

◆ beamParticle2Link()

const TruthParticleLink_t & xAOD::TruthEvent_v1::beamParticle2Link ( ) const

Get the link to the second incoming beam particle.

◆ beamParticles()

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.

226 {
227
228 // Get the pointer to the first beam particle:
229 const TruthParticle* p1 = nullptr;
230 if( beamParticle1LinkAcc.isAvailable( *this ) ) {
231 const TruthParticleLink_t& link = beamParticle1LinkAcc( *this );
232 if( link.isValid() ) {
233 p1 = *link;
234 }
235 }
236
237 // Get the pointer to the second beam particle:
238 const TruthParticle* p2 = nullptr;
239 if( beamParticle2LinkAcc.isAvailable( *this ) ) {
241 if( link.isValid() ) {
242 p2 = *link;
243 }
244 }
245
246 // Construct the returned object:
247 return std::make_pair( p1, p2 );
248 }
ElementLink< TruthParticleContainer > TruthParticleLink_t
Type of the links pointing at truth particles.
pointer & link(pointer p) const
Return a reference to the link for an element.
static AUXSTORE_OBJECT_SETTER_AND_GETTER(TruthEvent_v1, TruthEvent_v1::TruthVertexLink_t, signalProcessVertexLink, setSignalProcessVertexLink) static const SG const SG::AuxElement::Accessor< TruthEvent_v1::TruthParticleLink_t > beamParticle2LinkAcc("beamParticle2Link")
TruthParticle_v1 TruthParticle
Typedef to implementation.

◆ clearTruthParticleLinks()

void xAOD::TruthEventBase_v1::clearTruthParticleLinks ( )
inherited

Remove all truth particles.

Definition at line 74 of file TruthEventBase_v1.cxx.

74 {
75
76 truthParticleLinksAcc( *this ).clear();
77 return;
78 }

◆ clearTruthVertexLinks()

void xAOD::TruthEventBase_v1::clearTruthVertexLinks ( )
inherited

Remove all truth vertices.

Definition at line 135 of file TruthEventBase_v1.cxx.

135 {
136
137 truthVertexLinksAcc( *this ).clear();
138 return;
139 }

◆ crossSection()

float xAOD::TruthEvent_v1::crossSection ( ) const

Get the cross section.

◆ crossSectionError()

float xAOD::TruthEvent_v1::crossSectionError ( ) const

Get the cross section error.

◆ heavyIonParameter() [1/2]

bool xAOD::TruthEvent_v1::heavyIonParameter ( float & value,
HIParam parameter ) const

Read a floating point HI parameter.

Definition at line 150 of file TruthEvent_v1.cxx.

151 {
152
153 // Look for the accessor object:
154 const auto * acc = heavyIonAccessorV1Float( information );
155 if( ! acc ) return false;
156
157 // Get the value:
158 value = ( *acc )( *this );
159 return true;
160 }
const SG::AuxElement::Accessor< float > * heavyIonAccessorV1Float(TruthEvent_v1::HIParam type)
Helper function for getting accessors for floating point HI information.
static const SG::AuxElement::Accessor< ElementLink< IParticleContainer > > acc("originalObjectLink")
Object used for setting/getting the dynamic decoration in question.

◆ heavyIonParameter() [2/2]

bool xAOD::TruthEvent_v1::heavyIonParameter ( int & value,
HIParam parameter ) const

Read an integer HI parameter.

Definition at line 138 of file TruthEvent_v1.cxx.

139 {
140
141 // Look for the accessor object:
142 const auto * acc = heavyIonAccessorV1Int( information );
143 if( ! acc ) return false;
144
145 // Get the value:
146 value = ( *acc )( *this );
147 return true;
148 }
const SG::AuxElement::Accessor< int > * heavyIonAccessorV1Int(TruthEvent_v1::HIParam type)
Helper function for getting accessors for integer type HI information.

◆ nTruthParticles()

size_t xAOD::TruthEventBase_v1::nTruthParticles ( ) const
inherited

Get the number of truth particles.

◆ nTruthVertices()

size_t xAOD::TruthEventBase_v1::nTruthVertices ( ) const
inherited

Get the number of truth vertices.

◆ pdfInfo()

TruthEvent_v1::PdfInfo xAOD::TruthEvent_v1::pdfInfo ( ) const

Retrieve a full PdfInfo with a single call.

Note
May have invalid values – use valid() to check.

Definition at line 114 of file TruthEvent_v1.cxx.

114 {
115
116 // The result object:
117 PdfInfo rtn;
118
119 // Retrieve all of its elements:
120 pdfInfoParameter( rtn.pdgId1, PDGID1 );
121 pdfInfoParameter( rtn.pdgId2, PDGID2 );
122 pdfInfoParameter( rtn.pdfId1, PDFID1 );
123 pdfInfoParameter( rtn.pdfId2, PDFID2 );
124 pdfInfoParameter( rtn.x1, X1 );
125 pdfInfoParameter( rtn.x2, X2 );
126 pdfInfoParameter( rtn.Q, Q );
127 pdfInfoParameter( rtn.xf1, XF1 );
128 pdfInfoParameter( rtn.xf2, XF2 );
129
130 return rtn;
131 }
bool pdfInfoParameter(int &value, PdfParam parameter) const
Read an integer PDF info parameter.
Helper struct holding a full set of PDF info values.

◆ pdfInfoParameter() [1/2]

bool xAOD::TruthEvent_v1::pdfInfoParameter ( float & value,
PdfParam parameter ) const

Read a floating point PDF info parameter.

Definition at line 63 of file TruthEvent_v1.cxx.

64 {
65
66 // Look for the accessor object:
67 const auto * acc = pdfInfoAccessorV1Float( information );
68 if( ! acc ) return false;
69
70 // Get the value:
71 value = ( *acc )( *this );
72 return true;
73 }
const SG::AuxElement::Accessor< float > * pdfInfoAccessorV1Float(TruthEvent_v1::PdfParam type)
Helper function for getting accessors for floating point PDF information.

◆ pdfInfoParameter() [2/2]

bool xAOD::TruthEvent_v1::pdfInfoParameter ( int & value,
PdfParam parameter ) const

Read an integer PDF info parameter.

Definition at line 51 of file TruthEvent_v1.cxx.

52 {
53
54 // Look for the accessor object:
55 const auto * acc = pdfInfoAccessorV1Int( information );
56 if( ! acc ) return false;
57
58 // Get the value:
59 value = ( *acc )( *this );
60 return true;
61 }
const SG::AuxElement::Accessor< int > * pdfInfoAccessorV1Int(TruthEvent_v1::PdfParam type)
Helper function for getting accessors for integer type PDF information.

◆ setBeamParticle1Link()

void xAOD::TruthEvent_v1::setBeamParticle1Link ( const TruthParticleLink_t & pcl1)

Set one incoming beam particle.

◆ setBeamParticle2Link()

void xAOD::TruthEvent_v1::setBeamParticle2Link ( const TruthParticleLink_t & pcl2)

Set one incoming beam particle.

◆ setBeamParticleLinks()

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.

251 {
252
253 setBeamParticle1Link( pcl1 );
254 setBeamParticle2Link( pcl2 );
255 return;
256 }
void setBeamParticle1Link(const TruthParticleLink_t &pcl1)
Set one incoming beam particle.
void setBeamParticle2Link(const TruthParticleLink_t &pcl2)
Set one incoming beam particle.

◆ setCrossSection() [1/2]

void xAOD::TruthEvent_v1::setCrossSection ( float value)

Set the cross-section.

◆ setCrossSection() [2/2]

void xAOD::TruthEvent_v1::setCrossSection ( float value,
float error )

Set the cross-section and its error.

◆ setCrossSectionError()

void xAOD::TruthEvent_v1::setCrossSectionError ( float value)

Set the cross-section error.

◆ setHeavyIonParameter() [1/2]

bool xAOD::TruthEvent_v1::setHeavyIonParameter ( float value,
HIParam parameter )

Set a floating point HI parameter.

Definition at line 174 of file TruthEvent_v1.cxx.

175 {
176
177 // Look for the accessor object:
178 const auto * acc = heavyIonAccessorV1Float( information );
179 if( ! acc ) return false;
180
181 // Set the value:
182 ( *acc )( *this ) = value;
183 return true;
184 }

◆ setHeavyIonParameter() [2/2]

bool xAOD::TruthEvent_v1::setHeavyIonParameter ( int value,
HIParam parameter )

Set an integer HI parameter.

Definition at line 162 of file TruthEvent_v1.cxx.

163 {
164
165 // Look for the accessor object:
166 const auto * acc = heavyIonAccessorV1Int( information );
167 if( ! acc ) return false;
168
169 // Set the value:
170 ( *acc )( *this ) = value;
171 return true;
172 }

◆ setPdfInfoParameter() [1/2]

bool xAOD::TruthEvent_v1::setPdfInfoParameter ( float value,
PdfParam parameter )

Set a floating point PDF info parameter.

Definition at line 87 of file TruthEvent_v1.cxx.

88 {
89
90 // Look for the accessor object:
91 const auto * acc = pdfInfoAccessorV1Float( information );
92 if( ! acc ) return false;
93
94 // Set the value:
95 ( *acc )( *this ) = value;
96 return true;
97 }

◆ setPdfInfoParameter() [2/2]

bool xAOD::TruthEvent_v1::setPdfInfoParameter ( int value,
PdfParam parameter )

Set an integer PDF info parameter.

Definition at line 75 of file TruthEvent_v1.cxx.

76 {
77
78 // Look for the accessor object:
79 const auto * acc = pdfInfoAccessorV1Int( information );
80 if( ! acc ) return false;
81
82 // Set the value:
83 ( *acc )( *this ) = value;
84 return true;
85 }

◆ setSignalProcessVertexLink()

void xAOD::TruthEvent_v1::setSignalProcessVertexLink ( const TruthVertexLink_t & link)

Set pointer to a vertex representing the primary beam interaction point.

◆ setTruthParticleLinks()

void xAOD::TruthEventBase_v1::setTruthParticleLinks ( const TruthParticleLinks_t & plinks)
inherited

Set all the truth particles.

◆ setTruthVertexLinks()

void xAOD::TruthEventBase_v1::setTruthVertexLinks ( const TruthVertexLinks_t & links)
inherited

Set all the truth vertices.

◆ setWeights()

void xAOD::TruthEvent_v1::setWeights ( const std::vector< float > & weights)

Set the event weights.

Todo
Need to add named weight access: vector<string>

◆ signalProcessVertex()

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.

195 {
196
197 // Check if the link variable is available:
198 if( ! signalProcessVertexLinkAcc.isAvailable( *this ) ) {
199 return nullptr;
200 }
201
202 // Get the link:
203 const TruthVertexLink_t& vertLink = signalProcessVertexLinkAcc( *this );
204
205 // Check if it's valid:
206 if( ! vertLink.isValid() ) {
207 return nullptr;
208 }
209
210 // Return the de-referenced link:
211 return *vertLink;
212 }
ElementLink< TruthVertexContainer > TruthVertexLink_t
Type of the links pointing at truth vertices.
static const SG::AuxElement::Accessor< TruthEvent_v1::TruthVertexLink_t > signalProcessVertexLinkAcc("signalProcessVertexLink")

◆ signalProcessVertexLink()

const TruthVertexLink_t & xAOD::TruthEvent_v1::signalProcessVertexLink ( ) const

Link to the vertex representing the primary beam interaction point.

◆ toPersistent()

void xAOD::TruthEvent_v1::toPersistent ( )

Function making sure that the object is ready for persistification.

Definition at line 274 of file TruthEvent_v1.cxx.

274 {
275
276 if( beamParticle1LinkAcc.isAvailableWritable( *this ) ) {
277 beamParticle1LinkAcc( *this ).toPersistent();
278 }
279 if( beamParticle2LinkAcc.isAvailableWritable( *this ) ) {
281 }
282 if( signalProcessVertexLinkAcc.isAvailableWritable( *this ) ) {
283 signalProcessVertexLinkAcc( *this ).toPersistent();
284 }
285
287 return;
288 }
void toPersistent()
Function making sure that the object is ready for persistification.
void toPersistent()
Function making sure that the object is ready for persistification.

◆ truthParticle()

const TruthParticle * xAOD::TruthEventBase_v1::truthParticle ( size_t index) const
inherited

Get a pointer to one of the truth particles.

Definition at line 50 of file TruthEventBase_v1.cxx.

50 {
51
52 // Check if the variable is available:
53 if( ! truthParticleLinksAcc.isAvailable( *this ) ) {
54 return nullptr;
55 }
56
57 // Check if the link is valid:
58 const TruthParticleLinks_t& links = truthParticleLinksAcc( *this );
59 if( ! links[ index ].isValid() ) {
60 return nullptr;
61 }
62
63 // Return the de-referenced link:
64 return *( links[ index ] );
65 }
std::vector< TruthParticleLink_t > TruthParticleLinks_t
Type of the truth particle links vector.
str index
Definition DeMoScan.py:362

◆ truthParticleLink()

const TruthEventBase_v1::TruthParticleLink_t & xAOD::TruthEventBase_v1::truthParticleLink ( size_t index) const
inherited

Get the link to one of the truth particles.

Definition at line 45 of file TruthEventBase_v1.cxx.

45 {
46
47 return truthParticleLinksAcc( *this ).at( index );
48 }

◆ truthParticleLinks()

const TruthParticleLinks_t & xAOD::TruthEventBase_v1::truthParticleLinks ( ) const
inherited

Get all the truth particles.

◆ truthVertex()

const TruthVertex * xAOD::TruthEventBase_v1::truthVertex ( size_t index) const
inherited

Get a pointer to one of the truth vertices.

Definition at line 112 of file TruthEventBase_v1.cxx.

112 {
113
114 // Check if the variable is available:
115 if( ! truthVertexLinksAcc.isAvailable( *this ) ) {
116 return nullptr;
117 }
118
119 // Check if the link is valid:
120 const TruthVertexLinks_t& links = truthVertexLinksAcc( *this );
121 if( ! links[ index ].isValid() ) {
122 return nullptr;
123 }
124
125 // Return the de-referenced link:
126 return *( links[ index ] );
127 }
std::vector< TruthVertexLink_t > TruthVertexLinks_t
Type of the truth particle links vector.

◆ truthVertexLink()

const TruthEventBase_v1::TruthVertexLink_t & xAOD::TruthEventBase_v1::truthVertexLink ( size_t index) const
inherited

Get the link to one of the truth vertices.

Definition at line 107 of file TruthEventBase_v1.cxx.

107 {
108
109 return truthVertexLinksAcc( *this ).at(index);
110 }

◆ truthVertexLinks()

const TruthVertexLinks_t & xAOD::TruthEventBase_v1::truthVertexLinks ( ) const
inherited

Get all the truth vertices.

◆ type()

setBeamParticle2Link Type::ObjectType xAOD::TruthEvent_v1::type ( ) const
virtual

The type of the object as a simple enumeration.

Implements xAOD::TruthEventBase_v1.

Definition at line 269 of file TruthEvent_v1.cxx.

269 {
270
271 return Type::TruthEvent;
272 }

◆ weights()

const std::vector< float > & xAOD::TruthEvent_v1::weights ( ) const

Const access to the weights vector.

Todo
Need to add the map-like interface for the weights: very important!

The documentation for this class was generated from the following files: