Loading [MathJax]/extensions/tex2jax.js
Go to the documentation of this file.
23 #include <fmt/format.h>
46 using axis_t = hist_t::AccumulatorType::AxisType;
54 ++( *m_hist1 )[
gauss()];
55 ++( *m_hist2 )[
gauss()];
61 return fmt::format(
" | {:25} | {:25} | {:7} |",
name, data[
"axis"][0][
"title"].get<std::string>(),
62 data[
"nEntries"].get<unsigned long long>() );
64 always() <<
fmt::format(
"Histograms report\n | {:25} | {:25} | {:7} |\n",
"name",
"title",
"entries" )
72 "The parameters for the first histogram" };
74 this,
"Histo2", {
"Histogram2", -5, 5, 200 },
"The parameters for the second histogram" };
SmartIF< IRndmGenSvc > & randSvc() const
The standard RandomGen service, Return a pointer to the service if present.
StatusCode andThen(F &&f, ARGS &&... args) const
Chain code blocks making the execution conditional a success result.
const std::string & name() const override
The identifying name of the algorithm object.
StatusCode initialize() override
the default (empty) implementation of IStateful::initialize() method
std::unique_ptr< Gaudi::Accumulators::Histogram< 1 > > m_hist1
StatusCode finalize() override
std::unique_ptr< Gaudi::Accumulators::Histogram< 1 > > m_hist2
StatusCode execute() override
Parameters for the Gauss random number generation.
Random number accessor This small class encapsulates the use of the random number generator.
Base class from which all concrete algorithm classes should be derived.
Gaudi::Property< Gaudi::Histo1DDef > m_hist2def
const ValueType & value() const
Gaudi::Property< Gaudi::Histo1DDef > m_hist1def
GAUDI_API std::string format(const char *,...)
MsgStream format utility "a la sprintf(...)".
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Header file for std:chrono::duration-based Counters.
StatusCode finalize() override
the default (empty) implementation of IStateful::finalize() method
constexpr static const auto SUCCESS
#define DECLARE_COMPONENT(type)
Algorithm(std::string name, ISvcLocator *svcloc, std::string version=PACKAGE_VERSION)
Constructor.
StatusCode initialize() override
A base counter dealing with Histograms.