17void hist008_TH1_zoom()
20 TH1F *orig =
new TH1F(
"Normal Histogram",
"Normal Histogram", 100, 0, 100);
23 for (
int i = 0; i < 1000; ++i) {
24 double x = rng.
Gaus(50, 10);
30 zoom->
SetTitle(
"Zoomed-in Histogram");
39 c1->Divide(nsubdivX, nsubdivY);
virtual void SetRangeUser(Double_t ufirst, Double_t ulast)
Set the viewing range for the axis from ufirst to ulast (in user coordinates, that is,...
1-D histogram with a float per channel (see TH1 documentation)
void SetTitle(const char *title) override
Change/set the title.
virtual Int_t Fill(Double_t x)
Increment bin with abscissa X by 1.
void Draw(Option_t *option="") override
Draw this histogram with options.
TObject * Clone(const char *newname="") const override
Make a complete copy of the underlying object.
Random number generator class based on M.
virtual Double_t Gaus(Double_t mean=0, Double_t sigma=1)
Samples a random number from the standard Normal (Gaussian) Distribution with the given mean and sigm...