Belle II Software  release-06-02-00
fullTrackingValidation_plusEclSeeding.py
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 
4 
11 
12 """
13 <header>
14  <contact>simon.kurz@desy.de</contact>
15  <input>EvtGenSimNoBkg.root</input>
16  <output>fullTrackingValidation_plusECL.root</output>
17  <description>This module validates the full track reconstruction including the ECL seeding.</description>
18 </header>
19 """
20 
21 from tracking.validation.run import TrackingValidationRun
22 import tracking
23 import logging
24 import reconstruction
25 import basf2
26 VALIDATION_OUTPUT_FILE = 'fullTrackingValidation_plusECL.root'
27 N_EVENTS = 10000
28 ACTIVE = True
29 
30 basf2.set_random_seed(1337)
31 
32 
34  """Validate the full track-finding chain includung the ecl seeded ckf"""
35 
36  n_events = N_EVENTS
37 
38  generator_module = 'generic'
39 
40  root_input_file = '../EvtGenSimNoBkg.root'
41 
42  @staticmethod
43  def finder_module(path):
44  """Do the standard tracking reconstruction chain"""
45 
46  components = ["SVD", "CDC", "ECL"]
47 
49 
50  tracking.add_tracking_reconstruction(path, components=components,
51  use_svd_to_cdc_ckf=True, use_ecl_to_cdc_ckf=True)
52 
53 
54  tracking_coverage = {
55  'WhichParticles': [], # Include all particles, also secondaries
56  'UsePXDHits': False,
57  'UseSVDHits': True,
58  'UseCDCHits': True,
59  "UseReassignedHits": True,
60  'UseNLoops': 1
61  }
62 
63 
64  fit_tracks = False
65 
66  use_fit_information = True
67 
68  use_expert_folder = False
69 
70  pulls = True
71 
72  resolution = True
73 
74  output_file_name = VALIDATION_OUTPUT_FILE
75 
76 
77 def main():
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()
finder_module
Name of the finder module to be used - can be everything that is accepted by tracking....
def add_prefilter_pretracking_reconstruction(path, components=None)
int main(int argc, char **argv)
Run all tests.
Definition: test_main.cc:75
def add_tracking_reconstruction(path, components=None, pruneTracks=False, skipGeometryAdding=False, mcTrackFinding=False, trackFitHypotheses=None, reco_tracks="RecoTracks", prune_temporary_tracks=True, fit_tracks=True, use_second_cdc_hits=False, skipHitPreparerAdding=False, use_svd_to_cdc_ckf=True, use_ecl_to_cdc_ckf=False, add_cdcTrack_QI=True, add_vxdTrack_QI=False, add_recoTrack_QI=False)
Definition: __init__.py:44