5#ifndef INDETTRACKPERFMON_TruthDECORATORALG_H
6#define INDETTRACKPERFMON_TruthDECORATORALG_H
45 virtual StatusCode
execute(
const EventContext& ctx )
const override;
50 this,
"TruthParticleContainerName",
"TruthParticles",
"Name of container of truth particles" };
52 StringProperty
m_prefix {
this,
"Prefix",
"Truth_",
"Decoration prefix to avoid clashes" };
75 this,
"MCTruthClassifier",
"MCTruthClassifier/MCTruthClassifier",
"Truth classification tool" };
header file for function of same name adapted from original IDPVM implementation
An algorithm that can be simultaneously executed in multiple threads.
virtual StatusCode initialize() override
TruthDecoratorAlg(const std::string &name, ISvcLocator *pSvcLocator)
Local includes.
virtual ~TruthDecoratorAlg()=default
std::vector< IDTPM::WriteKeyAccessorPair< xAOD::TruthParticleContainer, int > > m_decor_truth
StatusCode decorateTruthParticle(const xAOD::TruthParticle &truth, std::vector< IDTPM::OptionalDecoration< xAOD::TruthParticleContainer, int > > &truth_decor) const
PublicToolHandle< IMCTruthClassifier > m_truthClassifier
virtual StatusCode execute(const EventContext &ctx) const override
const std::vector< std::string > m_decor_truth_names
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_truthParticlesName
Property holding a SG store/key/clid from which a ReadHandle is made.
std::pair< SG::WriteDecorHandle< ContainerType, VariableType >, bool > OptionalDecoration
std::pair< SG::WriteDecorHandleKey< ContainerType >, SG::AuxElement::ConstAccessor< VariableType > > WriteKeyAccessorPair
Useful declarations.
TruthParticle_v1 TruthParticle
Typedef to implementation.
TruthParticleContainer_v1 TruthParticleContainer
Declare the latest version of the truth particle container.