Belle II Software  release-05-01-25
test2_BottomoniumGammaUpsilon.py
1 #!/usr/bin/env/python3
2 # -*-coding: utf-8-*-
3 
4 """
5 <header>
6  <input>../BottomoniumGammaUpsilon.udst.root</input>
7  <output>BottomoniumGammaUpsilon_Validation.root</output>
8  <contact>jiasen@buaa.edu.cn</contact>
9 </header>
10 """
11 
12 import basf2 as b2
13 import modularAnalysis as ma
14 from stdCharged import stdMu, stdPi
15 from stdPhotons import stdPhotons
16 from beamparameters import add_beamparameters
17 
18 # create a new path
19 BottomoniumGammaUpsilonskimpath = b2.Path()
20 
21 # set up for running at Y(3S)
22 beamparameters = add_beamparameters(BottomoniumGammaUpsilonskimpath, "Y3S")
23 
24 filelist = ['../BottomoniumGammaUpsilon.udst.root']
25 ma.inputMdstList('default', filelist, path=BottomoniumGammaUpsilonskimpath)
26 
27 # use standard final state particle lists
28 stdMu('loose', path=BottomoniumGammaUpsilonskimpath)
29 stdPi('loose', path=BottomoniumGammaUpsilonskimpath)
30 
31 stdPhotons('loose', path=BottomoniumGammaUpsilonskimpath)
32 
33 # Upsilon3S -> gam chib -> gam Y(1S,2S)(ll) decay
34 ma.reconstructDecay('Upsilon:mumu -> mu+:loose mu-:loose', '', path=BottomoniumGammaUpsilonskimpath)
35 ma.reconstructDecay('chi_b1(2P):mychibJ -> gamma:loose Upsilon:mumu', '', path=BottomoniumGammaUpsilonskimpath)
36 ma.reconstructDecay('Upsilon(3S) -> gamma:loose chi_b1(2P):mychibJ', '', path=BottomoniumGammaUpsilonskimpath)
37 
38 # the variables that are printed out are: the invariant mass of chib, the invariant mass
39 # of Y(1S,2S), and the invariant mass of Y(3S)
40 ma.variablesToHistogram(
41  filename='BottomoniumGammaUpsilon_Validation.root',
42  decayString='Upsilon(3S)',
43  variables=[
44  ('daughterInvariantMass(1)',
45  80,
46  9,
47  10.6),
48  ('daughter(1, daughter(1, M))',
49  60,
50  9.2,
51  10.4),
52  ('M',
53  50,
54  10,
55  10.7)
56  ], path=BottomoniumGammaUpsilonskimpath)
57 
58 b2.process(BottomoniumGammaUpsilonskimpath)
59 print(b2.statistics)
stdPhotons
Definition: stdPhotons.py:1