Belle II Software
light-2403-persian
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
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 Fri Apr 12 2024 06:52:14 for Belle II Software by
1.9.1