Logo ROOT  
Reference Guide
hist003_TH1_draw Namespace Reference

Variables

 c1 = ROOT.TCanvas("c1", "The FillRandom example", topX, topY, width, height)
 form1 = ROOT.TFormula("form1", "abs(sin(x)/x)")
 h1d = ROOT.TH1D("h1d", "Test random numbers", nBins, rangeMin, rangeMax)
int height = 900
 lfunction = ROOT.TPaveLabel(5, 39, 9.8, 46, "The sqroot function")
int nBins = 200
 pad1 = ROOT.TPad("pad1", "The pad with the function", 0.05, 0.50, 0.95, 0.95)
 pad2 = ROOT.TPad("pad2", "The pad with the histogram", 0.05, 0.05, 0.95, 0.45)
float rangeMax = 10.0
float rangeMin = 0.0
 sqroot = ROOT.TF1("sqroot", "x*gaus(0) + [3]*form1", rangeMin, rangeMax)
int topX = 200
int topY = 10
int width = 700

Variable Documentation

◆ c1

hist003_TH1_draw.c1 = ROOT.TCanvas("c1", "The FillRandom example", topX, topY, width, height)

Definition at line 35 of file hist003_TH1_draw.py.

◆ form1

hist003_TH1_draw.form1 = ROOT.TFormula("form1", "abs(sin(x)/x)")

Definition at line 17 of file hist003_TH1_draw.py.

◆ h1d

hist003_TH1_draw.h1d = ROOT.TH1D("h1d", "Test random numbers", nBins, rangeMin, rangeMax)

Definition at line 26 of file hist003_TH1_draw.py.

◆ height

int hist003_TH1_draw.height = 900

Definition at line 34 of file hist003_TH1_draw.py.

◆ lfunction

hist003_TH1_draw.lfunction = ROOT.TPaveLabel(5, 39, 9.8, 46, "The sqroot function")

Definition at line 57 of file hist003_TH1_draw.py.

◆ nBins

int hist003_TH1_draw.nBins = 200

Definition at line 25 of file hist003_TH1_draw.py.

◆ pad1

hist003_TH1_draw.pad1 = ROOT.TPad("pad1", "The pad with the function", 0.05, 0.50, 0.95, 0.95)

Definition at line 39 of file hist003_TH1_draw.py.

◆ pad2

hist003_TH1_draw.pad2 = ROOT.TPad("pad2", "The pad with the histogram", 0.05, 0.05, 0.95, 0.45)

Definition at line 40 of file hist003_TH1_draw.py.

◆ rangeMax

float hist003_TH1_draw.rangeMax = 10.0

Definition at line 19 of file hist003_TH1_draw.py.

◆ rangeMin

float hist003_TH1_draw.rangeMin = 0.0

Definition at line 18 of file hist003_TH1_draw.py.

◆ sqroot

hist003_TH1_draw.sqroot = ROOT.TF1("sqroot", "x*gaus(0) + [3]*form1", rangeMin, rangeMax)

Definition at line 20 of file hist003_TH1_draw.py.

◆ topX

int hist003_TH1_draw.topX = 200

Definition at line 31 of file hist003_TH1_draw.py.

◆ topY

int hist003_TH1_draw.topY = 10

Definition at line 32 of file hist003_TH1_draw.py.

◆ width

int hist003_TH1_draw.width = 700

Definition at line 33 of file hist003_TH1_draw.py.