28 RH2D hist1({10, 0., 1.}, {{0., 1., 2., 3., 10.}});
31 hist1.Fill({0.01, 1.02});
33 RH2D hist2({{{10, 0., 1.}, {{0., 1., 2., 3., 10.}}}});
35 hist2.Fill({0.02, 1.03});
39 int binidx =
hist1.GetImpl()->GetBinIndex({0.01, 1.02});
40 std::cout <<
hist1.GetImpl()->GetBinContent(
binidx) << std::endl;
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
TMatrixT< Element > & Add(TMatrixT< Element > &target, Element scalar, const TMatrixT< Element > &source)
Modify addition: target += scalar * source.