18tagCat = ROOT.RooCategory(
"tagCat",
"Tagging category")
19tagCat.defineType(
"Lepton")
20tagCat.defineType(
"Kaon")
21tagCat.defineType(
"NetTagger-1")
22tagCat.defineType(
"NetTagger-2")
26b0flav = ROOT.RooCategory(
"b0flav",
"B0 flavour eigenstate")
27b0flav.defineType(
"B0", -1)
28b0flav.defineType(
"B0bar", 1)
32x = ROOT.RooRealVar(
"x",
"x", 0, 10)
33p = ROOT.RooPolynomial(
"p",
"p", x)
34data = p.generate(ROOT.RooArgSet(x, b0flav, tagCat), 10000)
42tcatType = ROOT.RooMappedCategory(
43 "tcatType",
"tagCat type", tagCat,
"Cut based")
46tcatType.map(
"Lepton",
"Cut based")
47tcatType.map(
"Kaon",
"Cut based")
50tcatType.map(
"NetTagger*",
"Neural Network")
53mtable = data.table(tcatType)
61b0Xtcat = ROOT.RooSuperCategory(
62 "b0Xtcat",
"b0flav X tagCat", ROOT.RooArgSet(b0flav, tagCat))
65stable = data.table(b0Xtcat)
69b0Xtcat.setLabel(
"{B0bar;Lepton}")
73b0Xttype = ROOT.RooMultiCategory(
74 "b0Xttype",
"b0flav X tagType", ROOT.RooArgSet(b0flav, tcatType))
77xtable = data.table(b0Xttype)