Belle II Software
development
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
test0_GenericB_GENSIMRECtoDST.py
1
#!/usr/bin/env python3
2
3
10
11
"""
12
<header>
13
<output>../GenericB_GENSIMRECtoDST.dst.root</output>
14
<contact>Frank Meier; frank.meier
@duke.edu
</contact>
15
</header>
16
"""
17
18
import basf2
19
from simulation import add_simulation
20
from reconstruction import add_reconstruction
21
from beamparameters import add_beamparameters
22
23
basf2.set_random_seed(12345)
24
25
main = basf2.create_path()
26
27
# specify number of events to be generated
28
eventinfosetter = basf2.register_module('EventInfoSetter')
29
eventinfosetter.param('evtNumList', [1000])
30
eventinfosetter.param('runList', [0])
31
eventinfosetter.param('expList', [0])
32
main.add_module(eventinfosetter)
33
34
# set the BeamParameters for running at Y(4S)
35
beamparameters = add_beamparameters(main, "Y4S")
36
basf2.print_params(beamparameters)
37
38
# generate BBbar events
39
main.add_module('EvtGenInput')
40
41
# detector simulation, digitisers
and
clusterisers
42
add_simulation(main)
43
44
# reconstruction
45
add_reconstruction(main)
46
47
# dst output
48
output = basf2.register_module(
'RootOutput'
)
49
output.param(
'outputFileName'
,
'../GenericB_GENSIMRECtoDST.dst.root'
)
50
main.add_module(output)
51
52
main.add_module(
'Progress'
)
53
# Go!
54
basf2.process(main)
55
56
# Print call statistics
57
print(basf2.statistics)
analysis
validation
test0_GenericB_GENSIMRECtoDST.py
Generated on Fri Apr 11 2025 03:07:43 for Belle II Software by
1.9.6