Implemented HistogramArray class to ease the use of arrays of histograms
This allows to instantiate arrays of histos in a single line, and still define custom names and titles :
HistogramArray<Gaudi::Accumulators::Histogram<2>,10> m_tae_crate
{this, "crate{}", "Crate {}", {3600, 0, 3600}, {3600, 0, 3600}};
will create 10 2D histograms with names/titles "crate1/Crate 1", "crate2/Crate 2", ... While :
HistogramArray<Gaudi::Accumulators::WeightedHistogram<1>,5> m_tae_window
{this,
[](int n) { return ...; }, // build histo name from index
[](int n) { return ...; }, //build histo title from index
{11, -5, 6}};
creates 5 1D weighted histograms with custom names and titles
Units tests are provided.
Edited by Sebastien Ponce