Belle II Software
release-09-00-00
Toggle main menu visibility
Main Page
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
z
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
w
x
z
Typedefs
a
b
c
d
e
g
i
k
l
m
n
p
r
s
t
u
v
w
Enumerations
Enumerator
c
d
f
p
t
v
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerations
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
k
l
m
n
o
p
r
s
t
u
v
w
z
Related Functions
b
c
d
g
i
o
r
s
t
Files
File List
File Members
All
Functions
Typedefs
Macros
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/1263210000.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)
decfiles
validation
Validate_B2Vlnu.py
Generated on Sat Jan 18 2025 07:02:43 for Belle II Software by
1.9.6