19void NormalizeHistogram()
22 std::array<double, 6> binsx{0, 5, 10, 20, 50, 100};
23 TH1F *orig =
new TH1F(
"orig",
"Original histogram before normalization", binsx.size() - 1, &binsx[0]);
30 for (
int i = 0; i < 100'000; ++i) {
31 double r = rand.
Rndm() * 100;
36 norm->
SetTitle(
"Normalized Histogram");
R__EXTERN TStyle * gStyle
1-D histogram with a float per channel (see TH1 documentation)}
virtual void SetTitle(const char *title)
See GetStatOverflows for more information.
TObject * Clone(const char *newname=0) const
Make a complete copy of the underlying object.
virtual Int_t Fill(Double_t x)
Increment bin with abscissa X by 1.
virtual Double_t Integral(Option_t *option="") const
Return integral of bin contents.
virtual void Draw(Option_t *option="")
Draw this histogram with options.
virtual void Scale(Double_t c1=1, Option_t *option="")
Multiply this histogram by a constant c1.
Random number generator class based on the maximally quidistributed combined Tausworthe generator by ...
virtual Double_t Rndm()
TausWorth generator from L'Ecuyer, uses as seed 3x32bits integers Use a mask of 0xffffffffUL to make ...
void SetTitleFontSize(Float_t size=0)