ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
AsgAnalysisAlgorithms
AsgAnalysisAlgorithms
AsgShallowCopyAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
7
8
#ifndef ASG_ANALYSIS_ALGORITHMS__ASG_SHALLOW_COPY_ALG_H
9
#define ASG_ANALYSIS_ALGORITHMS__ASG_SHALLOW_COPY_ALG_H
10
11
#include <
AnaAlgorithm/AnaAlgorithm.h
>
12
#include <
xAODBase/IParticleContainer.h
>
13
#include <
SystematicsHandles/SysReadHandle.h
>
14
#include <
SystematicsHandles/SysWriteHandle.h
>
15
#include <
SystematicsHandles/SysListHandle.h
>
16
17
18
namespace
CP
19
{
26
27
class
AsgShallowCopyAlg
final :
public
EL::AnaAlgorithm
28
{
30
public
:
31
using
EL::AnaAlgorithm::AnaAlgorithm
;
32
33
34
public
:
35
StatusCode
initialize
()
override
;
36
37
public
:
38
StatusCode
execute
(
const
EventContext& ctx)
override
;
39
40
42
private
:
43
SysListHandle
m_systematicsList
{
this
};
44
46
private
:
47
SysReadHandle<xAOD::IParticleContainer>
m_inputHandle
{
48
this
,
"input"
,
""
,
"the input collection to run on"
};
49
51
private
:
52
SysWriteHandle<xAOD::IParticleContainer>
m_outputHandle
{
53
this
,
"output"
,
""
,
"the output view container to produce"
};
54
56
private
:
57
Gaudi::Property<std::vector<std::string>>
m_declareDecorations
{
58
this
,
"declareDecorations"
, {},
"the list of decorations to declare (only needed in AthenaMT)"
};
59
61
private
:
62
template
<
typename
Type> StatusCode
63
executeTemplate
(
const
EventContext& ctx,
const
CP::SystematicSet
& sys);
64
66
private
:
67
StatusCode
executeFindType
(
const
EventContext& ctx,
const
CP::SystematicSet
& sys);
68
69
private
:
70
StatusCode (
AsgShallowCopyAlg
::*
m_function
) (
const
EventContext& ctx,
const
CP::SystematicSet
& sys) {&
AsgShallowCopyAlg::executeFindType
};
71
};
72
}
73
74
#endif
AnaAlgorithm.h
SysListHandle.h
SysReadHandle.h
SysWriteHandle.h
CP::AsgShallowCopyAlg
create a shallow copy of an input contsainer
Definition
AsgShallowCopyAlg.h:28
CP::AsgShallowCopyAlg::m_function
StatusCode(AsgShallowCopyAlg::* m_function)(const EventContext &ctx, const CP::SystematicSet &sys)
Definition
AsgShallowCopyAlg.h:70
CP::AsgShallowCopyAlg::executeTemplate
StatusCode executeTemplate(const EventContext &ctx, const CP::SystematicSet &sys)
the templated version of execute for a single systematic
Definition
AsgShallowCopyAlg.cxx:27
CP::AsgShallowCopyAlg::initialize
StatusCode initialize() override
Definition
AsgShallowCopyAlg.cxx:112
CP::AsgShallowCopyAlg::m_outputHandle
SysWriteHandle< xAOD::IParticleContainer > m_outputHandle
the output view container we produce
Definition
AsgShallowCopyAlg.h:52
CP::AsgShallowCopyAlg::executeFindType
StatusCode executeFindType(const EventContext &ctx, const CP::SystematicSet &sys)
the version of execute to find the type
Definition
AsgShallowCopyAlg.cxx:43
CP::AsgShallowCopyAlg::m_declareDecorations
Gaudi::Property< std::vector< std::string > > m_declareDecorations
an (optional) list of decorations to copy
Definition
AsgShallowCopyAlg.h:57
CP::AsgShallowCopyAlg::m_systematicsList
SysListHandle m_systematicsList
the systematics list we run
Definition
AsgShallowCopyAlg.h:43
CP::AsgShallowCopyAlg::m_inputHandle
SysReadHandle< xAOD::IParticleContainer > m_inputHandle
the input collection we run on
Definition
AsgShallowCopyAlg.h:47
CP::SysListHandle
a class managing the property to configure the list of systematics to process
Definition
SysListHandle.h:33
CP::SysReadHandle
a data handle for reading systematics varied input data
Definition
SysReadHandle.h:33
CP::SysWriteHandle
a data handle for writing systematics varied input data
Definition
SysWriteHandle.h:34
CP::SystematicSet
Class to wrap a set of SystematicVariations.
Definition
SystematicSet.h:31
EL::AnaAlgorithm
the (new) base class for EventLoop algorithms
Definition
AnaAlgorithm.h:74
EL::AnaAlgorithm::AnaAlgorithm
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Definition
AnaAlgorithm.cxx:40
EL::AnaAlgorithm::execute
virtual::StatusCode execute()
execute this algorithm
Definition
AnaAlgorithm.cxx:315
CP
Select isolated Photons, Electrons and Muons.
Definition
Control/xAODRootAccess/xAODRootAccess/TEvent.h:27
IParticleContainer.h
Generated on
for ATLAS Offline Software by
1.17.0