Belle II Software development
090_cs.py
1#!/usr/bin/env python3
2
3import basf2 as b2
4import modularAnalysis as ma
5import stdPi0s
6
7# Perform analysis.
8main = b2.create_path()
9
10ma.inputMdstList(
11 filelist=[
12 b2.find_file(
13 "starterkit/2021/B02ks0pi0_sample.root", data_type="examples"
14 ),
15 b2.find_file("starterkit/2021/uubar_sample.root", data_type="examples"),
16 ],
17 path=main,
18)
19
20stdPi0s.stdPi0s(path=main, listtype="eff60_May2020")
21ma.fillParticleList(
22 decayString="pi+:good", cut="chiProb > 0.001 and pionID > 0.5", path=main
23)
24
25ma.reconstructDecay(
26 decayString="K_S0 -> pi+:good pi-:good", cut="0.480<=M<=0.516", path=main
27)
28
29ma.reconstructDecay(
30 decayString="B0 -> K_S0 pi0:eff60_May2020",
31 cut="5.1 < Mbc < 5.3 and abs(deltaE) < 2",
32 path=main,
33) # [E13]
34
35ma.buildRestOfEvent(target_list_name="B0", path=main) # [S10]
36cleanMask = (
37 "cleanMask",
38 "nCDCHits > 0 and useCMSFrame(p)<=3.2",
39 "p >= 0.05 and useCMSFrame(p)<=3.2",
40)
41ma.appendROEMasks(list_name="B0", mask_tuples=[cleanMask], path=main)
42
43ma.buildContinuumSuppression(list_name="B0", roe_mask="cleanMask", path=main) # [E10]
44
45simpleCSVariables = [ # [S20]
46 "R2",
47 "thrustBm",
48 "thrustOm",
49 "cosTBTO",
50 "cosTBz",
51]
52
53ma.variablesToNtuple(
54 decayString="B0",
55 variables=simpleCSVariables + ["Mbc", "isContinuumEvent"],
56 filename="ContinuumSuppression.root",
57 treename="tree",
58 path=main,
59)
60
61b2.process(main) # [E20]
def stdPi0s(listtype="eff60_May2020", path=None, beamBackgroundMVAWeight="", fakePhotonMVAWeight="", biasCorrectionTable="")
Definition: stdPi0s.py:22