|
ATLAS Offline Software
|
Go to the documentation of this file.
30 return StatusCode::SUCCESS;
44 if (histIter ==
m_hist.end())
56 assert (histIter !=
m_hist.end());
59 std::size_t
count = 0;
60 for (std::size_t iter = 0; iter !=
input->size(); ++ iter)
65 while (histIter->second.perObject.size() <=
count)
85 histIter->second.perObject.push_back (
group);
97 histIter->second.multiplicity->Fill (
count);
99 return StatusCode::SUCCESS;
StatusCode initialize() override
SysReadHandle< xAOD::IParticleContainer > m_inputHandle
the jet collection we run on
SysReadSelectionHandle m_preselection
the preselection we apply to our input
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
SysListHandle m_systematicsList
the systematics list we run
StatusCode book(const TH1 &hist, const std::string &tDir="", const std::string &stream="")
Simplify the booking and registering (into THistSvc) of histograms.
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.
std::unordered_map< CP::SystematicSet, HistGroup > m_hist
the created histograms
::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.
Gaudi::Property< std::string > m_histPattern
the pattern for histogram names
std::string to_string(const DetectorType &type)
the histograms we fill per systematic and object
std::string substitute(const std::string &str, const std::string &pattern, const std::string &with)
effects: substitute all occurences of "pattern" with "with" in the string "str" returns: the substitu...
virtual StatusCode makeSystematicsName(std::string &result, const std::string &name, const CP::SystematicSet &sys) const =0
make the name for the given systematics
StatusCode initialize(SysListHandle &sysListHandle, const ISysHandleBase &objectHandle)
initialize the accessor
the histograms we fill per systematic
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)
StatusCode execute() override
const ISystematicsSvc & service() const
the service we use