ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
AsgAnalysisAlgorithms
AsgAnalysisAlgorithms
ObjectCutFlowHistAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
7
8
9
#ifndef ASG_ANALYSIS_ALGORITHMS__OBJECT_CUT_FLOW_HIST_ALG_H
10
#define ASG_ANALYSIS_ALGORITHMS__OBJECT_CUT_FLOW_HIST_ALG_H
11
12
#include <
AnaAlgorithm/AnaAlgorithm.h
>
13
#include <
AsgTools/PropertyWrapper.h
>
14
#include <
SelectionHelpers/SysReadSelectionHandle.h
>
15
#include <
SystematicsHandles/SysReadHandle.h
>
16
#include <
SystematicsHandles/SysListHandle.h
>
17
#include <
xAODBase/IParticleContainer.h
>
18
19
namespace
CP
20
{
22
23
class
ObjectCutFlowHistAlg
final :
public
EL::AnaAlgorithm
24
{
26
public
:
27
using
EL::AnaAlgorithm::AnaAlgorithm
;
28
StatusCode
initialize
()
override
;
29
StatusCode
execute
(
const
EventContext& ctx)
override
;
30
31
33
private
:
34
SysListHandle
m_systematicsList
{
this
};
35
37
private
:
38
SysReadHandle<xAOD::IParticleContainer>
m_inputHandle
{
39
this
,
"input"
,
""
,
"the input particle container to run on"
};
40
42
private
:
43
SysReadSelectionHandle
m_preselection
{
44
this
,
"preselection"
,
""
,
"the preselection to apply"
};
45
47
private
:
48
Gaudi::Property<std::string>
m_histPattern
{
this
,
"histPattern"
,
"cutflow_%SYS%"
,
"the pattern for histogram names"
};
49
51
private
:
52
Gaudi::Property<std::string>
m_histTitle
{
this
,
"histTitle"
,
"object cut flow"
,
"title for the created histograms"
};
53
55
private
:
56
SysReadSelectionHandleArray
m_selections
{
57
this
,
"selections"
, {},
"the inputs to the object cutflow"
};
58
60
private
:
61
Gaudi::Property<bool>
m_forceCutSequence
{
this
,
"forceCutSequence"
,
false
,
"force cut sequence and do not accept if previous cuts failed"
};
62
65
private
:
66
unsigned
m_allCutsNum
= 0;
67
69
private
:
70
std::unordered_map<CP::SystematicSet,TH1*>
m_hist
;
71
73
private
:
74
std::vector<std::string>
m_labels
;
75
};
76
}
77
78
#endif
AnaAlgorithm.h
PropertyWrapper.h
SysListHandle.h
SysReadHandle.h
SysReadSelectionHandle.h
CP::ObjectCutFlowHistAlg
an algorithm for dumping the object-level cutflow
Definition
ObjectCutFlowHistAlg.h:24
CP::ObjectCutFlowHistAlg::m_labels
std::vector< std::string > m_labels
histogram bin labels
Definition
ObjectCutFlowHistAlg.h:74
CP::ObjectCutFlowHistAlg::m_selections
SysReadSelectionHandleArray m_selections
the input object selections for which to create a cutflow
Definition
ObjectCutFlowHistAlg.h:56
CP::ObjectCutFlowHistAlg::m_allCutsNum
unsigned m_allCutsNum
the total number of cuts configured (needed to configure histograms)
Definition
ObjectCutFlowHistAlg.h:66
CP::ObjectCutFlowHistAlg::m_forceCutSequence
Gaudi::Property< bool > m_forceCutSequence
force cut sequence
Definition
ObjectCutFlowHistAlg.h:61
CP::ObjectCutFlowHistAlg::m_inputHandle
SysReadHandle< xAOD::IParticleContainer > m_inputHandle
the particle collection we run on
Definition
ObjectCutFlowHistAlg.h:38
CP::ObjectCutFlowHistAlg::m_histTitle
Gaudi::Property< std::string > m_histTitle
the histogram title to use
Definition
ObjectCutFlowHistAlg.h:52
CP::ObjectCutFlowHistAlg::m_preselection
SysReadSelectionHandle m_preselection
the preselection we apply to our input
Definition
ObjectCutFlowHistAlg.h:43
CP::ObjectCutFlowHistAlg::m_systematicsList
SysListHandle m_systematicsList
the systematics list we run
Definition
ObjectCutFlowHistAlg.h:34
CP::ObjectCutFlowHistAlg::m_hist
std::unordered_map< CP::SystematicSet, TH1 * > m_hist
the created histograms
Definition
ObjectCutFlowHistAlg.h:70
CP::ObjectCutFlowHistAlg::initialize
StatusCode initialize() override
Definition
ObjectCutFlowHistAlg.cxx:25
CP::ObjectCutFlowHistAlg::m_histPattern
Gaudi::Property< std::string > m_histPattern
the pattern for histogram names
Definition
ObjectCutFlowHistAlg.h:48
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
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
CP::SysReadSelectionHandleArray
SysHandleArray< SysReadSelectionHandle > SysReadSelectionHandleArray
Definition
SysReadSelectionHandle.h:111
IParticleContainer.h
Generated on
for ATLAS Offline Software by
1.17.0