ATLAS Offline Software
Loading...
Searching...
No Matches
MuonContainerMergingAlg.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
6// MuonContainerMergingAlg
7// author Maria Mironova, Simone Pagan Griso, Kehang Bai
9
10#ifndef ASG_ANALYSIS_ALGORITHMS__MUON_CONTAINER_MERGING_ALGORITHM__H
11#define ASG_ANALYSIS_ALGORITHMS__MUON_CONTAINER_MERGING_ALGORITHM__H
12
15
21
22namespace CP
23{
25
27 {
29 public:
30 MuonContainerMergingAlg (const std::string& name,
31 ISvcLocator* pSvcLocator);
32 virtual StatusCode initialize () override;
33 virtual StatusCode execute (const EventContext& ctx) const override;
34
35 private:
36
38
40
42
45 this, "InputMuonContainers",{}, "List of xAOD::MuonContainer objects to merge into a view container."
46 };
47
50 this, "OutputMuonLocationCopy", "MergedMuons", "Name of the muon container to write"
51 };
52
54 this, "OutputMuonLocation", "MergedMuons", "Name of the view only muon container to write"
55 };
56
58 Gaudi::Property<bool> m_createViewCollection{this, "CreateViewCollection", true};
59
60 };
61}
62
63#endif
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
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