Go to the documentation of this file.
21 #include <fmt/format.h>
53 ++( *m_hist1 )[
gauss()];
54 ++( *m_hist2 )[
gauss()];
60 return fmt::format(
" | {:25} | {:25} | {:7} |",
name, data[
"axis"][0][
"title"].get<std::string>(),
61 data[
"nEntries"].get<unsigned long long>() );
63 always() <<
fmt::format(
"Histograms report\n | {:25} | {:25} | {:7} |\n",
"name",
"title",
"entries" )
71 "The parameters for the first histogram" };
73 this,
"Histo2", {
"Histogram2", -5, 5, 200 },
"The parameters for the second histogram" };
std::unique_ptr< Gaudi::Accumulators::StaticHistogram< 1 > > m_hist2
Gaudi::Property< Gaudi::Histo1DDef > m_hist2def
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.
A base counter dealing with Histograms.
StatusCode initialize() override
the default (empty) implementation of IStateful::initialize() method
StatusCode finalize() override
StatusCode initialize() 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.
const ValueType & value() const
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.
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...
StatusCode execute() override
Gaudi::Property< Gaudi::Histo1DDef > m_hist1def
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.
std::unique_ptr< Gaudi::Accumulators::StaticHistogram< 1 > > m_hist1
Definition of a default type of Histogram Axis It contains number of bins, min and max value plus a t...