Go to the documentation of this file.
13 #include <type_traits>
34 unsigned int index(
Category value )
const {
return static_cast<unsigned int>( value ) + 1; }
39 namespace Directories {
63 mutable MyHist_t m_hist0{
this,
"Top",
"Top title", {1, 0, 1}};
64 mutable MyHist_t m_hist1{
this,
"Group/First",
"First title", {1, 0, 1}};
65 mutable MyHist_t m_hist2{
this,
"Group/Second",
"Second title", {1, 0, 1}};
66 mutable MyHist_t m_hist3{
this,
"Group/SubGroup/Third",
"Third title", {1, 0, 1}};
80 namespace AxesLabels {
87 mutable MyHist_t m_hist{
this,
"hist",
"Histogram title", {5, 0, 5,
"axis title", {
"a",
"b",
"c",
"d",
"e"}}};
90 for (
int i : {1, 2, 3, 4, 5} )
m_hist[i - 1] += i;
95 namespace CustomAxis {
101 this,
"Categories",
"", {{}}};
Arithmetic minValue
min and max values on this axis
details::Consumer< Signature, Traits_, details::isLegacy< Traits_ > > Consumer
unsigned int nBins
number of bins for this Axis
A base counter dealing with Histograms.
unsigned int index(Category value) const
Definition of an Histogram Axis.
void operator()() const override
Gaudi::Accumulators::Histogram< 1, Gaudi::Accumulators::atomicity::full, Category > m_hist
void operator()() const override
Header file for std:chrono::duration-based Counters.
void operator()() const override
#define DECLARE_COMPONENT(type)
std::string title
title of this axis
std::vector< std::string > labels
labels for the bins