|
ATLAS Offline Software
|
Go to the documentation of this file.
49 return StatusCode::SUCCESS;
61 if (histIter ==
m_hist.end())
73 assert (histIter !=
m_hist.end());
77 histIter->second->GetXaxis()->SetBinLabel(
i + 1,
m_labels[
i].c_str());
83 unsigned cutIndex = 1;
84 histIter->second->Fill (0);
87 histIter->second->Fill (cutIndex);
95 return StatusCode::SUCCESS;
unsigned m_allCutsNum
the total number of cuts configured (needed to configure histograms)
ServiceHandle< ISelectionNameSvc > m_selectionNameSvc
the selection name service
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
StatusCode book(const TH1 &hist, const std::string &tDir="", const std::string &stream="")
Simplify the booking and registering (into THistSvc) of histograms.
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(Args &&...args)
Create and initialize all the sub-handles.
SysReadHandle< xAOD::IParticleContainer > m_inputHandle
the particle collection we run on
const std::vector< CP::SystematicSet > & systematicsVector() const
the list of systematics to loop over
Class providing the definition of the 4-vector interface.
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.
std::size_t size() const noexcept
The number of defined handles.
Gaudi::Property< std::string > m_histPattern
the pattern for histogram names
StatusCode execute() override
SysReadSelectionHandleArray m_selections
the input object selections for which to create a cutflow
virtual StatusCode makeSystematicsName(std::string &result, const std::string &name, const CP::SystematicSet &sys) const =0
make the name for the given systematics
const std::string & getSelectionName() const
get the name of the selection
StatusCode initialize(SysListHandle &sysListHandle, const ISysHandleBase &objectHandle)
initialize the accessor
TH1 * hist(const std::string &histName, const std::string &tDir="", const std::string &stream="")
Simplify the retrieval of registered histograms of any type.
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
SysReadSelectionHandle m_preselection
the preselection we apply to our input
HANDLE & at(std::size_t idx)
Retrieve the handle at the specified index.
const ISystematicsSvc & service() const
the service we use
StatusCode initialize() override
std::unordered_map< CP::SystematicSet, TH1 * > m_hist
the created histograms