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