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
EvtReconstruction.py
1
#!/usr/bin/env python3
2
3
10
11
"""
12
<header>
13
<input>EvtGenSim.root</input>
14
<output>EvtRec.root,EvtRec_mdst.root</output>
15
<cacheable/>
16
<contact>arul.prakash
@physik.uni
-muenchen.de</contact>
17
<description>
18
This steering file runs the standard reconstruction on an input file
with
19
generic BBbar events.
20
</description>
21
</header>
22
"""
23
24
from basf2 import set_random_seed, create_path, process, statistics
25
from reconstruction import add_reconstruction
26
from mdst import add_mdst_output
27
from validation import statistics_plots, event_timing_plot
28
29
set_random_seed(12345)
30
31
main = create_path()
32
33
# read file of simulated events
34
main.add_module("RootInput", inputFileName="../EvtGenSim.root")
35
36
# geometry parameter database
37
main.add_module("Gearbox")
38
39
# detector geometry
40
main.add_module("Geometry")
41
42
# reconstruction
43
add_reconstruction(main)
44
45
# memory profile
46
main.add_module("Profile")
47
48
# output
49
main.add_module("RootOutput", outputFileName="../EvtRec.root")
50
add_mdst_output(main, True, "../EvtRec_mdst.root")
51
52
main.add_module('Progress')
53
process(main)
54
55
# Print call statistics
56
print(statistics)
57
58
statistics_plots(
59
"EvtRec_statistics.root"
,
60
contact=
"arul.prakash@physik.uni-muenchen.de"
,
61
job_desc=
"a standard reconstruction job with generic EvtGen events"
,
62
prefix=
"EvtRec"
,
63
)
64
event_timing_plot(
65
"../EvtRec.root"
,
66
"EvtRec_statistics.root"
,
67
contact=
"arul.prakash@physik.uni-muenchen.de"
,
68
job_desc=
"a standard reconstruction job with generic EvtGen events"
,
69
prefix=
"EvtRec"
,
70
)
validation
validation
EvtReconstruction.py
Generated on Sat Apr 12 2025 03:09:50 for Belle II Software by
1.9.6