|
ATLAS Offline Software
|
Go to the documentation of this file.
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;
100 : pdgId1( 0 ), pdgId2( 0 ), pdfId1( -1 ), pdfId2( -1 ),
101 x1( NAN ),
x2( NAN ), Q( NAN ), xf1( NAN ), xf2( NAN ) {
107 return ( ( pdgId1 != 0 ) && ( pdgId2 != 0 ) &&
108 ( pdfId1 >= 0 ) && ( pdfId2 >= 0 ) &&
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;
193 signalProcessVertexLinkAcc(
"signalProcessVertexLink" );
198 if( ! signalProcessVertexLinkAcc.isAvailable( *
this ) ) {
221 beamParticle1LinkAcc(
"beamParticle1Link" );
223 beamParticle2LinkAcc(
"beamParticle2Link" );
225 std::pair< const TruthParticle*, const TruthParticle* >
230 if( beamParticle1LinkAcc.isAvailable( *
this ) ) {
247 return std::make_pair(
p1,
p2 );
276 if( beamParticle1LinkAcc.isAvailableWritable( *
this ) ) {
277 beamParticle1LinkAcc( *this ).toPersistent();
282 if( signalProcessVertexLinkAcc.isAvailableWritable( *
this ) ) {
283 signalProcessVertexLinkAcc( *this ).toPersistent();
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1, float, IP2D_pb, setIP2D_pb) AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1
bool pdfInfoParameter(int &value, PdfParam parameter) const
Read an integer PDF info parameter.
PdfInfo()
Constructor to set (invalid) defaults.
void toPersistent()
Function making sure that the object is ready for persistification.
void setSignalProcessVertexLink(const TruthVertexLink_t &link)
Set pointer to a vertex representing the primary beam interaction point.
void toPersistent()
Function making sure that the object is ready for persistification.
const SG::AuxElement::Accessor< float > * heavyIonAccessorV1Float(TruthEvent_v1::HIParam type)
Helper function for getting accessors for floating point HI information.
Helper class to provide type-safe access to aux data.
TruthEvent_v1 TruthEvent
Typedef to implementation.
void setBeamParticle2Link(const TruthParticleLink_t &pcl2)
Set one incoming beam particle.
bool heavyIonParameter(int &value, HIParam parameter) const
Read an integer HI parameter.
bool setHeavyIonParameter(int value, HIParam parameter)
Set an integer HI parameter.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
TruthEvent_v1()
Default constructor.
const TruthVertexLink_t & signalProcessVertexLink() const
Link to the vertex representing the primary beam interaction point.
PdfInfo pdfInfo() const
Retrieve a full PdfInfo with a single call.
XAOD_AUXDATA_DEPRECATED bool isAvailable(const std::string &name, const std::string &clsname="") const
Check if an aux variable is available for reading.
bool isValid() const
Test to see if the link can be dereferenced.
PdfParam
Accessor enums for PDF info parameter lookup.
const TruthParticleLink_t & beamParticle2Link() const
Get the link to the second incoming beam particle.
Class describing a truth particle in the MC record.
bool setPdfInfoParameter(int value, PdfParam parameter)
Set an integer PDF info parameter.
Class describing a signal truth event in the MC record.
const SG::AuxElement::Accessor< float > * pdfInfoAccessorV1Float(TruthEvent_v1::PdfParam type)
Helper function for getting accessors for floating point PDF information.
bool valid() const
Check if all the variables in the object are valid.
ElementLink implementation for ROOT usage.
Helper struct holding a full set of PDF info values.
Base class describing a pile-up or signal truth event in the MC record.
Class describing a truth vertex in the MC record.
const SG::AuxElement::Accessor< int > * pdfInfoAccessorV1Int(TruthEvent_v1::PdfParam type)
Helper function for getting accessors for integer type PDF information.
const TruthVertex * signalProcessVertex() const
Pointer to a vertex representing the primary beam interaction point.
const TruthParticleLink_t & beamParticle1Link() const
Get the link to the first incoming beam particle.
const SG::AuxElement::Accessor< int > * heavyIonAccessorV1Int(TruthEvent_v1::HIParam type)
Helper function for getting accessors for integer type HI information.
void setBeamParticleLinks(const TruthParticleLink_t &pcl1, const TruthParticleLink_t &pcl2)
Set incoming beam particles.
XAOD_AUXDATA_DEPRECATED bool isAvailableWritable(const std::string &name, const std::string &clsname="")
Check if an aux variable is available for writing.
std::pair< const TruthParticle *, const TruthParticle * > beamParticles() const
Pair of pointers to the two incoming beam particles.
virtual Type::ObjectType type() const
The type of the object as a simple enumeration.
HIParam
Heavy ion parameter enum.
void setBeamParticle1Link(const TruthParticleLink_t &pcl1)
Set one incoming beam particle.
AUXSTORE_OBJECT_SETTER_AND_GETTER(CaloRings_v1, RingSetLinks, ringSetLinks, setRingSetLinks) unsigned CaloRings_v1