ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
AsgAnalysisAlgorithms
AsgAnalysisAlgorithms
AsgSelectionAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
7
8
9
#ifndef ASG_ANALYSIS_ALGORITHMS__ASG_SELECTION_ALG_H
10
#define ASG_ANALYSIS_ALGORITHMS__ASG_SELECTION_ALG_H
11
12
#include <
AnaAlgorithm/AnaAlgorithm.h
>
13
#include <
PATCore/IAsgSelectionTool.h
>
14
#include <
SelectionHelpers/ISelectionNameSvc.h
>
15
#include <
SelectionHelpers/SysReadSelectionHandle.h
>
16
#include <
SelectionHelpers/SysWriteSelectionHandle.h
>
17
#include <
SystematicsHandles/SysReadHandle.h
>
18
#include <
SystematicsHandles/SysListHandle.h
>
19
#include <
xAODBase/IParticleContainer.h
>
20
21
namespace
CP
22
{
43
44
class
AsgSelectionAlg
final :
public
EL::AnaAlgorithm
45
{
47
public
:
48
using
EL::AnaAlgorithm::AnaAlgorithm
;
49
StatusCode
initialize
()
override
;
50
StatusCode
execute
(
const
EventContext& ctx)
override
;
51
52
53
55
private
:
56
ToolHandle<IAsgSelectionTool>
m_selectionTool
{
this
,
"selectionTool"
,
""
,
"the selection tool we apply"
};
57
63
private
:
64
ISystematicsTool
*
m_systematicsTool
{
nullptr
};
65
67
private
:
68
SysListHandle
m_systematicsList
{
this
};
69
71
private
:
72
SysReadHandle<xAOD::IParticleContainer>
m_particlesHandle
{
73
this
,
"particles"
,
""
,
"the asg collection to run on"
};
74
76
private
:
77
SysReadSelectionHandle
m_preselection
{
78
this
,
"preselection"
,
""
,
"the preselection to apply"
};
79
81
private
:
82
SysWriteSelectionHandle
m_selectionHandle
{
83
this
,
"selectionDecoration"
,
""
,
"the decoration for the asg selection"
};
84
86
private
:
87
ServiceHandle<ISelectionNameSvc>
m_nameSvc
{
"SelectionNameSvc"
,
"AsgSelectionAlg"
};
88
90
private
:
91
SelectionType
m_setOnFail
{};
92
};
93
}
94
95
#endif
AnaAlgorithm.h
IAsgSelectionTool.h
ISelectionNameSvc.h
SysListHandle.h
SysReadHandle.h
SysReadSelectionHandle.h
SysWriteSelectionHandle.h
CP::AsgSelectionAlg
an algorithm for calling IAsgSelectionTool
Definition
AsgSelectionAlg.h:45
CP::AsgSelectionAlg::m_setOnFail
SelectionType m_setOnFail
the bits to set for an object failing the preselection
Definition
AsgSelectionAlg.h:91
CP::AsgSelectionAlg::m_particlesHandle
SysReadHandle< xAOD::IParticleContainer > m_particlesHandle
the particle continer we run on
Definition
AsgSelectionAlg.h:72
CP::AsgSelectionAlg::m_systematicsList
SysListHandle m_systematicsList
the systematics list we run
Definition
AsgSelectionAlg.h:68
CP::AsgSelectionAlg::m_selectionHandle
SysWriteSelectionHandle m_selectionHandle
the decoration for the asg selection
Definition
AsgSelectionAlg.h:82
CP::AsgSelectionAlg::m_preselection
SysReadSelectionHandle m_preselection
the preselection we apply to our input
Definition
AsgSelectionAlg.h:77
CP::AsgSelectionAlg::m_systematicsTool
ISystematicsTool * m_systematicsTool
the smearing tool cast to an ISystematicsTool
Definition
AsgSelectionAlg.h:64
CP::AsgSelectionAlg::initialize
StatusCode initialize() override
Definition
AsgSelectionAlg.cxx:25
CP::AsgSelectionAlg::m_nameSvc
ServiceHandle< ISelectionNameSvc > m_nameSvc
the ISelectionNameSvc
Definition
AsgSelectionAlg.h:87
CP::AsgSelectionAlg::m_selectionTool
ToolHandle< IAsgSelectionTool > m_selectionTool
the smearing tool
Definition
AsgSelectionAlg.h:56
CP::ISystematicsTool
Interface for all CP tools supporting systematic variations.
Definition
ISystematicsTool.h:32
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::SysReadSelectionHandle
a data handle for reading systematically varied selection properties from objects
Definition
SysReadSelectionHandle.h:32
CP::SysWriteSelectionHandle
a data handle for writing systematically varied selection properties from objects
Definition
SysWriteSelectionHandle.h:32
EL::AnaAlgorithm
the (new) base class for EventLoop algorithms
Definition
AnaAlgorithm.h:73
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:321
ServiceHandle
Definition
ClusterMakerTool.h:36
CP
Select isolated Photons, Electrons and Muons.
Definition
Control/xAODRootAccess/xAODRootAccess/TEvent.h:27
CP::SelectionType
uint32_t SelectionType
the type for selection decorations that are meant to hold a asg::AcceptData
Definition
SelectionHelpers.h:26
IParticleContainer.h
Generated on
for ATLAS Offline Software by
1.17.0