Belle II Software  release-08-01-10
cdcCombinedTrackingValidation.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>CDCCombinedTrackingValidation.root</output>
16  <description>This script validates the combined CDC tracking chain with a legendre step first
17  and a cellular automaton step second in Y(4S) runs.</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 = 'CDCCombinedTrackingValidation.root'
26 N_EVENTS = 1000
27 ACTIVE = False
28 
29 
31  """Validate the combined CDC track-finding chain include Legendre step"""
32 
33  n_events = N_EVENTS
34 
35  generator_module = 'generic'
36 
37  root_input_file = '../EvtGenSimNoBkg.root'
38 
39  contact = 'software-tracking@belle2.org - why are we not founding this?'
40 
41  def finder_module(self, path):
42  """Add the CDC track-finding module to the basf2 path"""
43  tracking.add_cdc_track_finding(path, with_ca=True)
44  # adjust_module(path, "TFCDC_WireHitPreparer",
45  # UseNLoops=1)
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  "UseNLoops": 1,
56  "UseOnlyBeforeTOP": True,
57  'MinCDCAxialHits': 8,
58  'MinCDCStereoHits': 6,
59  "AllowFirstCDCSuperLayerOnly": True,
60  "MergeDecayInFlight": True,
61  'EnergyCut': 0,
62  }
63 
64  pulls = True
65 
66  output_file_name = VALIDATION_OUTPUT_FILE
67 
68 
69 def main():
70  basf2.set_random_seed(1337)
71  validation_run = CDCCombined()
72  validation_run.configure_and_execute_from_commandline()
73 
74 
75 if __name__ == '__main__':
76  logging.basicConfig(level=logging.INFO)
77  if ACTIVE:
78  main()
79  else:
80  print("This validation deactivated and thus basf2 is not executed.\n"
81  "If you want to run this validation, please set the 'ACTIVE' flag above to 'True'.\n"
82  "Exiting.")
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