#include <iostream>
void histops()
{
RH2D hist1({10, 0., 1.}, {{0., 1., 2., 3., 10.}});
hist1.
Fill({0.01, 1.02});
RH2D hist2({{{10, 0., 1.}, {{0., 1., 2., 3., 10.}}}});
hist2.
Fill({0.02, 1.03});
int binidx = hist1.GetImpl()->GetBinIndex({0.01, 1.02});
std::cout << hist1.GetImpl()->GetBinContent(binidx) << std::endl;
}
Histogram class for histograms with DIMENSIONS dimensions, where each bin count is stored by a value ...
void Fill(const CoordArray_t &x, Weight_t weight=(Weight_t) 1) noexcept
Add weight to the bin containing coordinate x.
TMatrixT< Element > & Add(TMatrixT< Element > &target, Element scalar, const TMatrixT< Element > &source)
Modify addition: target += scalar * source.
- Date
- 2015-08-08
- Warning
- This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!
- Author
- Axel Naumann axel@.nosp@m.cern.nosp@m..ch
Definition in file histops.cxx.