Belle II Software  release-08-01-10
Validate_B2Vlnu.py
1 #!/usr/bin/env python3
2 
3 
10 
11 """
12 <header>
13  <contact>P. Urquijo phillip.urquijo@unimelb.edu.au</contact>
14  <output>Validate_B2Vlnu.root</output>
15 </header>
16 """
17 
18 import basf2
19 from generators import add_evtgen_generator
20 from modularAnalysis import findMCDecay
21 from variables import variables
22 from validation_tools.metadata import create_validation_histograms
23 
24 basf2.set_random_seed('B+ => [anti-D*0 -> anti-D0 pi0] e+ nu_e')
25 
26 variables.addAlias('q2', 'formula(daughterInvM(1, 2)**2)')
27 
28 path = basf2.Path()
29 path.add_module('EventInfoSetter', evtNumList=[10000])
30 add_evtgen_generator(path, 'signal', basf2.find_file('decfiles/dec/Bu_Dst0enu.dec'))
31 findMCDecay('B+:sig', 'B+ -> [anti-D*0 -> anti-D0 pi0] e+ nu_e', path=path)
32 create_validation_histograms(
33  path, 'Validate_B2Vlnu.root', 'B+:sig',
34  [
35  ('q2', 50, -0.5, 12.5, '', 'P. Urquijo <phillip.urquijo@unimelb.edu.au>',
36  r'B2Vlnu $q^2$ of the $e^+\nu_{e}$ system in $B^+ \to \bar{D^{*0}} e^+ \nu_e$ (truth values)',
37  'should follow the reference', '#q^2'),
38  ],
39  description='B2Vlnu Validation to check generator level distributions',
40 )
41 path.add_module('Progress')
42 basf2.process(path)