26 return t->isBottomHadron() || t->isCharmHadron();
51 if ( findercount>1 ) {
55 return StatusCode::SUCCESS;
64 if ( !truth )
return false;
79 int pdgid = std::abs(truth->
pdgId());
80 if ( pdgid!=111 && pdgid!=211 )
return false;
89 if ( !parent )
return false;
emacs: this is -*- c++ -*-
#define ATH_CHECK
Evaluate an expression and check for errors.
ATLAS-specific HepMC functions.
emacs: this is -*- c++ -*-
bool isHeavyFlavour(const T *t)
emacs: this is -*- c++ -*-
virtual bool selectTrack(const TrackView &t) const override
GenericTrackSelector(const std::string &name)
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
allows more sophisticated selection predicates that use class functions, such as isBottomHadron() etc...
now a specific selector using the above PDG ID helper so we can select whatever sort we want - even e...
a type using a generic bool function pointer since - for some reason, I can not fathom,...
Gaudi::Property< bool > m_isFromLightFlavour
Gaudi::Property< bool > m_isHadron
Gaudi::Property< ConfiguredValue< int > > m_pdgId
This here is never used, so comment it out for the time being in case it is important.
Gaudi::Property< ConfiguredValue< int > > m_fromPdgId
Gaudi::Property< bool > m_isFromHeavyFlavour
set with parent pdgid = 4 or 5
Gaudi::Property< ConfiguredValue< float > > m_maxParentPt
std::unique_ptr< IFinder< xAOD::TruthParticle > > m_ancestorFinder
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
Gaudi::Property< ConfiguredValue< int > > m_fromHadronPdgId
TruthTrackSelector(const std::string &name)
Gaudi::Property< bool > m_isPion
Gaudi::Property< ConfiguredValue< float > > m_minParentPt
set with parent pdgid = 15
ToolHandle< IAthSelectionTool > m_truthTool
bool selectTrack(const TrackView &t) const override
forward declaration required for function prototype
bool isBottomHadron() const
Determine if the PID is that of a b-hadron.
bool isHadron() const
Whether the particle is a hadron.
int pdgId() const
PDG ID code.
bool isCharmHadron() const
Determine if the PID is that of a c-hadron.
TruthParticle_v1 TruthParticle
Typedef to implementation.