23tagCat = ROOT.RooCategory(
"tagCat",
"Tagging category")
24tagCat.defineType(
"Lepton")
25tagCat.defineType(
"Kaon")
26tagCat.defineType(
"NetTagger-1")
27tagCat.defineType(
"NetTagger-2")
31b0flav = ROOT.RooCategory(
"b0flav",
"B0 flavour eigenstate")
32b0flav.defineType(
"B0", -1)
33b0flav.defineType(
"B0bar", 1)
37x = ROOT.RooRealVar(
"x",
"x", 0, 10)
38p = ROOT.RooPolynomial(
"p",
"p", x)
39data = p.generate(ROOT.RooArgSet(x, b0flav, tagCat), 10000)
47tcatType = ROOT.RooMappedCategory(
48 "tcatType",
"tagCat type", tagCat,
"Cut based")
51tcatType.map(
"Lepton",
"Cut based")
52tcatType.map(
"Kaon",
"Cut based")
55tcatType.map(
"NetTagger*",
"Neural Network")
58mtable = data.table(tcatType)
66b0Xtcat = ROOT.RooSuperCategory(
67 "b0Xtcat",
"b0flav X tagCat", ROOT.RooArgSet(b0flav, tagCat))
70stable = data.table(b0Xtcat)
74b0Xtcat.setLabel(
"{B0bar;Lepton}")
78b0Xttype = ROOT.RooMultiCategory(
79 "b0Xttype",
"b0flav X tagType", ROOT.RooArgSet(b0flav, tcatType))
82xtable = data.table(b0Xttype)