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_B2VV.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_B2VV.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+ => [rho0 -> pi+ pi-] [rho+ -> pi0 pi+]')
25
26
variables.addAlias('cosThetaRhoZ', 'cosHelicityAngle(0, 0)')
27
variables.addAlias('cosThetaRhoP', 'cosHelicityAngle(1, 1)')
28
variables.addAlias('cosPlanarAngle', 'cosAcoplanarityAngle(0, 0)')
29
30
path = basf2.Path()
31
path.add_module('EventInfoSetter', evtNumList=[10000])
32
add_evtgen_generator(path, 'signal', basf2.find_file('decfiles/dec/1210032011.dec'))
33
findMCDecay('B+:sig', 'B+ -> [rho0 -> pi+ pi-] [rho+ -> pi0 pi+]', path=path)
34
create_validation_histograms(
35
path, 'Validate_B2VV.root'
,
'B+:sig'
,
36
[
37
(
'cosThetaRhoZ'
, 60, -1.2, 1.2,
''
,
'P. Urquijo <phillip.urquijo@unimelb.edu.au>'
,
38
r'B2VV helicity angle of the $\rho^0 \to \pi^+ \pi^-$ in $B^+ \to \rho^0 \rho^+$ (truth values)'
,
39
'should follow the reference'
,
'cos#theta_{helicity}(V1)'
),
40
(
'cosThetaRhoP'
, 60, -1.2, 1.2,
''
,
'P. Urquijo <phillip.urquijo@unimelb.edu.au>'
,
41
r'B2VV helicity angle of the $\rho^+ \to \pi^0 \pi^+$ in $B^+ \to \rho^0 \rho^+$ (truth values)'
,
42
'should follow the reference'
,
'cos#theta_{helicity}(V1)'
),
43
(
'cosPlanarAngle'
, 60, -1.2, 1.2,
''
,
'P. Urquijo <phillip.urquijo@unimelb.edu.au>'
,
44
r'Cosine of B2VV planar angle of the $B^+ \to \rho^0 \rho^+$ (truth values)'
,
45
'should follow the reference'
,
'cos#chi (planar angle)'
),
46
],
47
description=
'B2VV Validation to check generator level distributions'
,
48
)
49
path.add_module(
'Progress'
)
50
basf2.process(path)
decfiles
validation
Validate_B2VV.py
Generated on Sat Jan 18 2025 07:02:43 for Belle II Software by
1.9.6