5#ifndef INDETTRACKPERFMON_OFFLINEMUONDECORATORALG_H
6#define INDETTRACKPERFMON_OFFLINEMUONDECORATORALG_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",
"LinkedMuon_",
"Decoration prefix to avoid clashes" };
62 this,
"MuonContainerName",
"Muons",
"Name of container of offline muons" };
65 this,
"useCombinedMuonTracks",
false,
"Match combined muon track to muons instead of ID tracks" };
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 ~OfflineMuonDecoratorAlg()=default
SG::ReadHandleKey< xAOD::MuonContainer > m_muonsName
ElementLink< xAOD::MuonContainer > ElementMuonLink_t
OfflineMuonDecoratorAlg(const std::string &name, ISvcLocator *pSvcLocator)
Local includes.
std::vector< IDTPM::WriteKeyAccessorPair< xAOD::TrackParticleContainer, ElementMuonLink_t > > m_decor_mu
virtual StatusCode execute(const EventContext &ctx) const override
BooleanProperty m_useCombinedMuonTracks
const std::vector< std::string > m_decor_mu_names
virtual StatusCode initialize() override
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_offlineTrkParticlesName
StatusCode decorateMuonTrack(const xAOD::TrackParticle &track, std::vector< IDTPM::OptionalDecoration< xAOD::TrackParticleContainer, ElementMuonLink_t > > &mu_decor, const xAOD::MuonContainer &muons) const
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.
TrackParticle_v1 TrackParticle
Reference the current persistent version:
TrackParticleContainer_v1 TrackParticleContainer
Definition of the current "TrackParticle container version".
MuonContainer_v1 MuonContainer
Definition of the current "Muon container version".