19tagCat = ROOT.RooCategory(
"tagCat",
"Tagging category")
20tagCat.defineType(
"Lepton")
21tagCat.defineType(
"Kaon")
22tagCat.defineType(
"NetTagger-1")
23tagCat.defineType(
"NetTagger-2")
30b0flav = ROOT.RooCategory(
"b0flav",
"B0 flavour eigenstate", {
"B0": -1,
"B0bar": 1})
37x = ROOT.RooRealVar(
"x",
"x", 0, 10)
38data = ROOT.RooPolynomial(
"p",
"p", x).generate({x, b0flav, tagCat}, 10000)
44btable = data.table(b0flav)
49ttable = data.table(tagCat,
"x>8.23")
54bttable = data.table({tagCat, b0flav})
60print(
"Number of events with B0 flavor is ", nb0)
63fracLep = ttable.getFrac(
"Lepton")
64print(
"Fraction of events tagged with Lepton tag is ", fracLep)
70tagCat.setRange(
"good",
"Lepton,Kaon")
73tagCat.addToRange(
"soso",
"NetTagger-1")
74tagCat.addToRange(
"soso",
"NetTagger-2")
77goodData = data.reduce(CutRange=
"good")
78goodData.table(tagCat).
Print(
"v")
void Print(GNN_Data &d, std::string txt="")