Skip to content
Snippets Groups Projects
Commit 8d2b90c3 authored by Hadrien Grasland's avatar Hadrien Grasland Committed by Sergey Linev
Browse files

Update histops tutorial to new RHist addition semantics

parent e7f0c462
No related branches found
No related tags found
No related merge requests found
......@@ -25,14 +25,14 @@ void histops()
using namespace ROOT::Experimental;
// Create a 2D histogram with an X axis with equidistant bins, and a y axis
// with irregular binning.
RH2D hist1({100, 0., 1.}, {{0., 1., 2., 3., 10.}});
RH2D hist1({10, 0., 1.}, {{0., 1., 2., 3., 10.}});
// Fill weight 1. at the coordinate 0.01, 1.02.
hist1.Fill({0.01, 1.02});
RH2D hist2({{{10, 0., 1.}, {{0., 1., 2., 3., 10.}}}});
// Fill weight 1. at the coordinate 0.01, 1.02.
hist2.Fill({0.01, 1.02});
// Fill weight 1. at the coordinate 0.02, 1.03 (that's the same bin).
hist2.Fill({0.02, 1.03});
Add(hist1, hist2);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment