Belle II Software
release-06-02-00
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
z
Typedefs
a
b
c
d
e
i
k
l
m
n
p
r
s
t
u
v
w
Enumerations
Enumerator
c
d
f
p
t
u
v
w
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
simraw.py
1
#!/usr/bin/env python3
2
# -*- coding: utf-8 -*-
3
4
11
12
import
basf2
as
b2
13
from
simulation
import
add_simulation
14
from
rawdata
import
add_packers, add_raw_output, add_raw_seqoutput
15
16
# create path
17
main = b2.create_path()
18
19
# specify number of events to be generated
20
main.add_module(
'EventInfoSetter'
, evtNumList=[10])
21
22
# generate BBbar events
23
main.add_module(
'EvtGenInput'
)
24
25
# detector simulation
26
add_simulation(main)
27
28
# pack raw data
29
add_packers(main)
30
31
# raw data output
32
add_raw_output(main,
'raw.root'
)
33
34
# sroot raw data output
35
add_raw_seqoutput(main,
'raw.sroot'
)
36
37
# sroot raw data output with computing group preferred naming
38
add_raw_seqoutput(main,
"raw.f%05d.sroot"
, fileNameIsPattern=
True
)
39
40
# process events and print call statistics
41
b2.process(main)
42
print(b2.statistics)
rawdata
examples
simraw.py
Generated on Thu Dec 28 2023 02:30:01 for Belle II Software by
1.9.1