5#ifndef ELECTRON_TRUTH_DECORATOR_ALG_HH
6#define ELECTRON_TRUTH_DECORATOR_ALG_HH
9#include "GaudiKernel/ToolHandle.h"
14#include "AthLinks/ElementLink.h"
27 ISvcLocator* pSvcLocator );
30 virtual StatusCode
execute(
const EventContext& )
const override;
35 this,
"electronContainer",
"Electrons",
36 "Key for the input electron collection"};
38 this,
"truthParticleContainer",
"TruthParticles",
39 "Key for the input truth particle container"};
45 "Accessor for the truth origin label of the truth particle"};
48 "Accessor for the truth type label of the truth particle"};
51 "Accessor for the truth source label of the truth particle"};
54 "Accessor for the truth vertex index of the truth particle"};
57 "Accessor for the truth parent uniqueID of the truth particle"};
63 "Exclusive origin label of the electron"};
66 "Exclusive truth type label of the electron"};
69 "Exclusive truth label for the immedate parent of the truth particle"};
72 "Truth vertex index of the electron"};
75 "UniqueID of linked truth particle"};
78 "UniqueID of parent of linked truth particle"};
82 this,
"trackTruthOriginTool",
"InDet::InDetTrackTruthOriginTool",
83 "track truth origin tool"};
91 this,
"useBarcode",
false,
"use barcode rather than UID"
97 "Truth particle link on electrons"};
100 "Classifier particle type on truth particles"};
104 "UniqueID on truth particles"};
Base class for elements of a container that can have aux data.
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
An algorithm that can be simultaneously executed in multiple threads.
SG::ReadDecorHandleKey< xAOD::TruthParticleContainer > RDHK
SG::ReadDecorHandleKey< xAOD::TruthParticleContainer > m_uidKey
const std::set< int > m_valid_types
SG::ReadDecorHandleKey< xAOD::TruthParticleContainer > m_classifierParticleTypeKey
SG::ReadHandleKey< xAOD::ElectronContainer > m_ElectronContainerKey
Gaudi::Property< bool > m_use_barcode
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_truthParticleContainerKey
virtual StatusCode execute(const EventContext &) const override
RDHK m_acc_parent_uniqueID
ToolHandle< InDet::InDetTrackTruthOriginTool > m_trackTruthOriginTool
SG::WriteDecorHandleKey< xAOD::ElectronContainer > WDHK
SoftElectronTruthDecoratorAlg(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode initialize() override
WDHK m_dec_parent_uniqueID
SG::ReadDecorHandleKey< xAOD::ElectronContainer > m_truthParticleLinkKey
Property holding a SG store/key/clid from which a ReadHandle is made.