Belle II Software
release-08-00-10
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
a
b
c
e
f
g
n
p
s
v
z
Enumerator
c
d
f
p
t
u
v
w
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
# -*- coding: utf-8 -*-
3
4
11
12
"""
13
<header>
14
<input>EvtGenSim.root</input>
15
<output>EvtRec.root,EvtRec_mdst.root</output>
16
<cacheable/>
17
<contact>Software team b2soft@mail.desy.de</contact>
18
<description>
19
This steering file runs the standard reconstruction on an input file with
20
generic BBbar events.
21
</description>
22
</header>
23
"""
24
25
from
basf2
import
set_random_seed, create_path, process, statistics
26
from
reconstruction
import
add_reconstruction
27
from
mdst
import
add_mdst_output
28
from
validation
import
statistics_plots, event_timing_plot
29
30
set_random_seed(12345)
31
32
main = create_path()
33
34
# read file of simulated events
35
main.add_module(
"RootInput"
, inputFileName=
"../EvtGenSim.root"
)
36
37
# geometry parameter database
38
main.add_module(
"Gearbox"
)
39
40
# detector geometry
41
main.add_module(
"Geometry"
)
42
43
# reconstruction
44
add_reconstruction(main)
45
46
# memory profile
47
main.add_module(
"Profile"
)
48
49
# output
50
main.add_module(
"RootOutput"
, outputFileName=
"../EvtRec.root"
)
51
add_mdst_output(main,
True
,
"../EvtRec_mdst.root"
)
52
53
main.add_module(
'Progress'
)
54
process(main)
55
56
# Print call statistics
57
print(statistics)
58
59
statistics_plots(
60
"EvtRec_statistics.root"
,
61
contact=
"Software team b2soft@mail.desy.de"
,
62
job_desc=
"a standard reconstruction job with generic EvtGen events"
,
63
prefix=
"EvtRec"
,
64
)
65
event_timing_plot(
66
"../EvtRec.root"
,
67
"EvtRec_statistics.root"
,
68
contact=
"Software team b2soft@mail.desy.de"
,
69
job_desc=
"a standard reconstruction job with generic EvtGen events"
,
70
prefix=
"EvtRec"
,
71
)
validation
validation
EvtReconstruction.py
Generated on Fri Aug 9 2024 01:13:51 for Belle II Software by
1.9.1