16void hist029_TRatioPlot_simple()
 
   19   auto C = 
new TCanvas(
"C", 
"A ratio example");
 
   20   auto h1 = 
new TH1D(
"h1", 
"TRatioPlot Example; x; y", 50, 0, 10);
 
   21   auto TH1D(
"h2", 
"h2", 50, 0, 10);
 
   22   auto f1 = 
new TF1(
"f1", 
"exp(- x/[0] )");
 
   25   h2->FillRandom(
"f1", 2000);
 
   34   rp->GetLowYaxis()->SetNdivisions(505);
 
   37   rp->GetUpperPad()->cd();
 
   39   legend->AddEntry(
"h1", 
"First histogram", 
"l");
 
   40   legend->AddEntry(
"h2", 
"Second histogram", 
"le");
 
R__EXTERN TStyle * gStyle
virtual void SetParameter(Int_t param, Double_t value)
1-D histogram with a double per channel (see TH1 documentation)
virtual void FillRandom(TF1 *f1, Int_t ntimes=5000, TRandom *rng=nullptr)
virtual void Sumw2(Bool_t flag=kTRUE)
Create structure to store sum of squares of weights.
This class displays a legend box (TPaveText) containing several legend entries.
Class for displaying ratios, differences and fit residuals.
void SetOptStat(Int_t stat=1)
The type of information printed in the histogram statistics box can be selected via the parameter mod...
constexpr Double_t C()
Velocity of light in .