Logo ROOT  
Reference Guide
rf102_dataimport Namespace Reference

Functions

 makeTH1 (trnd)
 makeTTree (trnd)
 write_dataset (ds, filename)

Variables

 Binning
 c = ROOT.TCanvas("rf102_dataimport", "rf102_dataimport", 800, 800)
 DataError
 dataReadBack
 dh = ROOT.RooDataHist("dh", "dh", [x], Import=hh)
 ds = ROOT.RooDataSet("ds", "ds", {x, y}, Import=tree)
 frame = x.frame(Title="Imported ROOT.TH1 with Poisson error bars")
 frame2 = x.frame(Title="Imported ROOT.TH1 with internal errors")
 frame3 = y.frame(Title="Unbinned data shown in default frame binning")
 frame4 = y.frame(Title="Unbinned data shown with custom binning")
 frame5 = y.frame(Title="Unbinned data read back from ASCII file")
 gauss = ROOT.RooGaussian("gauss", "gauss", x, mean, sigma)
 hh = makeTH1(trnd)
 Importing ROOT histograms.
 MarkerColor
 MarkerStyle
 mean = ROOT.RooRealVar("mean", "mean", 0, -10, 10)
 PrintLevel
 sigma = ROOT.RooRealVar("sigma", "sigma", 3, 0.1, 10)
 tree = makeTTree(trnd)
 trnd = ROOT.TRandom3()
 x = ROOT.RooRealVar("x", "x", -10, 10)
 y = ROOT.RooRealVar("y", "y", -10, 10)

Function Documentation

◆ makeTH1()

rf102_dataimport.makeTH1 ( trnd)

Definition at line 19 of file rf102_dataimport.py.

◆ makeTTree()

rf102_dataimport.makeTTree ( trnd)

Definition at line 28 of file rf102_dataimport.py.

◆ write_dataset()

rf102_dataimport.write_dataset ( ds,
filename )

Definition at line 113 of file rf102_dataimport.py.

Variable Documentation

◆ Binning

rf102_dataimport.Binning

Definition at line 152 of file rf102_dataimport.py.

◆ c

rf102_dataimport.c = ROOT.TCanvas("rf102_dataimport", "rf102_dataimport", 800, 800)

Definition at line 159 of file rf102_dataimport.py.

◆ DataError

rf102_dataimport.DataError

Definition at line 80 of file rf102_dataimport.py.

◆ dataReadBack

rf102_dataimport.dataReadBack
Initial value:
1= ROOT.RooDataSet.read(
2 "rf102_testData.txt",
3 [x, y], # variables to be read. If the file has more fields, these are ignored.
4 "D", # Prints if a RooFit message stream listens for debug messages. Use Q for quiet.
5)

Definition at line 126 of file rf102_dataimport.py.

◆ dh

rf102_dataimport.dh = ROOT.RooDataHist("dh", "dh", [x], Import=hh)

Definition at line 58 of file rf102_dataimport.py.

◆ ds

rf102_dataimport.ds = ROOT.RooDataSet("ds", "ds", {x, y}, Import=tree)

Definition at line 107 of file rf102_dataimport.py.

◆ frame

rf102_dataimport.frame = x.frame(Title="Imported ROOT.TH1 with Poisson error bars")

Definition at line 63 of file rf102_dataimport.py.

◆ frame2

rf102_dataimport.frame2 = x.frame(Title="Imported ROOT.TH1 with internal errors")

Definition at line 79 of file rf102_dataimport.py.

◆ frame3

rf102_dataimport.frame3 = y.frame(Title="Unbinned data shown in default frame binning")

Definition at line 147 of file rf102_dataimport.py.

◆ frame4

rf102_dataimport.frame4 = y.frame(Title="Unbinned data shown with custom binning")

Definition at line 151 of file rf102_dataimport.py.

◆ frame5

rf102_dataimport.frame5 = y.frame(Title="Unbinned data read back from ASCII file")

Definition at line 154 of file rf102_dataimport.py.

◆ gauss

rf102_dataimport.gauss = ROOT.RooGaussian("gauss", "gauss", x, mean, sigma)

Definition at line 69 of file rf102_dataimport.py.

◆ hh

rf102_dataimport.hh = makeTH1(trnd)

Importing ROOT histograms.

Import ROOT TH1 into a RooDataHist

Create a ROOT TH1 histogram

Definition at line 51 of file rf102_dataimport.py.

◆ MarkerColor

rf102_dataimport.MarkerColor

Definition at line 156 of file rf102_dataimport.py.

◆ MarkerStyle

rf102_dataimport.MarkerStyle

Definition at line 156 of file rf102_dataimport.py.

◆ mean

rf102_dataimport.mean = ROOT.RooRealVar("mean", "mean", 0, -10, 10)

Definition at line 67 of file rf102_dataimport.py.

◆ PrintLevel

rf102_dataimport.PrintLevel

Definition at line 70 of file rf102_dataimport.py.

◆ sigma

rf102_dataimport.sigma = ROOT.RooRealVar("sigma", "sigma", 3, 0.1, 10)

Definition at line 68 of file rf102_dataimport.py.

◆ tree

rf102_dataimport.tree = makeTTree(trnd)

Definition at line 94 of file rf102_dataimport.py.

◆ trnd

rf102_dataimport.trnd = ROOT.TRandom3()

Definition at line 43 of file rf102_dataimport.py.

◆ x

rf102_dataimport.x = ROOT.RooRealVar("x", "x", -10, 10)

Definition at line 54 of file rf102_dataimport.py.

◆ y

rf102_dataimport.y = ROOT.RooRealVar("y", "y", -10, 10)

Definition at line 97 of file rf102_dataimport.py.