Illustrate use of the TH1::GetCumulative method. 
  
#include <cassert>
#include <cmath>
 
 
{
   TH1 *
h = 
new TH1D(
"h", 
"h", 100, -5., 5.);
 
   h->FillRandom(
"gaus", 1u << 16);
 
   
   
   for (
Int_t i = 1; i <= 
hc->GetNbinsX(); ++i) {
 
      assert(std::abs(integral[i] * 
h->GetEntries() - 
hc->GetBinContent(i)) < 1
e-7);
 
   }
   
 
}
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
 
R__EXTERN TRandom * gRandom
 
1-D histogram with a double per channel (see TH1 documentation)
 
TH1 is the base class of all histogram classes in ROOT.
 
void Divide(Int_t nx=1, Int_t ny=1, Float_t xmargin=0.01, Float_t ymargin=0.01, Int_t color=0) override
Automatic pad generation by division.
 
virtual void SetSeed(ULong_t seed=0)
Set the random generator seed.
 
- Date
 - July 2016 
 
- Author
 - M. Schiller 
 
Definition in file hist014_TH1_cumulative.C.