15from __future__
import print_function
23a = ROOT.RooRealVar(
"a",
"a", 1, -10, 10)
24b = ROOT.RooRealVar(
"b",
"b", 2, -10, 10)
25c = ROOT.RooRealVar(
"c",
"c", 3, -10, 10)
26d = ROOT.RooRealVar(
"d",
"d", 4, -10, 10)
27x = ROOT.RooRealVar(
"x",
"x", 0, -10, 10)
33e = ROOT.RooCategory(
"e",
"e")
38g = ROOT.RooGaussian(
"g",
"g", x, a, b)
47s = ROOT.RooArgSet(a, b)
70subset1 = s.selectByName(
"a,b,c")
73subset2 = s.selectByAttrib(
"Constant", ROOT.kTRUE)
76s1 = ROOT.RooArgSet(a, b, c)
77s2 = ROOT.RooArgSet(c, d, e)
78subset3 = s1.selectCommon(s2)
107sclone = s3.Clone(
"sclone")
111sclone2 = s3.snapshot()
121sclone3 = s3.snapshot(ROOT.kTRUE)
127print(
"sclone = ", sclone)
144l = ROOT.RooArgList(a, b, c, d)
148l.add(ROOT.RooArgList(a, b, c, d))