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")
28b0flav.defineType(
"B0", -1)
29b0flav.defineType(
"B0bar", 1)
33x = ROOT.RooRealVar(
"x",
"x", 0, 10)
34p = ROOT.RooPolynomial(
"p",
"p", x)
35data = p.generate(ROOT.RooArgSet(x, b0flav, tagCat), 10000)
43tcatType = ROOT.RooMappedCategory(
44 "tcatType",
"tagCat type", tagCat,
"Cut based")
47tcatType.map(
"Lepton",
"Cut based")
48tcatType.map(
"Kaon",
"Cut based")
51tcatType.map(
"NetTagger*",
"Neural Network")
54mtable = data.table(tcatType)
62b0Xtcat = ROOT.RooSuperCategory(
63 "b0Xtcat",
"b0flav X tagCat", ROOT.RooArgSet(b0flav, tagCat))
66stable = data.table(b0Xtcat)
70b0Xtcat.setLabel(
"{B0bar;Lepton}")
74b0Xttype = ROOT.RooMultiCategory(
75 "b0Xttype",
"b0flav X tagType", ROOT.RooArgSet(b0flav, tcatType))
78xtable = data.table(b0Xttype)