Belle II Software  release-08-00-04
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 = True
28 
29 basf2.set_random_seed(1337)
30 
31 
33  """Validate the combined CDC track-finding chain include Legendre step"""
34 
35  n_events = N_EVENTS
36 
37  generator_module = 'generic'
38 
39  root_input_file = '../EvtGenSimNoBkg.root'
40 
41  contact = 'software-tracking@belle2.org - why are we not founding this?'
42 
43  def finder_module(self, path):
44  """Add the CDC track-finding module to the basf2 path"""
45  tracking.add_cdc_track_finding(path, with_ca=True)
46  # adjust_module(path, "TFCDC_WireHitPreparer",
47  # UseNLoops=1)
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,
58  "UseOnlyBeforeTOP": True,
59  'MinCDCAxialHits': 8,
60  'MinCDCStereoHits': 6,
61  "AllowFirstCDCSuperLayerOnly": True,
62  "MergeDecayInFlight": True,
63  'EnergyCut': 0,
64  }
65 
66  pulls = True
67 
68  output_file_name = VALIDATION_OUTPUT_FILE
69 
70 
71 def main():
72  validation_run = CDCCombined()
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