ATLAS Offline Software
Loading...
Searching...
No Matches
CompositeParticle_v1.cxx File Reference
Include dependency graph for CompositeParticle_v1.cxx:

Go to the source code of this file.

Namespaces

namespace  xAOD
 ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.

Macros

#define NUM_PARTS(FUNCNAME, OBJTYPE)
#define NUM_TRUTHPARTS(FUNCNAME, PIDMETHOD)
#define NUM_OTHERPARTS(FUNCNAME, OBJTYPE)
#define NUM_OTHERTRUTHPARTS(FUNCNAME, PIDMETHOD)

Functions

 xAOD::AUXSTORE_PRIMITIVE_SETTER_WITH_CAST (CompositeParticle_v1, float, double, px, setPx) AUXSTORE_PRIMITIVE_SETTER_WITH_CAST(CompositeParticle_v1
setPy xAOD::AUXSTORE_PRIMITIVE_SETTER_WITH_CAST (CompositeParticle_v1, float, double, pz, setPz) AUXSTORE_PRIMITIVE_SETTER_WITH_CAST(CompositeParticle_v1
 xAOD::AUXSTORE_OBJECT_SETTER_AND_GETTER (CompositeParticle_v1, xAOD::IParticleLinkContainer, otherPartLinks, setOtherPartLinks) void CompositeParticle_v1

Variables

static const SG::AuxElement::Accessor< floatxAOD::accPx ("px")
static const SG::AuxElement::Accessor< floatxAOD::accPy ("py")
static const SG::AuxElement::Accessor< floatxAOD::accPz ("pz")
static const SG::AuxElement::Accessor< floatxAOD::accE ("e")
static const SG::AuxElement::Accessor< floatxAOD::chargeAcc ("charge")
static const SG::AuxElement::Accessor< intxAOD::pdgAcc ("pdgId")
 xAOD::double
 xAOD::py
setPy xAOD::e
static const SG::AuxElement::Accessor< ElementLink< xAOD::MissingETContainer > > xAOD::metLinkAcc ("missingETLink")

Macro Definition Documentation

◆ NUM_OTHERPARTS

#define NUM_OTHERPARTS ( FUNCNAME,
OBJTYPE )
Value:
std::size_t CompositeParticle_v1::FUNCNAME() const { \
std::size_t n(0); \
std::size_t nParts = this->nOtherParts(); \
for ( std::size_t i=0; i<nParts; ++i ) { \
const xAOD::IParticle* part = this->otherPart(i); \
if (!part) { throw std::runtime_error("Got a zero pointer to an xAOD::IParticle!"); } \
if ( part->type() == xAOD::Type::OBJTYPE ) { n += 1; } \
} \
return n; \
}
Class providing the definition of the 4-vector interface.

Definition at line 1020 of file CompositeParticle_v1.cxx.

1020#define NUM_OTHERPARTS( FUNCNAME, OBJTYPE ) \
1021 std::size_t CompositeParticle_v1::FUNCNAME() const { \
1022 std::size_t n(0); \
1023 std::size_t nParts = this->nOtherParts(); \
1024 for ( std::size_t i=0; i<nParts; ++i ) { \
1025 const xAOD::IParticle* part = this->otherPart(i); \
1026 if (!part) { throw std::runtime_error("Got a zero pointer to an xAOD::IParticle!"); } \
1027 if ( part->type() == xAOD::Type::OBJTYPE ) { n += 1; } \
1028 } \
1029 return n; \
1030 }

◆ NUM_OTHERTRUTHPARTS

#define NUM_OTHERTRUTHPARTS ( FUNCNAME,
PIDMETHOD )
Value:
std::size_t CompositeParticle_v1::FUNCNAME() const { \
std::size_t n(0); \
std::size_t nParts = this->nOtherParts(); \
for ( std::size_t i=0; i<nParts; ++i ) { \
const xAOD::IParticle* part = this->otherPart(i); \
if (!part) { throw std::runtime_error("Got a zero pointer to an xAOD::IParticle!"); } \
if ( part->type() != xAOD::Type::TruthParticle ) { continue; } \
const xAOD::TruthParticle* truthParticle = dynamic_cast<const xAOD::TruthParticle*>(part); \
if (!truthParticle) { throw std::runtime_error("Zero pointer to xAOD::TruthParticle"); } \
if ( PIDMETHOD(truthParticle->pdgId()) ) { n += 1; } \
} \
return n; \
}
int pdgId() const
PDG ID code.
@ TruthParticle
The object is a truth particle.
Definition ObjectType.h:67
TruthParticle_v1 TruthParticle
Typedef to implementation.

