Belle II Software  release-08-00-04
cdcAutomatonTrackingValidation.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>CDCAutomatonTrackingValidation.root</output>
16  <description>
17  This module validates that cdc cellular automaton track finding
18  is capable of reconstructing tracks in Y(4S) runs.
19  </description>
20 </header>
21 """
22 
23 from tracking.validation.run import TrackingValidationRun
24 import logging
25 import basf2
26 VALIDATION_OUTPUT_FILE = 'CDCAutomatonTrackingValidation.root'
27 CONTACT = 'software-tracking@belle2.org'
28 N_EVENTS = 1000
29 ACTIVE = True
30 
31 basf2.set_random_seed(1337)
32 
33 
35  """Validate the CDC TrackFinderAutomaton"""
36 
37  n_events = N_EVENTS
38 
39  generator_module = 'generic'
40 
41  root_input_file = '../EvtGenSimNoBkg.root'
42 
43  def finder_module(self, path):
44  """Add the CDC TrackFinderAutomaton to the basf2 path"""
45  path.add_module('TFCDC_TrackFinderAutomaton',
46  # UseNLoops = 1,
47  )
48 
49 
50  tracking_coverage = {
51  'WhichParticles': ['CDC'], # Include all particles seen in CDC, also secondaries
52  'UsePXDHits': False,
53  'UseSVDHits': False,
54  'UseCDCHits': True,
55  'UseOnlyAxialCDCHits': False,
56  "UseReassignedHits": True,
57  "UseNLoops": 1.0,
58  "UseOnlyBeforeTOP": True,
59  'MinCDCAxialHits': 8,
60  'MinCDCStereoHits': 6,
61  "AllowFirstCDCSuperLayerOnly": True,
62  'EnergyCut': 0,
63  }
64 
65  pulls = True
66 
67  contact = CONTACT
68 
69  output_file_name = VALIDATION_OUTPUT_FILE
70 
71 
72 def main():
73  validation_run = CDCAutomaton()
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....
Definition: main.py:1
int main(int argc, char **argv)
Run all tests.
Definition: test_main.cc:91