37 setCrossSectionError )
41 setCrossSection( value );
42 setCrossSectionError(
error );
56 if( !
acc )
return false;
59 value = ( *acc )( *this );
68 if( !
acc )
return false;
71 value = ( *acc )( *this );
80 if( !
acc )
return false;
83 ( *acc )( *this ) = value;
92 if( !
acc )
return false;
95 ( *acc )( *this ) = value;
101 x1( NAN ),
x2( NAN ),
Q( NAN ),
xf1( NAN ),
xf2( NAN ) {
109 ( ! std::isnan(
x1 ) ) && ( ! std::isnan(
x2 ) ) &&
110 ( ! std::isnan(
Q ) ) &&
111 ( ! std::isnan(
xf1 ) ) && ( ! std::isnan(
xf2 ) ) );
143 if( !
acc )
return false;
146 value = ( *acc )( *this );
155 if( !
acc )
return false;
158 value = ( *acc )( *this );
167 if( !
acc )
return false;
170 ( *acc )( *this ) = value;
179 if( !
acc )
return false;
182 ( *acc )( *this ) = value;
221 beamParticle1LinkAcc(
"beamParticle1Link" );
225 std::pair< const TruthParticle*, const TruthParticle* >
230 if( beamParticle1LinkAcc.isAvailable( *
this ) ) {
247 return std::make_pair( p1, p2 );
271 return Type::TruthEvent;
276 if( beamParticle1LinkAcc.isAvailableWritable( *
this ) ) {
277 beamParticle1LinkAcc( *this ).toPersistent();
#define AUXSTORE_OBJECT_SETTER_AND_GETTER(CL, TYPE, NAME, SETTER)
Macro creating the accessors of complex auxiliary properties.
bool isValid() const
Test to see if the link can be dereferenced.
SG::Accessor< T, ALLOC > Accessor
TruthEventBase_v1()
Default constructor.
void toPersistent()
Function making sure that the object is ready for persistification.
Class describing a signal truth event in the MC record.
PdfInfo pdfInfo() const
Retrieve a full PdfInfo with a single call.
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.
void setBeamParticleLinks(const TruthParticleLink_t &pcl1, const TruthParticleLink_t &pcl2)
Set incoming beam particles.
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.
PdfParam
Accessor enums for PDF info parameter lookup.
TruthEvent_v1()
Default constructor.
const TruthVertexLink_t & signalProcessVertexLink() const
Link to the vertex representing the primary beam interaction point.
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.
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.
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.
const SG::AuxElement::Accessor< int > * pdfInfoAccessorV1Int(TruthEvent_v1::PdfParam type)
Helper function for getting accessors for integer type PDF information.
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")
const SG::AuxElement::Accessor< int > * heavyIonAccessorV1Int(TruthEvent_v1::HIParam type)
Helper function for getting accessors for integer type HI information.
TruthVertex_v1 TruthVertex
Typedef to implementation.
const SG::AuxElement::Accessor< float > * pdfInfoAccessorV1Float(TruthEvent_v1::PdfParam type)
Helper function for getting accessors for floating point PDF information.
TruthParticle_v1 TruthParticle
Typedef to implementation.
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1, float, IP2D_pb, setIP2D_pb) AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1
static const SG::AuxElement::Accessor< ElementLink< IParticleContainer > > acc("originalObjectLink")
Object used for setting/getting the dynamic decoration in question.
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< TruthEvent_v1::TruthVertexLink_t > signalProcessVertexLinkAcc("signalProcessVertexLink")
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.