5#ifndef INDETTRACKPERFMON_OFFLINEELECTRONDECORATORALG_H
6#define INDETTRACKPERFMON_OFFLINEELECTRONDECORATORALG_H
46 virtual StatusCode
execute(
const EventContext& ctx )
const override;
51 this,
"OfflineTrkParticleContainerName",
"InDetTrackParticles",
"Name of container of offline tracks" };
53 StringProperty
m_prefix{
this,
"Prefix",
"LinkedElectron_",
"Decoration prefix to avoid clashes" };
62 this,
"ElectronContainerName",
"Electrons",
"Name of container of offline electrons" };
64 BooleanProperty
m_useGSF {
this,
"useGSF",
false,
"Match electron with original ID track after GSF" };
header file for function of same name adapted from original IDPVM implementation
An algorithm that can be simultaneously executed in multiple threads.
ElementLink implementation for ROOT usage.
virtual StatusCode initialize() override
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_offlineTrkParticlesName
const std::vector< std::string > m_decor_ele_names
SG::ReadHandleKey< xAOD::ElectronContainer > m_electronsName
OfflineElectronDecoratorAlg(const std::string &name, ISvcLocator *pSvcLocator)
Local includes.
virtual StatusCode execute(const EventContext &ctx) const override
std::vector< IDTPM::WriteKeyAccessorPair< xAOD::TrackParticleContainer, ElementElectronLink_t > > m_decor_ele
StatusCode decorateElectronTrack(const xAOD::TrackParticle &track, std::vector< IDTPM::OptionalDecoration< xAOD::TrackParticleContainer, ElementElectronLink_t > > &ele_decor, const xAOD::ElectronContainer &electrons) const
ElementLink< xAOD::ElectronContainer > ElementElectronLink_t
virtual ~OfflineElectronDecoratorAlg()=default
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.
ElectronContainer_v1 ElectronContainer
Definition of the current "electron container version".
TrackParticle_v1 TrackParticle
Reference the current persistent version:
TrackParticleContainer_v1 TrackParticleContainer
Definition of the current "TrackParticle container version".