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