5#ifndef DERIVATIONFRAMEWORK_TRUTHNAVIGATIONDECORATOR_H
6#define DERIVATIONFRAMEWORK_TRUTHNAVIGATIONDECORATOR_H
31 using base_class::base_class;
33 virtual StatusCode
initialize()
override final;
34 virtual StatusCode
addBranches(
const EventContext& ctx)
const override final;
39 {
this,
"InputCollections", {},
"Input truth particle collection keys"};
41 {
this,
"TruthEventKey",
"TruthEvents",
"SG key for the TruthEvent container"};
44 {
this,
"parentDecorKeys", {},
"dependent on the names in InputCollections"};
46 {
this,
"childDecorKeys", {},
"dependent on the name in InputCollections"};
51 std::vector<int>& seen_particles )
const;
56 std::vector<int>& seen_particles )
const;
Property holding a SG store/key/clid from which a ReadHandle is made.
void find_parents(const xAOD::TruthParticle *part, std::vector< ElementLink< xAOD::TruthParticleContainer > > &parents, std::map< int, ElementLink< xAOD::TruthParticleContainer > > &linkMap, std::vector< int > &seen_particles) const
Helper function for finding all the parents of a particle.
void find_children(const xAOD::TruthParticle *part, std::vector< ElementLink< xAOD::TruthParticleContainer > > &parents, std::map< int, ElementLink< xAOD::TruthParticleContainer > > &linkMap, std::vector< int > &seen_particles) const
Helper function for finding all the children of a particle.
SG::ReadHandleKeyArray< xAOD::TruthParticleContainer > m_inputKeys
Parameter: input particle collections.
virtual StatusCode addBranches(const EventContext &ctx) const override final
SG::ReadHandleKey< xAOD::TruthEventContainer > m_truthEventKey
SG::WriteDecorHandleKeyArray< xAOD::TruthParticleContainer, std::vector< ElementLink< xAOD::TruthParticleContainer > > > m_childLinksDecorKeys
virtual StatusCode initialize() override final
SG::WriteDecorHandleKeyArray< xAOD::TruthParticleContainer, std::vector< ElementLink< xAOD::TruthParticleContainer > > > m_parentLinksDecorKeys
Decor keys.
ElementLink implementation for ROOT usage.
Property holding a SG store/key/clid from which a ReadHandle is made.
DecorHandleKeyArray< WriteDecorHandle< T, S >, WriteDecorHandleKey< T >, Gaudi::DataHandle::Writer > WriteDecorHandleKeyArray
HandleKeyArray< ReadHandle< T >, ReadHandleKey< T >, Gaudi::DataHandle::Reader > ReadHandleKeyArray
TruthParticle_v1 TruthParticle
Typedef to implementation.