Belle II Software  release-06-01-15
cdcCRTrackingValidation.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>CosmicsSimNoBkg.root</input>
16  <output>CDCCRTrackingValidation.root</output>
17  <description>This module validates that track finding is capable of reconstructing tracks in cosmics run.</description>
18 </header>
19 """
20 
21 from tracking.validation.run import TrackingValidationRun
22 import tracking
23 import logging
24 import basf2
25 VALIDATION_OUTPUT_FILE = 'CDCCRTrackingValidation.root'
26 CONTACT = 'software-tracking@belle2.org'
27 N_EVENTS = 10000
28 ACTIVE = False
29 
30 basf2.set_random_seed(1337)
31 
32 
34  """Validate the CDC cosmic-ray track-finding"""
35 
36  n_events = N_EVENTS
37 
38  generator_module = 'Cosmics'
39 
40  root_input_file = '../CosmicsSimNoBkg.root'
41 
42  components = None
43 
44  def finder_module(self, path):
45  """Add the CDC cosmic-ray track-finding module to the basf2 path"""
47 
48 
49  tracking_coverage = {
50  'WhichParticles': ['CDC'], # Include all particles seen in CDC, also secondaries
51  'UsePXDHits': False,
52  'UseSVDHits': False,
53  'UseCDCHits': True,
54  'UseOnlyAxialCDCHits': False,
55  "UseReassignedHits": True,
56  }
57 
58 
59  use_fit_information = True
60 
61  fit_tracks = True
62 
63  pulls = True
64 
65  resolution = True
66 
67  contact = CONTACT
68 
69  output_file_name = VALIDATION_OUTPUT_FILE
70 
71 
72 def main():
73  validation_run = CDCCR()
74  validation_run.configure_and_execute_from_commandline()
75 
76 
77 if __name__ == '__main__':
78  logging.basicConfig(level=logging.INFO)
79  if ACTIVE:
80  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
def add_cr_track_finding(path, reco_tracks="RecoTracks", components=None, merge_tracks=True, use_second_cdc_hits=False)
Definition: __init__.py:424