|
ATLAS Offline Software
|
Go to the documentation of this file.
9 #ifndef ASG_ANALYSIS_ALGORITHMS__OBJECT_CUT_FLOW_HIST_ALG_H
10 #define ASG_ANALYSIS_ALGORITHMS__OBJECT_CUT_FLOW_HIST_ALG_H
40 this,
"input",
"",
"the input particle container to run on"};
45 this,
"preselection",
"",
"the preselection to apply"};
49 Gaudi::Property<std::string>
m_histPattern {
this,
"histPattern",
"cutflow_%SYS%",
"the pattern for histogram names"};
57 Gaudi::Property<std::string>
m_histTitle {
this,
"histTitle",
"object cut flow",
"title for the created histograms"};
62 this,
"selections", {},
"the inputs to the object cutflow"};
66 Gaudi::Property<bool>
m_forceCutSequence {
this,
"forceCutSequence",
false,
"force cut sequence and do not accept if previous cuts failed"};
75 std::unordered_map<CP::SystematicSet,TH1*>
m_hist;
unsigned m_allCutsNum
the total number of cuts configured (needed to configure histograms)
ServiceHandle< ISelectionNameSvc > m_selectionNameSvc
the selection name service
a class managing the property to configure the list of systematics to process
std::vector< std::string > m_labels
histogram bin labels
SysListHandle m_systematicsList
the systematics list we run
Gaudi::Property< std::string > m_histTitle
the histogram title to use
an algorithm for dumping the object-level cutflow
SysReadHandle< xAOD::IParticleContainer > m_inputHandle
the particle collection we run on
a data handle for reading systematics varied input data
Select isolated Photons, Electrons and Muons.
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
the (new) base class for EventLoop algorithms
::StatusCode StatusCode
StatusCode definition for legacy code.
Gaudi::Property< std::string > m_histPattern
the pattern for histogram names
StatusCode execute() override
Gaudi::Property< bool > m_forceCutSequence
force cut sequence
SysReadSelectionHandleArray m_selections
the input object selections for which to create a cutflow
a data handle for reading systematically varied selection properties from objects
SysReadSelectionHandle m_preselection
the preselection we apply to our input
StatusCode initialize() override
std::unordered_map< CP::SystematicSet, TH1 * > m_hist
the created histograms