Belle II Software  release-08-00-04
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 
20 from tracking.validation.run import TrackingValidationRun
21 import tracking
22 import logging
23 import basf2
24 VALIDATION_OUTPUT_FILE = 'NoCKFValidationBkg.root'
25 N_EVENTS = 1000
26 ACTIVE = True
27 
28 basf2.set_random_seed(1337)
29 
30 
31 def setupFinderModule(path):
32  tracking.add_hit_preparation_modules(path, components=["SVD", "PXD"])
33  tracking.add_track_finding(path, svd_ckf_mode="SVD_alone")
34 
35 
37  """Validate the track-finding chain, excluding the Kalman fitter/filter, with Y(4S) events and background overlay"""
38 
39  n_events = N_EVENTS
40 
41  generator_module = 'generic'
42 
43  root_input_file = '../EvtGenSim.root'
44 
45  finder_module = staticmethod(setupFinderModule)
46 
47  tracking_coverage = {
48  'WhichParticles': [], # Include all particles, also secondaries
49  'UsePXDHits': True,
50  'UseSVDHits': True,
51  'UseCDCHits': True,
52  "UseReassignedHits": True,
53  'UseOnlyBeforeTOP': True,
54  'UseNLoops': 1
55  }
56 
57  fit_tracks = True
58 
59  use_fit_information = True
60 
61  pulls = True
62 
63  resolution = True
64 
65  output_file_name = VALIDATION_OUTPUT_FILE
66 
67 
68 def main():
69  validation_run = CKFBkg()
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()
Definition: main.py:1
int main(int argc, char **argv)
Run all tests.
Definition: test_main.cc:91
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)
Definition: __init__.py:385