35 auto pHist = std::make_shared<RH2D>(xaxis, yaxis);
38 pHist->Fill({0.01, 1.02});
39 pHist->Fill({0.54, 3.02});
40 pHist->Fill({0.98, 1.02});
41 pHist->Fill({1.90, 1.02});
42 pHist->Fill({0.75, -0.02});
45 RDirectory::Heap().Add(
"hist", pHist);
48 auto canvas = RCanvas::Create(
"Canvas Title");
49 auto pOpts = canvas->Draw(pHist);
53 auto pOptsOther = canvas->Draw(other, *pOpts);
#define R__LOAD_LIBRARY(LIBRARY)
Objects used to configure the different axis types.
Histogram class for histograms with DIMENSIONS dimensions, where each bin count is stored by a value ...