14 #include <type_traits>
35 unsigned int index(
Category value )
const {
return static_cast<unsigned int>( value ) + 1; }
40 namespace Directories {
49 mutable MyHist_t m_hist3{
this,
"Group/SubGroup/Third",
"Third title", { 1, 0, 1 } };
64 mutable MyHist_t m_hist0{
this,
"Top",
"Top title", { 1, 0, 1 } };
65 mutable MyHist_t m_hist1{
this,
"Group/First",
"First title", { 1, 0, 1 } };
66 mutable MyHist_t m_hist2{
this,
"Group/Second",
"Second title", { 1, 0, 1 } };
67 mutable MyHist_t m_hist3{
this,
"Group/SubGroup/Third",
"Third title", { 1, 0, 1 } };
81 namespace AxesLabels {
89 this,
"hist",
"Histogram title", { 5, 0, 5,
"axis title", {
"a",
"b",
"c",
"d",
"e" } } };
92 for (
int i : { 1, 2, 3, 4, 5 } )
m_hist[i - 1] += i;
97 namespace CustomAxis {
114 namespace MultiDimLayout {
122 mutable Gaudi::Accumulators::Histogram<3> m_h3{
this,
"h3",
"", { 10, 0, 10 }, { 10, 0, 10 }, { 10, 0, 10 } };
127 for (
double x = -0.5; x < 11; x += 1.0 ) {
129 for (
double y = -0.5; y < 11; y += 1.0 ) {
130 m_h2[{ x, y }] += ++value;
131 for (
double z = -0.5; z < 11; z += 1.0 ) {
m_h3[{ x, y, z }] += ++value; }