12 void ratioplotOld( ) {
15 TH1F *
h1 =
new TH1F(
"h1",
"Two gaussian plots and their ratio;x title; h1 and h2 gaussian histograms", 100, -5, 5);
16 TH1F *h2 =
new TH1F(
"h2",
"h2", 100, -5, 5);
24 TPad *pad1 =
new TPad(
"pad1",
"pad1", 0, 0.3, 1, 1.0);
36 TGaxis *axis =
new TGaxis( -5, 20, -5, 220, 20,220,510,
"");
43 TPad *pad2 =
new TPad(
"pad2",
"pad2", 0, 0.05, 1, 0.3);
virtual void SetTitleOffset(Float_t offset=1)
Set distance between the axis and the axis title Offset is a correction factor with respect to the "s...
virtual void SetGridx(Int_t value=1)
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
virtual void SetMaximum(Double_t maximum=-1111)
THist< 1, float, THistStatContent, THistStatUncertainty > TH1F
virtual void SetNdivisions(Int_t n=510, Bool_t optim=kTRUE)
Set the number of divisions for this axis.
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
virtual void SetMinimum(Double_t minimum=-1111)
1-D histogram with a float per channel (see TH1 documentation)}
virtual void SetTitleFont(Style_t font=62)
Set the title font.
virtual void Draw(Option_t *option="")
Default Draw method for all objects.
virtual void SetTopMargin(Float_t topmargin)
Set Pad top margin in fraction of the pad height.
virtual void SetLabelFont(Style_t font=62)
Set labels' font.
TVirtualPad * cd(Int_t subpadnumber=0)
Set Current pad.
virtual void Draw(Option_t *option="")
Draw Pad in Current pad (re-parent pad if necessary).
void SetLabelSize(Float_t labelsize)
virtual Bool_t Divide(TF1 *f1, Double_t c1=1)
Performs the operation: this = this/(c1*f1) if errors are defined (see TH1::Sumw2), errors are also recalculated.
virtual void SetLineColor(Color_t lcolor)
Set the line color.
virtual void SetBottomMargin(Float_t bottommargin)
Set Pad bottom margin in fraction of the pad height.
virtual void FillRandom(const char *fname, Int_t ntimes=5000)
Fill histogram following distribution in function fname.
virtual void Draw(Option_t *option="")
Draw this histogram with options.
The most important graphics class in the ROOT system.
virtual void SetMarkerStyle(Style_t mstyle=1)
Set the marker style.
virtual void SetLabelSize(Float_t size=0.04)
Set size of axis labels The size is expressed in per cent of the pad width.
virtual void SetTitleSize(Float_t size=0.04)
Set size of axis title The size is expressed in per cent of the pad width.
void SetLabelFont(Int_t labelfont)
virtual void Sumw2(Bool_t flag=kTRUE)
Create structure to store sum of squares of weights.
TObject * Clone(const char *newname=0) const
Make a complete copy of the underlying object.
virtual void SetTitle(const char *title)
See GetStatOverflows for more information.
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
virtual void SetStats(Bool_t stats=kTRUE)
Set statistics option on/off.
TAxis * GetXaxis()
Get the behaviour adopted by the object about the statoverflows. See EStatOverflows for more informat...