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
081_module.py
1
#!/usr/bin/env python3
2
3
import
basf2
as
b2
4
5
6
class
MinModule
(b2.Module):
7
"""Very minimal class to print Hello World in each event"""
8
9
def
event
(self):
10
"""Event function, called once for each event"""
11
b2.B2INFO(
"Hello World!"
)
12
13
14
# create a path
15
main = b2.Path()
16
17
# set to generate 10 dummy events
18
main.add_module(
"EventInfoSetter"
, evtNumList=[10])
19
20
# and add our module
21
main.add_module(
MinModule
())
22
23
# run the path
24
b2.process(main)
081_module.MinModule
Definition:
081_module.py:6
081_module.MinModule.event
def event(self)
Definition:
081_module.py:9
online_book
basf2
steering_files
081_module.py
Generated on Wed Apr 9 2025 02:43:35 for Belle II Software by
1.9.6