13 <contact>software-tracking@belle2.org</contact>
14 <input>CosmicsSimNoBkg.root</input>
15 <output>CosmicsAxialHoughTrackingValidation.root</output>
16 <description>Validates the axial hough finder working on segments
in cosmics events.</description>
20from tracking.validation.run import TrackingValidationRun
22import trackfindingcdc.cdcdisplay as cdcdisplay
25VALIDATION_OUTPUT_FILE = 'CosmicsAxialHoughTrackingValidation.root'
30class CosmicsAxialHough(TrackingValidationRun):
31 """Validate the CDC axial Hough track finder with cosmic rays"""
35 generator_module =
'Cosmics'
37 root_input_file =
'../CosmicsSimNoBkg.root'
42 """Add the CDC track-finding module to the basf2 path"""
43 path.add_module(
'TFCDC_WireHitPreparer')
44 path.add_module(
"TFCDC_ClusterPreparer")
45 path.add_module(
'TFCDC_SegmentFinderFacetAutomaton',
46 SegmentOrientation=
"downwards")
47 path.add_module(
'TFCDC_AxialTrackCreatorSegmentHough')
48 path.add_module(
'TFCDC_TrackExporter')
50 interactive_display =
False
51 if interactive_display:
52 cdc_display_module = cdcdisplay.CDCSVGDisplayModule(os.getcwd(), interactive=
True)
53 cdc_display_module.draw_recotracks =
True
54 cdc_display_module.draw_recotrack_seed_trajectories =
True
55 path.add_module(cdc_display_module)
59 'WhichParticles': [
'CDC'],
63 'UseOnlyAxialCDCHits':
True,
64 "UseReassignedHits":
True,
70 output_file_name = VALIDATION_OUTPUT_FILE
74 basf2.set_random_seed(1337)
76 validation_run.configure_and_execute_from_commandline()
79if __name__ ==
'__main__':
80 logging.basicConfig(level=logging.INFO)
84 print(
"This validation deactivated and thus basf2 is not executed.\n"
85 "If you want to run this validation, please set the 'ACTIVE' flag above to 'True'.\n"
None finder_module
Name of the finder module to be used - can be everything that is accepted by tracking....