19 tagCat = ROOT.RooCategory(
"tagCat",
"Tagging category")
20 tagCat.defineType(
"Lepton")
21 tagCat.defineType(
"Kaon")
22 tagCat.defineType(
"NetTagger-1")
23 tagCat.defineType(
"NetTagger-2")
27 b0flav = ROOT.RooCategory(
"b0flav",
"B0 flavour eigenstate")
28 b0flav.defineType(
"B0", -1)
29 b0flav.defineType(
"B0bar", 1)
33 x = ROOT.RooRealVar(
"x",
"x", 0, 10)
34 p = ROOT.RooPolynomial(
"p",
"p", x)
35 data = p.generate(ROOT.RooArgSet(x, b0flav, tagCat), 10000)
43 tcatType = ROOT.RooMappedCategory(
44 "tcatType",
"tagCat type", tagCat,
"Cut based")
47 tcatType.map(
"Lepton",
"Cut based")
48 tcatType.map(
"Kaon",
"Cut based")
51 tcatType.map(
"NetTagger*",
"Neural Network")
54 mtable = data.table(tcatType)
62 b0Xtcat = ROOT.RooSuperCategory(
63 "b0Xtcat",
"b0flav X tagCat", ROOT.RooArgSet(b0flav, tagCat))
66 stable = data.table(b0Xtcat)
70 b0Xtcat.setLabel(
"{B0bar;Lepton}")
74 b0Xttype = ROOT.RooMultiCategory(
75 "b0Xttype",
"b0flav X tagType", ROOT.RooArgSet(b0flav, tcatType))
78 xtable = data.table(b0Xttype)