Logo ROOT  
Reference Guide
rf401_importttreethx Namespace Reference

Functions

 makeTH1 (trnd, name, mean, sigma)
 Create ROOT TH1 filled with a Gaussian distribution.
 makeTTree (trnd)
 Create ROOT ROOT.TTree filled with a Gaussian distribution in x and a uniform distribution in y.

Variables

 c = ROOT.RooCategory("c", "c")
 dh = ROOT.RooDataHist("dh", "dh", [x], Index=c, Import={"SampleA": hh_1, "SampleB": hh_2, "SampleC": hh_3})
 dh2 = ROOT.RooDataHist("dh", "dh", [x], Index=c, Import={"SampleA": hh_1, "SampleB": hh_2, "SampleC": hh_3})
 ds = ROOT.RooDataSet("ds", "ds", {x, y}, Import=tree)
 ds2 = ROOT.RooDataSet("ds2", "ds2", {x, y, z}, Import=tree, Cut="y+z<0")
 ds3 = ROOT.RooDataSet("ds3", "ds3", {i, x}, Import=tree)
 ds4 = ROOT.RooDataSet("ds4", "ds4", {icat, x}, Import=tree)
 dsA = ds2.reduce({x, y}, "z<-5")
 dsABC = ROOT.RooDataSet("dsABC", "dsABC", {x, y}, Index=c, Import={"SampleA": dsA, "SampleB": dsB, "SampleC": dsC})
 dsB = ds2.reduce({x, y}, "abs(z)<5")
 dsC = ds2.reduce({x, y}, "z>5")
 hh_1 = makeTH1(trnd, "hh1", 0, 3)
 hh_2 = makeTH1(trnd, "hh2", -3, 1)
 hh_3 = makeTH1(trnd, "hh3", +3, 4)
 i = ROOT.RooRealVar("i", "i", 0, 5)
 icat = ROOT.RooCategory("i", "i", {"State0": 0, "State1": 1})
 tree = makeTTree(trnd)
 trnd = ROOT.TRandom3()
 x = ROOT.RooRealVar("x", "x", -10, 10)
 y = ROOT.RooRealVar("y", "y", -10, 10)
 z = ROOT.RooRealVar("z", "z", -10, 10)

Function Documentation

◆ makeTH1()

rf401_importttreethx.makeTH1 ( trnd,
name,
mean,
sigma )

Create ROOT TH1 filled with a Gaussian distribution.

Definition at line 20 of file rf401_importttreethx.py.

◆ makeTTree()

rf401_importttreethx.makeTTree ( trnd)

Create ROOT ROOT.TTree filled with a Gaussian distribution in x and a uniform distribution in y.

Definition at line 28 of file rf401_importttreethx.py.

Variable Documentation

◆ c

rf401_importttreethx.c = ROOT.RooCategory("c", "c")

Definition at line 63 of file rf401_importttreethx.py.

◆ dh

rf401_importttreethx.dh = ROOT.RooDataHist("dh", "dh", [x], Index=c, Import={"SampleA": hh_1, "SampleB": hh_2, "SampleC": hh_3})

Definition at line 70 of file rf401_importttreethx.py.

◆ dh2

rf401_importttreethx.dh2 = ROOT.RooDataHist("dh", "dh", [x], Index=c, Import={"SampleA": hh_1, "SampleB": hh_2, "SampleC": hh_3})

Definition at line 73 of file rf401_importttreethx.py.

◆ ds

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

Definition at line 86 of file rf401_importttreethx.py.

◆ ds2

rf401_importttreethx.ds2 = ROOT.RooDataSet("ds2", "ds2", {x, y, z}, Import=tree, Cut="y+z<0")

Definition at line 91 of file rf401_importttreethx.py.

◆ ds3

rf401_importttreethx.ds3 = ROOT.RooDataSet("ds3", "ds3", {i, x}, Import=tree)

Definition at line 99 of file rf401_importttreethx.py.

◆ ds4

rf401_importttreethx.ds4 = ROOT.RooDataSet("ds4", "ds4", {icat, x}, Import=tree)

Definition at line 107 of file rf401_importttreethx.py.

◆ dsA

rf401_importttreethx.dsA = ds2.reduce({x, y}, "z<-5")

Definition at line 114 of file rf401_importttreethx.py.

◆ dsABC

rf401_importttreethx.dsABC = ROOT.RooDataSet("dsABC", "dsABC", {x, y}, Index=c, Import={"SampleA": dsA, "SampleB": dsB, "SampleC": dsC})

Definition at line 120 of file rf401_importttreethx.py.

◆ dsB

rf401_importttreethx.dsB = ds2.reduce({x, y}, "abs(z)<5")

Definition at line 115 of file rf401_importttreethx.py.

◆ dsC

rf401_importttreethx.dsC = ds2.reduce({x, y}, "z>5")

Definition at line 116 of file rf401_importttreethx.py.

◆ hh_1

rf401_importttreethx.hh_1 = makeTH1(trnd, "hh1", 0, 3)

Definition at line 55 of file rf401_importttreethx.py.

◆ hh_2

rf401_importttreethx.hh_2 = makeTH1(trnd, "hh2", -3, 1)

Definition at line 56 of file rf401_importttreethx.py.

◆ hh_3

rf401_importttreethx.hh_3 = makeTH1(trnd, "hh3", +3, 4)

Definition at line 57 of file rf401_importttreethx.py.

◆ i

rf401_importttreethx.i = ROOT.RooRealVar("i", "i", 0, 5)

Definition at line 98 of file rf401_importttreethx.py.

◆ icat

rf401_importttreethx.icat = ROOT.RooCategory("i", "i", {"State0": 0, "State1": 1})

Definition at line 103 of file rf401_importttreethx.py.

◆ tree

rf401_importttreethx.tree = makeTTree(trnd)

Definition at line 79 of file rf401_importttreethx.py.

◆ trnd

rf401_importttreethx.trnd = ROOT.TRandom3()

Definition at line 49 of file rf401_importttreethx.py.

◆ x

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

Definition at line 60 of file rf401_importttreethx.py.

◆ y

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

Definition at line 82 of file rf401_importttreethx.py.

◆ z

rf401_importttreethx.z = ROOT.RooRealVar("z", "z", -10, 10)

Definition at line 83 of file rf401_importttreethx.py.