Belle II Software  release-08-00-04
fullTrackingValidation_plusEclSeeding.py
1 #!/usr/bin/env python3
2 
3 
10 
11 """
12 <header>
13  <contact>simon.kurz@desy.de</contact>
14  <input>EvtGenSimNoBkg.root</input>
15  <output>fullTrackingValidation_plusECL.root</output>
16  <description>This module validates the full track reconstruction including the ECL seeding.</description>
17 </header>
18 """
19 
20 from tracking.validation.run import TrackingValidationRun
21 import tracking
22 import logging
23 import reconstruction
24 import basf2
25 VALIDATION_OUTPUT_FILE = 'fullTrackingValidation_plusECL.root'
26 N_EVENTS = 10000
27 ACTIVE = True
28 
29 basf2.set_random_seed(1337)
30 
31 
33  """Validate the full track-finding chain includung the ecl seeded ckf"""
34 
35  n_events = N_EVENTS
36 
37  generator_module = 'generic'
38 
39  root_input_file = '../EvtGenSimNoBkg.root'
40 
41  @staticmethod
42  def finder_module(path):
43  """Do the standard tracking reconstruction chain"""
44 
45  components = ["SVD", "CDC", "ECL"]
46 
48 
49  tracking.add_tracking_reconstruction(path, components=components,
50  use_svd_to_cdc_ckf=True, use_ecl_to_cdc_ckf=True)
51 
52 
53  tracking_coverage = {
54  'WhichParticles': [], # Include all particles, also secondaries
55  'UsePXDHits': False,
56  'UseSVDHits': True,
57  'UseCDCHits': True,
58  "UseReassignedHits": True,
59  'UseNLoops': 1
60  }
61 
62 
63  fit_tracks = False
64 
65  use_fit_information = True
66 
67  use_expert_folder = False
68 
69  pulls = True
70 
71  resolution = True
72 
73  output_file_name = VALIDATION_OUTPUT_FILE
74 
75  non_expert_parameters = []
76 
77 
78 def main():
79  validation_run = fullTrackingValidation_plusECL()
80  validation_run.configure_and_execute_from_commandline()
81 
82 
83 if __name__ == '__main__':
84  logging.basicConfig(level=logging.INFO)
85 
86  if ACTIVE:
87  main()
finder_module
Name of the finder module to be used - can be everything that is accepted by tracking....
Definition: main.py:1
def add_prefilter_pretracking_reconstruction(path, components=None)
int main(int argc, char **argv)
Run all tests.
Definition: test_main.cc:91