Belle II Software
development
SVDValidationSteering.py
1
#!/usr/bin/env python3
2
3
10
11
"""
12
<header>
13
<input>EvtGenSimRec.root</input>
14
<output>SVDValidationTTree.root</output>
15
<output>SVDValidationTTreeStrip.root</output>
16
<output>SVDValidationTTreeSpacePoint.root</output>
17
<output>SVDValidationTTreeSimhit.root</output>
18
<output>SVDValidationTTreeRecoTrack.root</output>
19
<output>SVDValidationTTreeRecoDigit.root</output>
20
<output>SVDValidationTTreeTrueHit.root</output>
21
<output>SVDValidationTTreeCluster.root</output>
22
<contact>SVD Software Group, svd-software
@belle2.org
</contact>
23
<description>This
is
the SVD validation steering file.</description>
24
</header>
25
"""
26
27
import basf2 as b2
28
# from basf2 import conditions as b2c
29
# Individual validation packages
30
from SVDValidationTTreeStrip import SVDValidationTTreeStrip
31
from SVDValidationTTreeSimhit import SVDValidationTTreeSimhit
32
from SVDValidationTTreeSpacePoint import SVDValidationTTreeSpacePoint
33
from SVDValidationTTreeRecoTrack import SVDValidationTTreeRecoTrack
34
from SVDValidationTTreeRecoDigit import SVDValidationTTreeRecoDigit
35
from SVDValidationTTreeTrueHit import SVDValidationTTreeTrueHit
36
from SVDValidationTTreeCluster import SVDValidationTTreeCluster
37
38
b2.set_random_seed(12345)
39
40
# b2c.prepend_globaltag("svd_onlySVDinGeoConfiguration")
41
42
main = b2.create_path()
43
44
# Using 1000 EvtGen events already simulated and reconstructed
45
input = b2.register_module('RootInput')
46
input.param('inputFileName', '../EvtGenSimRec.root')
47
main.add_module(input)
48
49
# Gearbox and Geometry modules need to be registered anyway
50
51
# Load parameters
52
gearbox = b2.register_module('Gearbox')
53
main.add_module(gearbox)
54
55
# Create geometry
56
main.add_module("Geometry")
57
58
# Show progress of processing
59
progress = b2.register_module('Progress')
60
main.add_module(progress)
61
62
# SVD validation modules
63
svdvalidationstrip = SVDValidationTTreeStrip()
64
main.add_module(svdvalidationstrip)
65
svdvalidationspacepoint = SVDValidationTTreeSpacePoint()
66
main.add_module(svdvalidationspacepoint)
67
svdvalidationsimhit = SVDValidationTTreeSimhit()
68
main.add_module(svdvalidationsimhit)
69
svdvalidationtrack = SVDValidationTTreeRecoTrack()
70
main.add_module(svdvalidationtrack)
71
svdvalidationdigit = SVDValidationTTreeRecoDigit()
72
main.add_module(svdvalidationdigit)
73
svdvalidationtruehit = SVDValidationTTreeTrueHit()
74
main.add_module(svdvalidationtruehit)
75
svdvalidationcluster = SVDValidationTTreeCluster()
76
main.add_module(svdvalidationcluster)
77
78
79
main.add_module('Progress')
80
b2.process(main)
81
82
# Print call statistics
83
print(b2.statistics)
svd
validation
SVDValidationSteering.py
Generated on Tue Nov 12 2024 02:42:11 for Belle II Software by
1.9.6