ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
MuonAnalysisAlgorithms
MuonAnalysisAlgorithms
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
13
#include <
AnaAlgorithm/AnaReentrantAlgorithm.h
>
14
#include <
xAODMuon/MuonContainer.h
>
15
16
#include <
AsgTools/PropertyWrapper.h
>
17
#include <
AthContainers/ConstDataVector.h
>
18
#include <
AsgDataHandles/WriteHandleKey.h
>
19
#include <
AsgDataHandles/ReadHandleKey.h
>
20
#include "
AsgDataHandles/ReadHandleKeyArray.h
"
21
22
namespace
CP
23
{
25
26
class
MuonContainerMergingAlg
final :
public
EL::AnaReentrantAlgorithm
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
44
SG::ReadHandleKeyArray<xAOD::MuonContainer>
m_inputMuonContainers
{
45
this
,
"InputMuonContainers"
,{},
"List of xAOD::MuonContainer objects to merge into a view container."
46
};
47
49
SG::WriteHandleKey<xAOD::MuonContainer>
m_outMuonLocationCopy
{
50
this
,
"OutputMuonLocationCopy"
,
"MergedMuons"
,
"Name of the muon container to write"
51
};
52
53
SG::WriteHandleKey<ConstDataVector <xAOD::MuonContainer>
>
m_outMuonLocationView
{
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
AnaReentrantAlgorithm.h
ReadHandleKeyArray.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
ConstDataVector.h
DataVector adapter that acts like it holds const pointers.
MuonContainer.h
PropertyWrapper.h
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
CP::MuonContainerMergingAlg::m_inputMuonContainers
SG::ReadHandleKeyArray< xAOD::MuonContainer > m_inputMuonContainers
Private data:
Definition
MuonContainerMergingAlg.h:44
CP::MuonContainerMergingAlg::m_outMuonLocationCopy
SG::WriteHandleKey< xAOD::MuonContainer > m_outMuonLocationCopy
Output xAOD::MuonContainer object.
Definition
MuonContainerMergingAlg.h:49
CP::MuonContainerMergingAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition
MuonContainerMergingAlg.cxx:42
CP::MuonContainerMergingAlg::initialize
virtual StatusCode initialize() override
Definition
MuonContainerMergingAlg.cxx:25
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
CP::MuonContainerMergingAlg::MuonContainerMergingAlg
MuonContainerMergingAlg(const std::string &name, ISvcLocator *pSvcLocator)
the standard constructor
Definition
MuonContainerMergingAlg.cxx:20
EL::AnaReentrantAlgorithm
the base class for EventLoop reentrant algorithms
Definition
AnaReentrantAlgorithm.h:51
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition
StoreGate/StoreGate/WriteHandleKey.h:40
CP
Select isolated Photons, Electrons and Muons.
Definition
Control/xAODRootAccess/xAODRootAccess/TEvent.h:27
SG::ReadHandleKeyArray
HandleKeyArray< ReadHandle< T >, ReadHandleKey< T >, Gaudi::DataHandle::Reader > ReadHandleKeyArray
Definition
StoreGate/StoreGate/ReadHandleKeyArray.h:32
xAOD::name
name
Definition
TriggerMenuJson_v1.cxx:29
Generated on
for ATLAS Offline Software by
1.17.0