Belle II Software  release-05-01-25
test2_CharmlessHad2BodyCharged.py
1 #!/usr/bin/env/python3
2 # -*-coding: utf-8-*-
3 
4 """
5 <header>
6  <input>../CharmlessHad2BodyCharged.udst.root</input>
7  <output>CharmlessHad2BodyCharged_Validation.root</output>
8  <contact>khsmith@student.unimelb.edu.au</contact>
9 </header>
10 """
11 
12 import basf2 as b2
13 import modularAnalysis as ma
14 from validation_tools.metadata import create_validation_histograms
15 
16 charmless2chargedpath = b2.Path()
17 myEmail = 'khsmith@student.unimelb.edu.au'
18 
19 # the variables that are printed out are: Mbc, deltaE and Mbc vs deltaE
20 ma.inputMdst('default', '../CharmlessHad2BodyCharged.udst.root', path=charmless2chargedpath)
21 
22 create_validation_histograms(
23  rootfile='CharmlessHad2BodyCharged_Validation.root',
24  particlelist='B-:2BodySkim',
25  variables_1d=[(
26  'deltaE', 100, -1, 1,
27  '#Delta E',
28  myEmail,
29  '$\\Delta E$ of event',
30  'Peak around zero',
31  '#Delta E [GeV]', 'Candidates',
32  'shifter'
33  ), (
34  'Mbc', 100, 5.2, 5.3,
35  'Mbc',
36  myEmail,
37  'Beam-constrained mass of event',
38  'Peaking around B mass (5.28 GeV)',
39  'M_{bc} [GeV]', 'Candidates',
40  'shifter'
41  )],
42  variables_2d=[(
43  'deltaE', 50, -0.7, 0.7,
44  'Mbc', 50, 5.23, 5.31,
45  'Mbc vs deltaE',
46  myEmail,
47  'Plot of the $\\Delta E$ of the event against the beam constrained mass',
48  'Peak of $\\Delta E$ around zero, and $M_{bc}$ around B mass (5.28 GeV)',
49  '#Delta E [GeV]', 'M_{bc} [GeV]',
50  'colz, shifter'
51  )],
52  path=charmless2chargedpath
53 )
54 
55 b2.process(charmless2chargedpath)
56 print(b2.statistics)
validation_tools.metadata
Definition: metadata.py:1