8#ifndef XAODTRUTH_VERSIONS_TRUTHEVENT_V1_H
9#define XAODTRUTH_VERSIONS_TRUTHEVENT_V1_H
17#include "AthLinks/ElementLink.h"
46 const std::vector< float >&
weights()
const;
180 std::pair< const TruthParticle*, const TruthParticle* >
200 virtual Type::ObjectType
type()
const;
Base class for elements of a container that can have aux data.
#define SG_BASE(D, B)
Declare that class D derives from class B.
An STL vector of pointers that by default owns its pointed-to elements.
#define DATAVECTOR_BASE(T, BASE)
Declare base class info to DataVector.
Base class describing a pile-up or signal truth event in the MC record.
TruthEventBase_v1()
Default constructor.
Class describing a signal truth event in the MC record.
PdfInfo pdfInfo() const
Retrieve a full PdfInfo with a single call.
const std::vector< float > & weights() const
Const access to the weights vector.
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 TruthParticleLink_t & beamParticle2Link() const
Get the link to the second incoming beam particle.
void setWeights(const std::vector< float > &weights)
Set the event weights.
void setBeamParticleLinks(const TruthParticleLink_t &pcl1, const TruthParticleLink_t &pcl2)
Set incoming beam particles.
float crossSectionError() const
Get the cross section error.
void setSignalProcessVertexLink(const TruthVertexLink_t &link)
Set pointer to a vertex representing the primary beam interaction point.
ElementLink< TruthVertexContainer > TruthVertexLink_t
Type of the links pointing at truth vertices.
void setCrossSectionError(float value)
Set the cross-section error.
PdfParam
Accessor enums for PDF info parameter lookup.
@ SCALE
Not implemented!!!
void setCrossSection(float value)
Set the cross-section.
TruthEvent_v1()
Default constructor.
const TruthVertexLink_t & signalProcessVertexLink() const
Link to the vertex representing the primary beam interaction point.
void setCrossSection(float value, float error)
Set the cross-section and its error.
bool pdfInfoParameter(int &value, PdfParam parameter) const
Read an integer PDF info parameter.
void toPersistent()
Function making sure that the object is ready for persistification.
bool setHeavyIonParameter(int value, HIParam parameter)
Set an integer HI parameter.
bool heavyIonParameter(int &value, HIParam parameter) const
Read an integer HI parameter.
bool setPdfInfoParameter(int value, PdfParam parameter)
Set an integer PDF info parameter.
std::pair< const TruthParticle *, const TruthParticle * > beamParticles() const
Pair of pointers to the two incoming beam particles.
HIParam
Heavy ion parameter enum.
@ NWOUNDEDNWOUNDEDCOLLISIONS
[int]
@ NNWOUNDEDCOLLISIONS
[int]
@ NWOUNDEDNCOLLISIONS
[int]
void setBeamParticle1Link(const TruthParticleLink_t &pcl1)
Set one incoming beam particle.
virtual Type::ObjectType type() const
The type of the object as a simple enumeration.
float crossSection() const
Get the cross section.
const TruthParticleLink_t & beamParticle1Link() const
Get the link to the first incoming beam particle.
void setBeamParticle2Link(const TruthParticleLink_t &pcl2)
Set one incoming beam particle.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
TruthVertex_v1 TruthVertex
Typedef to implementation.
Helper struct holding a full set of PDF info values.
bool valid() const
Check if all the variables in the object are valid.
PdfInfo()
Constructor to set (invalid) defaults.