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
generateMixedMCforDecFileVal.py
1
#!/usr/bin/env python3
2
3
10
11
"""
12
<header>
13
<output>../mixed.cdst.root</output>
14
<description>creating mixed MC cdst files needed
for
the DecayFile/Multiplicity validation</description>
15
</header>
16
"""
17
18
import basf2 as b2
19
import generators as ge
20
21
b2.set_random_seed('mixed')
22
23
# create path
24
main = b2.create_path()
25
26
# default to early phase 3 (exp=1003), run 0, number of events = 100000
27
main.add_module("EventInfoSetter", expList=1003, runList=0, evtNumList=100000)
28
29
# generate BBbar events
30
ge.add_evtgen_generator(path=main, finalstate='mixed')
31
32
# finally add cdst output
33
main.add_module('RootOutput', outputFileName='../mixed.cdst.root')
34
35
main.add_module('Progress')
36
# process events and print call statistics
37
b2.process(path=main)
38
print(b2.statistics)
generators
validation
decayfile
generateMixedMCforDecFileVal.py
Generated on Wed Apr 9 2025 02:42:05 for Belle II Software by
1.9.6