ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
EgammaAnalysisAlgorithms
EgammaAnalysisAlgorithms
EgammaIsolationSelectionAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
7
8
9
#ifndef EGAMMA_ANALYSIS_ALGORITHMS__EGAMMA_ISOLATION_SELECTION_ALG_H
10
#define EGAMMA_ANALYSIS_ALGORITHMS__EGAMMA_ISOLATION_SELECTION_ALG_H
11
12
#include <
AnaAlgorithm/AnaAlgorithm.h
>
13
#include <
AsgTools/PropertyWrapper.h
>
14
#include <
IsolationSelection/IIsolationSelectionTool.h
>
15
#include <
EgammaAnalysisAlgorithms/CopyHelpers.h
>
16
#include <
SelectionHelpers/ISelectionNameSvc.h
>
17
#include <
SelectionHelpers/OutOfValidityHelper.h
>
18
#include <
SelectionHelpers/SysReadSelectionHandle.h
>
19
#include <
SelectionHelpers/SysWriteSelectionHandle.h
>
20
#include <
SystematicsHandles/SysListHandle.h
>
21
#include <
SystematicsHandles/SysReadHandle.h
>
22
23
namespace
CP
24
{
26
27
class
EgammaIsolationSelectionAlg
final :
public
EL::AnaAlgorithm
28
{
30
public
:
31
using
EL::AnaAlgorithm::AnaAlgorithm
;
32
StatusCode
initialize
()
override
;
33
StatusCode
execute
(
const
EventContext& ctx)
override
;
34
35
36
38
private
:
39
ToolHandle<IIsolationSelectionTool>
m_selectionTool
{
this
,
"selectionTool"
,
""
,
"the selection tool we apply"
};
40
42
private
:
43
SysListHandle
m_systematicsList
{
this
};
44
46
private
:
47
SysReadSelectionHandle
m_preselection
{
48
this
,
"preselection"
,
""
,
"the preselection to apply"
};
49
51
private
:
52
SysReadHandle<xAOD::EgammaContainer>
m_egammasHandle
{
53
this
,
"egammas"
,
"Electrons"
,
"the egamma collection to run on"
};
54
56
private
:
57
SysWriteSelectionHandle
m_selectionHandle
{
58
this
,
"selectionDecoration"
,
"isolated"
,
"the decoration for the asg selection"
};
59
61
private
:
62
ServiceHandle<ISelectionNameSvc>
m_nameSvc
{
"SelectionNameSvc"
,
"EgammaIsolationSelectionAlg"
};
63
65
private
:
66
Gaudi::Property<bool>
m_isPhoton
{
this
,
"isPhoton"
,
false
,
67
"whether this is running on photons"
};
68
70
private
:
71
SelectionType
m_setOnFail
;
72
};
73
}
74
75
#endif
AnaAlgorithm.h
CopyHelpers.h
IIsolationSelectionTool.h
ISelectionNameSvc.h
OutOfValidityHelper.h
PropertyWrapper.h
SysListHandle.h
SysReadHandle.h
SysReadSelectionHandle.h
SysWriteSelectionHandle.h
CP::EgammaIsolationSelectionAlg
an algorithm for calling IIsolationSelectionTool
Definition
EgammaIsolationSelectionAlg.h:28
CP::EgammaIsolationSelectionAlg::m_selectionTool
ToolHandle< IIsolationSelectionTool > m_selectionTool
the selection tool
Definition
EgammaIsolationSelectionAlg.h:39
CP::EgammaIsolationSelectionAlg::m_nameSvc
ServiceHandle< ISelectionNameSvc > m_nameSvc
the ISelectionNameSvc
Definition
EgammaIsolationSelectionAlg.h:62
CP::EgammaIsolationSelectionAlg::m_isPhoton
Gaudi::Property< bool > m_isPhoton
whether this is running on photons
Definition
EgammaIsolationSelectionAlg.h:66
CP::EgammaIsolationSelectionAlg::initialize
StatusCode initialize() override
Definition
EgammaIsolationSelectionAlg.cxx:23
CP::EgammaIsolationSelectionAlg::m_egammasHandle
SysReadHandle< xAOD::EgammaContainer > m_egammasHandle
the particle continer we run on
Definition
EgammaIsolationSelectionAlg.h:52
CP::EgammaIsolationSelectionAlg::m_systematicsList
SysListHandle m_systematicsList
the systematics list we run
Definition
EgammaIsolationSelectionAlg.h:43
CP::EgammaIsolationSelectionAlg::m_preselection
SysReadSelectionHandle m_preselection
the preselection we apply to our input
Definition
EgammaIsolationSelectionAlg.h:47
CP::EgammaIsolationSelectionAlg::m_setOnFail
SelectionType m_setOnFail
the bits to set for an object failing the preselection
Definition
EgammaIsolationSelectionAlg.h:71
CP::EgammaIsolationSelectionAlg::m_selectionHandle
SysWriteSelectionHandle m_selectionHandle
the decoration for the asg selection
Definition
EgammaIsolationSelectionAlg.h:57
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: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
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
Generated on
for ATLAS Offline Software by
1.17.0