13 #include <type_traits>
34 unsigned int index(
Category value )
const {
return static_cast<unsigned int>( value ) + 1; }
39 namespace Directories {
48 mutable MyHist_t m_hist3{
this,
"Group/SubGroup/Third",
"Third title", { 1, 0, 1 } };
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 {
88 this,
"hist",
"Histogram title", { 5, 0, 5,
"axis title", {
"a",
"b",
"c",
"d",
"e" } } };
91 for (
int i : { 1, 2, 3, 4, 5 } )
m_hist[i - 1] += i;
96 namespace CustomAxis {
113 namespace MultiDimLayout {
121 mutable Gaudi::Accumulators::Histogram<3> m_h3{
this,
"h3",
"", { 10, 0, 10 }, { 10, 0, 10 }, { 10, 0, 10 } };
126 for (
double x = -0.5; x < 11; x += 1.0 ) {
128 for (
double y = -0.5; y < 11; y += 1.0 ) {
129 m_h2[{ x, y }] += ++value;
130 for (
double z = -0.5; z < 11; z += 1.0 ) {
m_h3[{ x, y, z }] += ++value; }