Belle II Software
release-08-01-10
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 Mon Sep 23 2024 14:07:13 for Belle II Software by
1.9.1