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