ATLAS Offline Software
Loading...
Searching...
No Matches
EventCutFlowHistAlg.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#ifndef ASG_ANALYSIS_ALGORITHMS__EVENT_CUT_FLOW_HIST_ALG_H
9#define ASG_ANALYSIS_ALGORITHMS__EVENT_CUT_FLOW_HIST_ALG_H
10
17
18namespace CP
19{
21
23 {
25 public:
27 StatusCode initialize () override;
28 StatusCode execute (const EventContext& ctx) override;
29
30
32 private:
34
36 private:
38 this, "eventInfo", "EventInfo", "the EventInfo container to run on"};
39
41 private:
43 this, "preselection", "", "the preselection to apply"};
44
46 private:
47 Gaudi::Property<std::string> m_histPattern {this, "histPattern", "cutflow_%SYS%", "the pattern for histogram names"};
48
50 private:
51 Gaudi::Property<std::string> m_histTitle {this, "histTitle", "event cut flow", "title for the created histograms"};
52
54 private:
56 this, "selections", {}, "the inputs to the event cutflow"};
57
60 private:
61 unsigned m_allCutsNum = 0;
62
64 private:
65 std::unordered_map<CP::SystematicSet,TH1*> m_hist;
66
68 private:
69 std::vector<std::string> m_labels;
70 };
71}
72
73#endif
an algorithm for dumping the an event-level cutflow
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
StatusCode initialize() override
SysReadSelectionHandleArray m_selections
the input object selections for which to create a cutflow
std::unordered_map< CP::SystematicSet, TH1 * > m_hist
the created histograms
SysReadHandle< xAOD::EventInfo > m_eventInfoHandle
the jet collection we run on
SysReadSelectionHandle m_preselection
the preselection we apply to our input
Gaudi::Property< std::string > m_histPattern
the pattern for histogram names
unsigned m_allCutsNum
the total number of cuts configured (needed to configure histograms)
a class managing the property to configure the list of systematics to process
a data handle for reading systematics varied input data
a data handle for reading systematically varied selection properties from objects
the (new) base class for EventLoop algorithms
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
virtual::StatusCode execute()
execute this algorithm
Select isolated Photons, Electrons and Muons.
SysHandleArray< SysReadSelectionHandle > SysReadSelectionHandleArray