Loading [MathJax]/jax/input/TeX/config.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 
14 #include <xAODMuon/MuonContainer.h>
15 
21 
22 namespace 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 
39 
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  };
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
PropertyWrapper.h
CP::MuonContainerMergingAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: MuonContainerMergingAlg.cxx:42
CP::MuonContainerMergingAlg::m_outMuonLocationView
SG::WriteHandleKey< ConstDataVector< xAOD::MuonContainer > > m_outMuonLocationView
Output xAOD::MuonContainer for the case of a view container.
Definition: MuonContainerMergingAlg.h:53
ConstDataVector.h
DataVector adapter that acts like it holds const pointers.
CP::MuonContainerMergingAlg::initialize
virtual StatusCode initialize() override
Definition: MuonContainerMergingAlg.cxx:25
CP::MuonContainerMergingAlg::m_inputMuonContainers
SG::ReadHandleKeyArray< xAOD::MuonContainer > m_inputMuonContainers
Private data:
Definition: MuonContainerMergingAlg.h:44
SG::HandleKeyArray
Definition: StoreGate/StoreGate/HandleKeyArray.h:38
CP
Select isolated Photons, Electrons and Muons.
Definition: Control/xAODRootAccess/xAODRootAccess/TEvent.h:49
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition: StoreGate/StoreGate/WriteHandleKey.h:40
CP::MuonContainerMergingAlg::m_createViewCollection
Gaudi::Property< bool > m_createViewCollection
flag to create a view collection rather than building deep-copies (true by default)
Definition: MuonContainerMergingAlg.h:58
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
CP::MuonContainerMergingAlg::m_outMuonLocationCopy
SG::WriteHandleKey< xAOD::MuonContainer > m_outMuonLocationCopy
Output xAOD::MuonContainer object.
Definition: MuonContainerMergingAlg.h:49
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
CP::MuonContainerMergingAlg
this algorithm allows to merge multiple xAOD::MuonCollection objects into a single (view) collection.
Definition: MuonContainerMergingAlg.h:27
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
columnar::final
CM final
Definition: ColumnAccessor.h:106
EL::AnaReentrantAlgorithm
the base class for EventLoop reentrant algorithms
Definition: AnaReentrantAlgorithm.h:51
MuonContainer.h
CP::MuonContainerMergingAlg::MuonContainerMergingAlg
MuonContainerMergingAlg(const std::string &name, ISvcLocator *pSvcLocator)
the standard constructor
Definition: MuonContainerMergingAlg.cxx:20
AnaReentrantAlgorithm.h
ReadHandleKeyArray.h