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
masterclass_output.py
1
#!/usr/bin/env python
2
3
10
11
import
basf2
as
b2
12
from
simulation
import
add_simulation
13
from
reconstruction
import
add_reconstruction
14
15
16
main = b2.Path()
17
18
b2.set_random_seed(12345)
19
main.add_module(
'EventInfoSetter'
, evtNumList=[10])
20
21
particlegun = b2.register_module(
'ParticleGun'
)
22
particlegun.param(
'momentumGeneration'
,
'uniform'
)
23
particlegun.param(
'momentumParams'
, [0.5, 4.0])
24
particlegun.param(
'pdgCodes'
, [13, -13, 211, -211, 321, -321, 22])
25
particlegun.param(
'nTracks'
, 10)
26
particlegun.param(
'thetaGeneration'
,
'uniformCos'
)
27
particlegun.param(
'thetaParams'
, [0.0, 180.0])
28
main.add_module(particlegun)
29
30
add_simulation(main)
31
add_reconstruction(main)
32
33
masterclass = main.add_module(
'MasterClass'
)
34
masterclass.param(
'outputFileName'
,
'masterclass.root'
)
35
36
b2.process(main)
masterclass
tests
masterclass_output.py
Generated on Wed Apr 9 2025 02:43:06 for Belle II Software by
1.9.6