Belle II Software
light-2406-ragdoll
Toggle main menu visibility
Main Page
Modules
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
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
Variables
Typedefs
a
b
c
d
l
m
n
p
r
s
w
Enumerations
Enumerator
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
_
c
d
e
f
h
i
m
o
p
r
s
t
v
w
Enumerations
b
c
e
g
h
m
p
s
t
v
Enumerator
b
c
k
t
Related Functions
Files
File List
File Members
All
Functions
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 Tue Jul 9 2024 23:27:37 for Belle II Software by
1.9.6