Belle II Software  release-05-01-25
test2_BtoDh_Kspipipi0.py
1 #!/usr/bin/env/python3
2 # -*-coding: utf-8-*-
3 
4 """
5 <header>
6  <input>14120400.udst.root</input>
7  <output>BtoDh_Kspipipi0_Validation.root</output>
8  <contact>niharikarout@physics.iitm.ac.in</contact>
9 </header>
10 """
11 
12 import basf2 as b2
13 import modularAnalysis as ma
14 from stdCharged import stdK, stdPi
15 from stdPi0s import loadStdSkimPi0
16 from stdV0s import stdKshorts
17 from stdPi0s import stdPi0s
18 
19 kspipipi0Path = b2.Path()
20 
21 ma.inputMdst('default', '14120400.udst.root', path=kspipipi0Path)
22 
23 stdPi('all', path=kspipipi0Path)
24 stdK('all', path=kspipipi0Path)
25 loadStdSkimPi0(path=kspipipi0Path)
26 stdKshorts(path=kspipipi0Path)
27 stdPi0s(listtype='eff40_Jan2020Fit', path=kspipipi0Path)
28 
29 ma.reconstructDecay('D0 -> K_S0:merged pi-:all pi+:all pi0:eff40_Jan2020Fit', '1.84 < M < 1.89', path=kspipipi0Path)
30 ma.reconstructDecay('B-:ch3 ->D0 K-:all', '5.24 < Mbc < 5.3 and abs(deltaE) < 0.15', path=kspipipi0Path)
31 
32 # the variables that are printed out are: Mbc, deltaE and the daughter particle invariant masses.
33 
34 ma.variablesToHistogram(
35  filename='BtoDh_Kspipipi0_Validation.root',
36  decayString='B-:ch3',
37  variables=[
38  ('Mbc', 100, 5.2, 5.3),
39  ('deltaE', 100, -1, 1),
40  ('daughter(0, InvM)', 100, 1.8, 1.9)], # D0 invariant mass
41  variables_2d=[
42  ('Mbc', 50, 5.23, 5.31, 'deltaE', 50, -0.7, 0.7)], path=kspipipi0Path)
43 
44 b2.process(kspipipi0Path)
45 print(b2.statistics)
stdPi0s
Definition: stdPi0s.py:1