Example of macro illustrating how to superimpose two histograms with different scales in the "same" pad.
{
TH1F *
h1 =
new TH1F(
"h1",
"my histogram",100,-3,3);
for (i=1;i<=100;i++) {
}
}
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
R__EXTERN TRandom * gRandom
R__EXTERN TStyle * gStyle
virtual void SetLineColor(Color_t lcolor)
Set the line color.
void SetLabelColor(Int_t labelcolor)
1-D histogram with a float per channel (see TH1 documentation)
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.
virtual Double_t GetBinContent(Int_t bin) const
Return content of bin number bin.
virtual void Draw(Option_t *option="")
Default Draw method for all objects.
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...
void SetOptStat(Int_t stat=1)
The type of information printed in the histogram statistics box can be selected via the parameter mod...
static uint64_t sum(uint64_t i)
- Author
- Rene Brun
Definition in file twoscales.C.