14from __future__
import print_function
22a = ROOT.RooRealVar(
"a",
"a", 1, -10, 10)
23b = ROOT.RooRealVar(
"b",
"b", 2, -10, 10)
24c = ROOT.RooRealVar(
"c",
"c", 3, -10, 10)
25d = ROOT.RooRealVar(
"d",
"d", 4, -10, 10)
26x = ROOT.RooRealVar(
"x",
"x", 0, -10, 10)
32e = ROOT.RooCategory(
"e",
"e")
37g = ROOT.RooGaussian(
"g",
"g", x, a, b)
46s = ROOT.RooArgSet(a, b)
69subset1 = s.selectByName(
"a,b,c")
72subset2 = s.selectByAttrib(
"Constant", ROOT.kTRUE)
75s1 = ROOT.RooArgSet(a, b, c)
76s2 = ROOT.RooArgSet(c, d, e)
77subset3 = s1.selectCommon(s2)
87for arg
in [a, b, c, d, e, g]:
92sclone = s3.Clone(
"sclone")
96sclone2 = s3.snapshot()
106sclone3 = s3.snapshot(
True)
112print(
"sclone = ", sclone)
129l = ROOT.RooArgList(a, b, c, d)
133l.add(ROOT.RooArgList(a, b, c, d))