31 hist1.
Fill({0.01, 1.02});
35 hist2.
Fill({0.01, 1.02});
39 int binidx = hist1.GetImpl()->GetBinIndex({0.01, 1.02});
40 std::cout << hist1.GetImpl()->GetBinContent(binidx) << std::endl;
Namespace for new ROOT classes and functions.
Histogram class for histograms with DIMENSIONS dimensions, where each bin count is stored by a value ...
void Add(THist< DIMENSIONS, PRECISION_TO, STAT_TO... > &to, const THist< DIMENSIONS, PRECISION_FROM, STAT_FROM... > &from)
Add two histograms.
void Fill(const CoordArray_t &x, Weight_t weight=(Weight_t) 1) noexcept
Add weight to the bin containing coordinate x.