Belle II Software  release-06-02-00
cdcCombinedTrackingValidation.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>EvtGenSimNoBkg.root</input>
16  <output>CDCCombinedTrackingValidation.root</output>
17  <description>This script validates the combined CDC tracking chain with a legendre step first
18  and a cellular automaton step second in Y(4S) runs.</description>
19 </header>
20 """
21 
22 from tracking.validation.run import TrackingValidationRun
23 import tracking
24 import logging
25 import basf2
26 VALIDATION_OUTPUT_FILE = 'CDCCombinedTrackingValidation.root'
27 N_EVENTS = 1000
28 ACTIVE = True
29 
30 basf2.set_random_seed(1337)
31 
32 
34  """Validate the combined CDC track-finding chain include Legendre step"""
35 
36  n_events = N_EVENTS
37 
38  generator_module = 'generic'
39 
40  root_input_file = '../EvtGenSimNoBkg.root'
41 
42  contact = 'software-tracking@belle2.org - why are we not founding this?'
43 
44  def finder_module(self, path):
45  """Add the CDC track-finding module to the basf2 path"""
46  tracking.add_cdc_track_finding(path, with_ca=True)
47  # adjust_module(path, "TFCDC_WireHitPreparer",
48  # UseNLoops=1)
49 
50 
51  tracking_coverage = {
52  'WhichParticles': ['CDC'], # Include all particles seen in CDC, also secondaries
53  'UsePXDHits': False,
54  'UseSVDHits': False,
55  'UseCDCHits': True,
56  'UseOnlyAxialCDCHits': False,
57  "UseReassignedHits": True,
58  "UseNLoops": 1,
59  "UseOnlyBeforeTOP": True,
60  'MinCDCAxialHits': 8,
61  'MinCDCStereoHits': 6,
62  "AllowFirstCDCSuperLayerOnly": True,
63  "MergeDecayInFlight": True,
64  'EnergyCut': 0,
65  }
66 
67  pulls = True
68 
69  output_file_name = VALIDATION_OUTPUT_FILE
70 
71 
72 def main():
73  validation_run = CDCCombined()
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