|
ATLAS Offline Software
|
Go to the documentation of this file.
48 return StatusCode::SUCCESS;
60 if (histIter ==
m_hist.end())
72 assert (histIter !=
m_hist.end());
76 histIter->second->GetXaxis()->SetBinLabel(
i + 1,
m_labels[
i].c_str());
81 unsigned cutIndex = 1;
82 histIter->second->Fill (0);
85 histIter->second->Fill (cutIndex);
91 return StatusCode::SUCCESS;
unsigned m_allCutsNum
the total number of cuts configured (needed to configure histograms)
StatusCode book(const TH1 &hist, const std::string &tDir="", const std::string &stream="")
Simplify the booking and registering (into THistSvc) of histograms.
StatusCode initialize() override
StatusCode initialize(Args &&...args)
Create and initialize all the sub-handles.
Gaudi::Property< std::string > m_histPattern
the pattern for histogram names
const std::vector< CP::SystematicSet > & systematicsVector() const
the list of systematics to loop over
Select isolated Photons, Electrons and Muons.
::StatusCode initialize()
intialize this property
bool getBool(const SG::AuxElement &element, const CP::SystematicSet &sys) const
get the selection as a bool
::StatusCode StatusCode
StatusCode definition for legacy code.
ServiceHandle< ISelectionNameSvc > m_selectionNameSvc
the selection name service
std::size_t size() const noexcept
The number of defined handles.
SysReadSelectionHandle m_preselection
the preselection we apply to our input
Class describing the basic event information.
SysListHandle m_systematicsList
the systematics list we run
virtual StatusCode makeSystematicsName(std::string &result, const std::string &name, const CP::SystematicSet &sys) const =0
make the name for the given systematics
Gaudi::Property< std::string > m_histTitle
the histogram title to use
const std::string & getSelectionName() const
get the name of the selection
StatusCode initialize(SysListHandle &sysListHandle, const ISysHandleBase &objectHandle)
initialize the accessor
StatusCode execute() override
SysReadHandle< xAOD::EventInfo > m_eventInfoHandle
the jet collection we run on
std::vector< std::string > m_labels
histogram bin labels
TH1 * hist(const std::string &histName, const std::string &tDir="", const std::string &stream="")
Simplify the retrieval of registered histograms of any type.
SysReadSelectionHandleArray m_selections
the input object selections for which to create a cutflow
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
std::unordered_map< CP::SystematicSet, TH1 * > m_hist
the created histograms
HANDLE & at(std::size_t idx)
Retrieve the handle at the specified index.
const ISystematicsSvc & service() const
the service we use