21 TH1* h =
new TH1D(
"h",
"h", 100, -5., 5.);
23 h->FillRandom(
"gaus", 1u << 16);
25 TH1* hc = h->GetCumulative();
27 Double_t* integral = h->GetIntegral();
28 for (Int_t i = 1; i <= hc->GetNbinsX(); ++i) {
29 assert(std::abs(integral[i] * h->GetEntries() - hc->GetBinContent(i)) < 1e-7);
32 TCanvas* c =
new TCanvas;