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
example.py
1
#!/usr/bin/env python3
2
3
10
11
20
21
import
basf2
as
b2
22
from
simulation
import
add_simulation
23
from
reconstruction
import
add_reconstruction
24
from
mdst
import
add_mdst_output
25
26
# create path
27
main = b2.create_path()
28
29
# specify number of events to be generated
30
main.add_module(
'EventInfoSetter'
, evtNumList=[10])
31
32
# print event numbers
33
main.add_module(
'EventInfoPrinter'
)
34
35
# generate BBbar events
36
main.add_module(
'EvtGenInput'
)
37
38
# detector and L1 trigger simulation
39
add_simulation(main)
40
# or add_simulation(main, components) to simulate a selection of detectors and triggr
41
42
# reconstruction
43
add_reconstruction(main)
44
# or add_reconstruction(main, components) to run the reconstruction of a selection of detectors
45
46
# full output
47
main.add_module(
'RootOutput'
, outputFileName=
'output.root'
)
48
49
# mdst output
50
add_mdst_output(main)
51
52
# cdst output (for calibration)
53
# add_cdst_output(main)
54
55
# process events and print call statistics
56
b2.process(main)
57
print(b2.statistics)
reconstruction
examples
example.py
Generated on Wed Apr 9 2025 02:44:26 for Belle II Software by
1.9.6