Belle II Software development
noCKFValidationBkg.py
1#!/usr/bin/env python3
2
3
10
11"""
12<header>
13 <contact>Nils.Braun@kit.edu</contact>
14 <input>EvtGenSim.root</input>
15 <output>NoCKFValidationBkg.root</output>
16 <description>This script validates the tracking chain without the CKF in Y(4S) runs with background.</description>
17</header>
18"""
19
20from tracking.validation.run import TrackingValidationRun
21import tracking
22import logging
23import basf2
24VALIDATION_OUTPUT_FILE = 'NoCKFValidationBkg.root'
25N_EVENTS = 1000
26ACTIVE = True
27
28
29def setupFinderModule(path):
30 tracking.add_hit_preparation_modules(path, components=["SVD", "PXD"])
31 tracking.add_track_finding(path, svd_ckf_mode="SVD_alone")
32
33
35 """Validate the track-finding chain, excluding the Kalman fitter/filter, with Y(4S) events and background overlay"""
36
37 n_events = N_EVENTS
38
39 generator_module = 'generic'
40
41 root_input_file = '../EvtGenSim.root'
42
43 finder_module = staticmethod(setupFinderModule)
44
45 tracking_coverage = {
46 'WhichParticles': [], # Include all particles, also secondaries
47 'UsePXDHits': True,
48 'UseSVDHits': True,
49 'UseCDCHits': True,
50 "UseReassignedHits": True,
51 'UseOnlyBeforeTOP': True,
52 'UseNLoops': 1
53 }
54
55 fit_tracks = True
56
57 use_fit_information = True
58
59 pulls = True
60
61 resolution = True
62
63 output_file_name = VALIDATION_OUTPUT_FILE
64
65
66def main():
67 basf2.set_random_seed(1337)
68 validation_run = CKFBkg()
69 validation_run.configure_and_execute_from_commandline()
70
71
72if __name__ == '__main__':
73 logging.basicConfig(level=logging.INFO)
74 if ACTIVE:
75 main()
76 else:
77 print("This validation deactivated and thus basf2 is not executed.\n"
78 "If you want to run this validation, please set the 'ACTIVE' flag above to 'True'.\n"
79 "Exiting.")
Definition: main.py:1
def add_track_finding(path, components=None, reco_tracks="RecoTracks", prune_temporary_tracks=True, use_second_cdc_hits=False, use_mc_truth=False, svd_ckf_mode="SVD_after", add_both_directions=True, svd_standalone_mode="VXDTF2", use_svd_to_cdc_ckf=True, use_ecl_to_cdc_ckf=False, add_cdcTrack_QI=True, add_vxdTrack_QI=False, pxd_filtering_offline=False, use_HLT_ROIs=False, create_intercepts_for_pxd_ckf=False)
Definition: __init__.py:431