Belle II Software development
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
20from tracking.validation.run import TrackingValidationRun
21import tracking
22import logging
23import reconstruction
24import basf2
25VALIDATION_OUTPUT_FILE = 'fullTrackingValidation_plusECL.root'
26N_EVENTS = 1000
27ACTIVE = False
28
29
30class 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
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
76def main():
77 basf2.set_random_seed(1337)
78 validation_run = fullTrackingValidation_plusECL()
79 validation_run.configure_and_execute_from_commandline()
80
81
82if __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.")
None finder_module
Name of the finder module to be used - can be everything that is accepted by tracking....
Definition: main.py:1
def add_prefilter_pretracking_reconstruction(path, components=None)