19tagCat = ROOT.RooCategory(
"tagCat",
"Tagging category")
20tagCat.defineType(
"Lepton")
21tagCat.defineType(
"Kaon")
22tagCat.defineType(
"NetTagger-1")
23tagCat.defineType(
"NetTagger-2")
27b0flav = ROOT.RooCategory(
"b0flav",
"B0 flavour eigenstate", {
"B0": -1,
"B0bar": 1})
31x = ROOT.RooRealVar(
"x",
"x", 0, 10)
32p = ROOT.RooPolynomial(
"p",
"p", x)
33data = p.generate({x, b0flav, tagCat}, 10000)
41tcatType = ROOT.RooMappedCategory(
"tcatType",
"tagCat type", tagCat,
"Cut based")
44tcatType.map(
"Lepton",
"Cut based")
45tcatType.map(
"Kaon",
"Cut based")
48tcatType.map(
"NetTagger*",
"Neural Network")
51mtable = data.table(tcatType)
59b0Xtcat = ROOT.RooSuperCategory(
"b0Xtcat",
"b0flav X tagCat", {b0flav, tagCat})
62stable = data.table(b0Xtcat)
66b0Xtcat.setLabel(
"{B0bar;Lepton}")
70b0Xttype = ROOT.RooMultiCategory(
"b0Xttype",
"b0flav X tagType", {b0flav, tcatType})
73xtable = data.table(b0Xttype)