Belle II Software light-2601-hyperion
100_cs_onnx.py
1#!/usr/bin/env python3
2import basf2 as b2
3import modularAnalysis as ma
4import stdPi0s
5
6# Perform analysis.
7main = b2.create_path()
8
9ma.inputMdstList(
10 filelist=[
11 b2.find_file(
12 "starterkit/2021/B02ks0pi0_sample.root", data_type="examples"
13 ),
14 b2.find_file("starterkit/2021/uubar_sample.root", data_type="examples"),
15 ],
16 path=main,
17)
18
19stdPi0s.stdPi0s(path=main, listtype="eff60_May2020")
20ma.fillParticleList(
21 decayString="pi+:good", cut="chiProb > 0.001 and pionID > 0.5", path=main
22)
23
24ma.reconstructDecay(
25 decayString="K_S0 -> pi+:good pi-:good", cut="0.480<=M<=0.516", path=main
26)
27
28ma.reconstructDecay(
29 decayString="B0 -> K_S0 pi0:eff60_May2020",
30 cut="5.1 < Mbc < 5.3 and abs(deltaE) < 2",
31 path=main,
32)
33
34ma.buildRestOfEvent(target_list_name="B0", path=main)
35cleanMask = (
36 "cleanMask",
37 "nCDCHits > 0 and useCMSFrame(p)<=3.2",
38 "p >= 0.05 and useCMSFrame(p)<=3.2",
39)
40ma.appendROEMasks(list_name="B0", mask_tuples=[cleanMask], path=main)
41
42ma.buildContinuumSuppression(list_name="B0", roe_mask="cleanMask", path=main)
43
44simpleCSVariables = [
45 "R2",
46 "thrustBm",
47 "thrustOm",
48 "cosTBTO",
49 "cosTBz",
50 "KSFWVariables(pt_sum)",
51 "KSFWVariables(mm2)",
52 "KSFWVariables(hso00)",
53 "KSFWVariables(hso01)",
54 "KSFWVariables(hso02)",
55 "KSFWVariables(hso03)",
56 "KSFWVariables(hso04)",
57 "KSFWVariables(hso10)",
58 "KSFWVariables(hso12)",
59 "KSFWVariables(hso14)",
60 "KSFWVariables(hso20)",
61 "KSFWVariables(hso22)",
62 "KSFWVariables(hso24)",
63 "KSFWVariables(hoo0)",
64 "KSFWVariables(hoo1)",
65 "KSFWVariables(hoo2)",
66 "KSFWVariables(hoo3)",
67 "KSFWVariables(hoo4)",
68 "CleoConeCS(1)",
69 "CleoConeCS(2)",
70 "CleoConeCS(3)",
71 "CleoConeCS(4)",
72 "CleoConeCS(5)",
73 "CleoConeCS(6)",
74 "CleoConeCS(7)",
75 "CleoConeCS(8)",
76 "CleoConeCS(9)",
77]
78
79ma.variablesToNtuple(
80 decayString="B0",
81 variables=simpleCSVariables + ["Mbc", "isContinuumEvent"],
82 filename="ContinuumSuppression.root",
83 treename="tree",
84 path=main,
85)
86
87b2.process(main)
stdPi0s(listtype="eff60_May2020", path=None, beamBackgroundMVAWeight="", fakePhotonMVAWeight="", biasCorrectionTable="")
Definition stdPi0s.py:22