Belle II Software
release-05-01-25
test2_BtoDh_Kspi0.py
1
#!/usr/bin/env/python3
2
# -*-coding: utf-8-*-
3
4
"""
5
<header>
6
<input>14120300.udst.root</input>
7
<output>BtoDh_Kspi0_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
kspi0Path = b2.Path()
20
21
ma.inputMdst(
'default'
,
'14120300.udst.root'
, path=kspi0Path)
22
23
stdPi(
'all'
, path=kspi0Path)
24
stdK(
'all'
, path=kspi0Path)
25
loadStdSkimPi0(path=kspi0Path)
26
stdKshorts(path=kspi0Path)
27
stdPi0s
(listtype=
'eff50_Jan2020Fit'
, path=kspi0Path)
28
29
ma.reconstructDecay(
'D0 -> K_S0:merged pi0:eff50_Jan2020Fit'
,
'1.84 < M < 1.89'
, path=kspi0Path)
30
ma.reconstructDecay(
'B-:ch3 ->D0 K-:all'
,
'5.24 < Mbc < 5.3 and abs(deltaE) < 0.15'
, path=kspi0Path)
31
32
# the variables that are printed out are: Mbc, deltaE and the daughter particle invariant masses.
33
34
ma.variablesToHistogram(
35
filename=
'BtoDh_Kspi0_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=kspi0Path)
43
44
b2.process(kspi0Path)
45
print(b2.statistics)
stdPi0s
Definition:
stdPi0s.py:1
skim
validation
test2_BtoDh_Kspi0.py
Generated on Fri Nov 5 2021 03:57:47 for Belle II Software by
1.8.17