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) | |
| rf401_importttreethx.makeTH1 | ( | trnd, | |
| name, | |||
| mean, | |||
| sigma ) |
Create ROOT TH1 filled with a Gaussian distribution.
Definition at line 20 of file rf401_importttreethx.py.
| 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.
| rf401_importttreethx.c = ROOT.RooCategory("c", "c") |
Definition at line 63 of file rf401_importttreethx.py.
| 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.
| 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.
Definition at line 86 of file rf401_importttreethx.py.
Definition at line 91 of file rf401_importttreethx.py.
Definition at line 99 of file rf401_importttreethx.py.
Definition at line 107 of file rf401_importttreethx.py.
Definition at line 114 of file rf401_importttreethx.py.
| 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.
Definition at line 115 of file rf401_importttreethx.py.
Definition at line 116 of file rf401_importttreethx.py.
Definition at line 55 of file rf401_importttreethx.py.
Definition at line 56 of file rf401_importttreethx.py.
Definition at line 57 of file rf401_importttreethx.py.
| rf401_importttreethx.i = ROOT.RooRealVar("i", "i", 0, 5) |
Definition at line 98 of file rf401_importttreethx.py.
| rf401_importttreethx.icat = ROOT.RooCategory("i", "i", {"State0": 0, "State1": 1}) |
Definition at line 103 of file rf401_importttreethx.py.
Definition at line 79 of file rf401_importttreethx.py.
| rf401_importttreethx.trnd = ROOT.TRandom3() |
Definition at line 49 of file rf401_importttreethx.py.
| rf401_importttreethx.x = ROOT.RooRealVar("x", "x", -10, 10) |
Definition at line 60 of file rf401_importttreethx.py.
| rf401_importttreethx.y = ROOT.RooRealVar("y", "y", -10, 10) |
Definition at line 82 of file rf401_importttreethx.py.
| rf401_importttreethx.z = ROOT.RooRealVar("z", "z", -10, 10) |
Definition at line 83 of file rf401_importttreethx.py.