|
ATLAS Offline Software
|
Go to the documentation of this file.
42 return StatusCode::FAILURE;
62 ATH_MSG_DEBUG (
"Performing allowed intermediate particle selection with allowed PDG IDs:" <<
particles.str());
65 m_parentsAccessor = std::make_unique<const SG::AuxElement::Accessor<std::vector<ElementLink<xAOD::TruthParticleContainer>>>>(
"parentLinks");
67 return StatusCode::SUCCESS;
88 if (truthParticle ==
nullptr)
92 if (truthParticle ==
nullptr)
109 for (
size_t i = 0;
i < nParents;
i++)
169 = (*m_parentsAccessor)(*truthParticle).at(
index);
170 return parentElementLink.
isValid() ? *parentElementLink :
nullptr;
const TruthParticle_v1 * parent(size_t i=0) const
Retrieve the i-th mother (TruthParticle) of this TruthParticle.
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
std::string find(const std::string &s)
return a remapped string
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
#define ATH_MSG_VERBOSE(x)
Class providing the definition of the 4-vector interface.
bool isValid() const
Test to see if the link can be dereferenced.
size_t nParents() const
Number of parents of this particle.
::StatusCode StatusCode
StatusCode definition for legacy code.
Class describing a truth particle in the MC record.
ElementLink implementation for ROOT usage.
const xAOD::TruthParticle * getTruthParticle(const xAOD::IParticle &p)
Return the truthParticle associated to the given IParticle (if any)
void setCutResult(const std::string &cutName, bool cutResult)
Set the result of a cut, based on the cut name (safer)
#define ATH_MSG_WARNING(x)
int pdgId() const
PDG ID code.
int addCut(const std::string &cutName, const std::string &cutDescription)
Add a cut; returning the cut position.