Belle II Software release-09-00-00
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
18import basf2
19from generators import add_evtgen_generator
20from modularAnalysis import findMCDecay
21from variables import variables
22from validation_tools.metadata import create_validation_histograms
23
24basf2.set_random_seed('B+ => [anti-D*0 -> anti-D0 pi0] e+ nu_e')
25
26variables.addAlias('q2', 'formula(daughterInvM(1, 2)**2)')
27
28path = basf2.Path()
29path.add_module('EventInfoSetter', evtNumList=[10000])
30add_evtgen_generator(path, 'signal', basf2.find_file('decfiles/dec/1263210000.dec'))
31findMCDecay('B+:sig', 'B+ -> [anti-D*0 -> anti-D0 pi0] e+ nu_e', path=path)
32create_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)
41path.add_module('Progress')
42basf2.process(path)