Belle II Software
release-05-01-25
svdTrackingValidationBkg.py
1
#!/usr/bin/env python3
2
# -*- coding: utf-8 -*-
3
4
"""
5
<header>
6
<contact>software-tracking@belle2.org</contact>
7
<input>EvtGenSim.root</input>
8
<output>SVDTrackingValidationBkg.root</output>
9
<description>
10
This module validates that the svd only track finding is capable of reconstructing tracks in Y(4S) runs with bkg included.
11
</description>
12
</header>
13
"""
14
15
VALIDATION_OUTPUT_FILE =
'SVDTrackingValidationBkg.root'
16
N_EVENTS = 1000
17
ACTIVE =
True
18
19
import
basf2
20
basf2.set_random_seed(1337)
21
22
import
logging
23
24
from
tracking.validation.run
import
TrackingValidationRun
25
import
tracking
26
27
28
def
setupFinderModule(path):
29
tracking.add_hit_preparation_modules(path, components=[
"SVD"
])
30
tracking.add_vxd_track_finding_vxdtf2(path, components=[
"SVD"
])
31
32
33
class
SVD4Layer
(
TrackingValidationRun
):
34
"""
35
Validation class for the four 4-SVD Layer tracking
36
"""
37
38
n_events = N_EVENTS
39
40
generator_module =
'generic'
41
42
root_input_file =
'../EvtGenSim.root'
43
44
components =
None
45
46
47
finder_module = staticmethod(setupFinderModule)
48
49
50
tracking_coverage = {
51
'WhichParticles'
: [
'SVD'
],
# Include all particles seen in the SVD detector, also secondaries
52
'UsePXDHits'
:
False
,
53
'UseSVDHits'
:
True
,
54
'UseCDCHits'
:
False
,
55
}
56
57
58
fit_tracks =
True
59
60
pulls =
True
61
62
output_file_name = VALIDATION_OUTPUT_FILE
63
64
65
def
main
():
66
"""
67
create SVD validation class and execute
68
"""
69
validation_run =
SVD4Layer
()
70
validation_run.configure_and_execute_from_commandline()
71
72
73
if
__name__ ==
'__main__'
:
74
logging.basicConfig(level=logging.INFO)
75
if
ACTIVE:
76
main
()
tracking.validation.run
Definition:
run.py:1
main
int main(int argc, char **argv)
Run all tests.
Definition:
test_main.cc:77
svdTrackingValidationBkg.SVD4Layer
Definition:
svdTrackingValidationBkg.py:33
tracking.validation.run.TrackingValidationRun
Definition:
run.py:18
tracking
validation
svdTrackingValidationBkg.py
Generated on Fri Nov 5 2021 04:05:01 for Belle II Software by
1.8.17