Definition at line 1045 of file CompositeParticle_v1.cxx.

1045#define NUM_OTHERTRUTHPARTS( FUNCNAME, PIDMETHOD ) \
1046 std::size_t CompositeParticle_v1::FUNCNAME() const { \
1047 std::size_t n(0); \
1048 std::size_t nParts = this->nOtherParts(); \
1049 for ( std::size_t i=0; i<nParts; ++i ) { \
1050 const xAOD::IParticle* part = this->otherPart(i); \
1051 if (!part) { throw std::runtime_error("Got a zero pointer to an xAOD::IParticle!"); } \
1052 if ( part->type() != xAOD::Type::TruthParticle ) { continue; } \
1053 const xAOD::TruthParticle* truthParticle = dynamic_cast<const xAOD::TruthParticle*>(part); \
1054 if (!truthParticle) { throw std::runtime_error("Zero pointer to xAOD::TruthParticle"); } \
1055 if ( PIDMETHOD(truthParticle->pdgId()) ) { n += 1; } \
1056 } \
1057 return n; \
1058 }

◆ NUM_PARTS

#define NUM_PARTS ( FUNCNAME,
OBJTYPE )
Value:
std::size_t CompositeParticle_v1::FUNCNAME() const { \
std::size_t n(0); \
std::size_t nParts = this->nParts(); \
for ( std::size_t i=0; i<nParts; ++i ) { \
const xAOD::IParticle* part = this->part(i); \
if (!part) { throw std::runtime_error("Got a zero pointer to an xAOD::IParticle!"); } \
if ( part->type() == xAOD::Type::OBJTYPE ) { n += 1; } \
} \
return n; \
}

Definition at line 732 of file CompositeParticle_v1.cxx.

732#define NUM_PARTS( FUNCNAME, OBJTYPE ) \
733 std::size_t CompositeParticle_v1::FUNCNAME() const { \
734 std::size_t n(0); \
735 std::size_t nParts = this->nParts(); \
736 for ( std::size_t i=0; i<nParts; ++i ) { \
737 const xAOD::IParticle* part = this->part(i); \
738 if (!part) { throw std::runtime_error("Got a zero pointer to an xAOD::IParticle!"); } \
739 if ( part->type() == xAOD::Type::OBJTYPE ) { n += 1; } \
740 } \
741 return n; \
742 }

◆ NUM_TRUTHPARTS

#define NUM_TRUTHPARTS ( FUNCNAME,
PIDMETHOD )
Value:
std::size_t CompositeParticle_v1::FUNCNAME() const { \
std::size_t n(0); \
std::size_t nParts = this->nParts(); \
for ( std::size_t i=0; i<nParts; ++i ) { \
const xAOD::IParticle* part = this->part(i); \
if (!part) { throw std::runtime_error("Got a zero pointer to an xAOD::IParticle!"); } \
if ( part->type() != xAOD::Type::TruthParticle ) { continue; } \
const xAOD::TruthParticle* truthParticle = dynamic_cast<const xAOD::TruthParticle*>(part); \
if (!truthParticle) { throw std::runtime_error("Zero pointer to xAOD::TruthParticle"); } \
if ( PIDMETHOD(truthParticle->pdgId()) ) { n += 1; } \
} \
return n; \
}

Definition at line 757 of file CompositeParticle_v1.cxx.

757#define NUM_TRUTHPARTS( FUNCNAME, PIDMETHOD ) \
758 std::size_t CompositeParticle_v1::FUNCNAME() const { \
759 std::size_t n(0); \
760 std::size_t nParts = this->nParts(); \
761 for ( std::size_t i=0; i<nParts; ++i ) { \
762 const xAOD::IParticle* part = this->part(i); \
763 if (!part) { throw std::runtime_error("Got a zero pointer to an xAOD::IParticle!"); } \
764 if ( part->type() != xAOD::Type::TruthParticle ) { continue; } \
765 const xAOD::TruthParticle* truthParticle = dynamic_cast<const xAOD::TruthParticle*>(part); \
766 if (!truthParticle) { throw std::runtime_error("Zero pointer to xAOD::TruthParticle"); } \
767 if ( PIDMETHOD(truthParticle->pdgId()) ) { n += 1; } \
768 } \
769 return n; \
770 }