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
1_gensimrec_1110021010.py
1
#!/usr/bin/env python3
2
3
10
11
"""
12
<header>
13
<output>../1110021010.dst.root</output>
14
<contact>Frank Meier; frank.meier
@duke.edu
</contact>
15
</header>
16
"""
17
# Generates and reconstructs 1000 [B0 -> rho0 gamma] decay events for nightly
18
# validation. This script is NOT AN OFFICIAL DATA PRODUCTION script. Always
19
# always refer to the B2P project for the latest official scripts.
20
21
import basf2
22
from generators import add_evtgen_generator
23
from simulation import add_simulation
24
from reconstruction import add_reconstruction
25
from mdst import add_mdst_output
26
27
DECAY_MODE_ID = 1110021010
28
OUTPUT_FILENAME = f"../{DECAY_MODE_ID}.dst.root"
29
30
basf2.set_random_seed(12345)
# for reproducibility
31
main = basf2.Path()
32
main.add_module(
'EventInfoSetter'
, evtNumList=[1000])
33
add_evtgen_generator(
34
main,
'signal'
,
35
basf2.find_file(f
'decfiles/dec/{DECAY_MODE_ID}.dec'
)
36
)
# signal event generation
37
add_simulation(main)
# detector simulation without background overlay
38
add_reconstruction(main)
# reconstruction
39
add_mdst_output(main, filename=OUTPUT_FILENAME)
# mdst output
40
main.add_module(
'Progress'
)
41
basf2.process(main)
42
print(basf2.statistics)
analysis
validation
1_gensimrec_1110021010.py
Generated on Sat Jan 18 2025 07:01:39 for Belle II Software by
1.9.6