Belle II Software
release-08-01-10
fullTrackingValidation_plusEclSeeding.py
1
#!/usr/bin/env python3
2
3
10
11
"""
12
<header>
13
<contact>simon.kurz@desy.de</contact>
14
<input>EvtGenSimNoBkg.root</input>
15
<output>fullTrackingValidation_plusECL.root</output>
16
<description>This module validates the full track reconstruction including the ECL seeding.</description>
17
</header>
18
"""
19
20
from
tracking.validation.run
import
TrackingValidationRun
21
import
tracking
22
import
logging
23
import
reconstruction
24
import
basf2
25
VALIDATION_OUTPUT_FILE =
'fullTrackingValidation_plusECL.root'
26
N_EVENTS = 1000
27
ACTIVE =
False
28
29
30
class
fullTrackingValidation_plusECL
(
TrackingValidationRun
):
31
"""Validate the full track-finding chain includung the ecl seeded ckf"""
32
33
n_events = N_EVENTS
34
35
generator_module =
'generic'
36
37
root_input_file =
'../EvtGenSimNoBkg.root'
38
39
@staticmethod
40
def
finder_module
(path):
41
"""Do the standard tracking reconstruction chain"""
42
43
components = [
"SVD"
,
"CDC"
,
"ECL"
]
44
45
reconstruction.add_prefilter_pretracking_reconstruction
(path, components=components)
46
47
tracking.add_tracking_reconstruction(path, components=components,
48
use_svd_to_cdc_ckf=
True
, use_ecl_to_cdc_ckf=
True
)
49
50
51
tracking_coverage = {
52
'WhichParticles'
: [],
# Include all particles, also secondaries
53
'UsePXDHits'
:
False
,
54
'UseSVDHits'
:
True
,
55
'UseCDCHits'
:
True
,
56
"UseReassignedHits"
:
True
,
57
'UseNLoops'
: 1
58
}
59
60
61
fit_tracks =
False
62
63
use_fit_information =
True
64
65
use_expert_folder =
False
66
67
pulls =
True
68
69
resolution =
True
70
71
output_file_name = VALIDATION_OUTPUT_FILE
72
73
non_expert_parameters = []
74
75
76
def
main
():
77
basf2.set_random_seed(1337)
78
validation_run =
fullTrackingValidation_plusECL
()
79
validation_run.configure_and_execute_from_commandline()
80
81
82
if
__name__ ==
'__main__'
:
83
logging.basicConfig(level=logging.INFO)
84
85
if
ACTIVE:
86
main
()
87
else
:
88
print(
"This validation deactivated and thus basf2 is not executed.\n"
89
"If you want to run this validation, please set the 'ACTIVE' flag above to 'True'.\n"
90
"Exiting."
)
fullTrackingValidation_plusEclSeeding.fullTrackingValidation_plusECL
Definition:
fullTrackingValidation_plusEclSeeding.py:30
tracking.run.tracked_event_generation.ReadOrGenerateTrackedEventsRun.finder_module
finder_module
Name of the finder module to be used - can be everything that is accepted by tracking....
Definition:
tracked_event_generation.py:33
tracking.validation.run.TrackingValidationRun
Definition:
run.py:25
main
Definition:
main.py:1
tracking.validation.run
Definition:
run.py:1
reconstruction.add_prefilter_pretracking_reconstruction
def add_prefilter_pretracking_reconstruction(path, components=None)
Definition:
reconstruction.py:412
main
int main(int argc, char **argv)
Run all tests.
Definition:
test_main.cc:91
tracking
validation
fullTrackingValidation_plusEclSeeding.py
Generated on Mon Sep 23 2024 14:06:43 for Belle II Software by
1.9.1