13 <contact>software-tracking@belle2.org</contact>
14 <input>CosmicsSimNoBkg.root</input>
15 <description>Validates the hough finder working on segments
in cosmics events.</description>
19from tracking.validation.run import TrackingValidationRun
21import trackfindingcdc.cdcdisplay as cdcdisplay
24VALIDATION_OUTPUT_FILE = 'CosmicsHoughTrackingValidation.root'
29class CosmicsHough(TrackingValidationRun):
30 """Validate the CDC Hough track-segment finder with cosmic rays"""
34 generator_module =
'Cosmics'
36 root_input_file =
'../CosmicsSimNoBkg.root'
41 """Add the CDC Hough track finder and related modules to the basf2 path"""
42 path.add_module(
'TFCDC_WireHitPreparer')
43 path.add_module(
'TFCDC_ClusterPreparer')
44 path.add_module(
'TFCDC_SegmentFinderFacetAutomaton',
45 SegmentOrientation=
"downwards")
46 path.add_module(
'TFCDC_AxialTrackCreatorSegmentHough',
47 tracks=
"CDCAxialTrackVector")
48 path.add_module(
'TFCDC_StereoHitFinder',
49 inputTracks=
"CDCAxialTrackVector")
50 path.add_module(
'TFCDC_TrackExporter',
51 inputTracks=
"CDCAxialTrackVector")
53 interactive_display =
False
54 if interactive_display:
55 cdc_display_module = cdcdisplay.CDCSVGDisplayModule(os.getcwd(), interactive=
True)
56 cdc_display_module.draw_recotracks =
True
57 cdc_display_module.draw_recotrack_seed_trajectories =
True
58 path.add_module(cdc_display_module)
62 'WhichParticles': [
'CDC'],
66 'UseOnlyAxialCDCHits':
False,
67 "UseReassignedHits":
True,
72 output_file_name = VALIDATION_OUTPUT_FILE
76 basf2.set_random_seed(1337)
78 validation_run.configure_and_execute_from_commandline()
81if __name__ ==
'__main__':
82 logging.basicConfig(level=logging.INFO)
86 print(
"This validation deactivated and thus basf2 is not executed.\n"
87 "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....