Belle II Software  release-06-01-15
vxdHoughTrackingValidation.py
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 
4 
11 
12 """
13 <header>
14  <contact>software-tracking@belle2.org</contact>
15  <input>EvtGenSimNoBkg.root</input>
16  <output>VXDHoughTrackingValidation.root</output>
17  <description>
18  This module validates that the DATCON SVD only track finding is capable of reconstructing tracks in Y(4S) runs.
19  </description>
20 </header>
21 """
22 
23 import tracking
24 from tracking.validation.run import TrackingValidationRun
25 import logging
26 import basf2
27 from vxdHoughTracking.vxdHoughTracking_functions import add_VXDHoughTracking
28 
29 VALIDATION_OUTPUT_FILE = 'VXDHoughTrackingValidation.root'
30 N_EVENTS = 1000
31 ACTIVE = True
32 
33 basf2.set_random_seed(1337)
34 
35 
37  """
38  Validation class for the four 4-SVD Layer tracking
39  """
40 
41  n_events = N_EVENTS
42 
43  generator_module = 'generic'
44 
45  root_input_file = '../EvtGenSimNoBkg.root'
46 
47  components = None
48 
49  @staticmethod
50  def finder_module(path):
51  """Add the VXDHoughTracking module and related modules to the basf2 path"""
52  tracking.add_hit_preparation_modules(path, components=["SVD"])
53  add_VXDHoughTracking(path, reco_tracks='RecoTracks', use_simple_roi_calculation=False)
54 
55 
56  tracking_coverage = {
57  'WhichParticles': ['SVD'], # Include all particles seen in the SVD detector, also secondaries
58  'UsePXDHits': False,
59  'UseSVDHits': True,
60  'UseCDCHits': False,
61  }
62 
63 
64  fit_tracks = True
65 
66  pulls = True
67 
68  use_expert_folder = True
69 
70  resolution = True
71 
72  use_fit_information = True
73 
74  output_file_name = VALIDATION_OUTPUT_FILE
75 
76 
77 def main():
78  """
79  create SVD validation class and execute
80  """
81  validation_run = VXDHoughTrackingValidation()
82  validation_run.configure_and_execute_from_commandline()
83 
84 
85 if __name__ == '__main__':
86  logging.basicConfig(level=logging.INFO)
87  if ACTIVE:
88  main()
finder_module
Name of the finder module to be used - can be everything that is accepted by tracking....
int main(int argc, char **argv)
Run all tests.
Definition: test_main.cc:75