Belle II Software  release-08-00-04
cdcLegendreTrackingValidation.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>CDCLegendreTrackingValidation.root</output>
16  <description>This module validates that legendre track finding is capable of reconstructing tracks in Y(4S) runs.</description>
17 </header>
18 """
19 
20 from tracking.validation.run import TrackingValidationRun
21 import logging
22 import basf2
23 VALIDATION_OUTPUT_FILE = 'CDCLegendreTrackingValidation.root'
24 N_EVENTS = 1000
25 ACTIVE = True
26 
27 basf2.set_random_seed(1337)
28 
29 
31  """Validate the combined CDC Legendre track-finding algorithm"""
32 
33  n_events = N_EVENTS
34 
35  generator_module = 'generic'
36 
37  root_input_file = '../EvtGenSimNoBkg.root'
38 
39  @staticmethod
40  def finder_module(path):
41  """Add the CDC Legendre track-finding module and related modules to the basf2 path"""
42  path.add_module('TFCDC_WireHitPreparer')
43 
44  use_legendre_finder = True
45  if use_legendre_finder:
46  path.add_module('TFCDC_AxialTrackFinderLegendre')
47  else:
48  path.add_module('TFCDC_AxialTrackFinderHough')
49 
50  path.add_module('TFCDC_TrackExporter')
51 
52 
53  tracking_coverage = {
54  'WhichParticles': ['CDC'], # Include all particles seen in CDC, also secondaries
55  'UsePXDHits': False,
56  'UseSVDHits': False,
57  'UseCDCHits': True,
58  'UseOnlyAxialCDCHits': True,
59  "UseReassignedHits": True,
60  'UseOnlyBeforeTOP': True,
61  'UseNLoops': 1,
62  'MinCDCAxialHits': 8,
63  'EnergyCut': 0,
64  }
65 
66 
67  pulls = True
68 
69  output_file_name = VALIDATION_OUTPUT_FILE
70 
71 
73  exclude_profile_pr_parameter = ["Seed tan #lambda", "Seed #theta"]
74 
75 
76 def main():
77  validation_run = CDCLegendre()
78  validation_run.configure_and_execute_from_commandline()
79 
80 
81 if __name__ == '__main__':
82  logging.basicConfig(level=logging.INFO)
83  if ACTIVE:
84  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