10#ifndef ASG_ANALYSIS_ALGORITHMS__MUON_CONTAINER_MERGING_ALGORITHM__H
11#define ASG_ANALYSIS_ALGORITHMS__MUON_CONTAINER_MERGING_ALGORITHM__H
31 ISvcLocator* pSvcLocator);
33 virtual StatusCode
execute (
const EventContext& ctx)
const override;
45 this,
"InputMuonContainers",{},
"List of xAOD::MuonContainer objects to merge into a view container."
50 this,
"OutputMuonLocationCopy",
"MergedMuons",
"Name of the muon container to write"
54 this,
"OutputMuonLocation",
"MergedMuons",
"Name of the view only muon container to write"
DataVector adapter that acts like it holds const pointers.
SG::WriteHandleKey< ConstDataVector< xAOD::MuonContainer > > m_outMuonLocationView
Output xAOD::MuonContainer for the case of a view container.
SG::ReadHandleKeyArray< xAOD::MuonContainer > m_inputMuonContainers
Private data:
SG::WriteHandleKey< xAOD::MuonContainer > m_outMuonLocationCopy
Output xAOD::MuonContainer object.
virtual StatusCode execute(const EventContext &ctx) const override
virtual StatusCode initialize() override
Gaudi::Property< bool > m_createViewCollection
flag to create a view collection rather than building deep-copies (true by default)
MuonContainerMergingAlg(const std::string &name, ISvcLocator *pSvcLocator)
the standard constructor
the base class for EventLoop reentrant algorithms
Property holding a SG store/key/clid from which a WriteHandle is made.
Select isolated Photons, Electrons and Muons.
HandleKeyArray< ReadHandle< T >, ReadHandleKey< T >, Gaudi::DataHandle::Reader > ReadHandleKeyArray