12from trackfindingcdc.quadtree.quadTreePlotter
import SegmentQuadTreePlotter
14from trackfinderoutputcombiner.validation
import add_mc_track_finder
22 """ Create segments and plot them in a segment quad tree """
31 display_module_segments.draw_gftrackcand_trajectories =
False
33 display_module_segments.draw_gftrackcands =
True
35 display_module_segments.draw_clusters =
False
37 display_module_segments.track_cands_store_array_name =
"MCTrackCands"
46 display_module_tracks.draw_gftrackcands =
True
48 display_module_tracks.track_cands_store_array_name =
"TrackCands"
57 display_module_mc.draw_gftrackcand_trajectories =
True
59 display_module_mc.draw_segments_mctrackid =
True
61 display_module_mc.track_cands_store_array_name =
"MCTrackCands"
64 plotter_module = SegmentQuadTreePlotter()
66 plotter_module.draw_quad_tree_content =
True
68 plotter_module.draw_segment_intersection =
True
70 plotter_module.draw_mc_information =
True
72 def create_path(self):
73 """ Make SegmentFinding and QuadTreeFinding and plotting/display/validation"""
74 main_path = super().create_path()
76 add_mc_track_finder(main_path)
77 main_path.add_module(
"TFCDC_WireHitPreparer")
78 main_path.add_module(
"TFCDC_ClusterPreparer")
80 segment_finder = basf2.register_module(
"TFCDC_SegmentFinderFacetAutomaton")
81 segment_finder.param({
83 "SegmentOrientation":
"none",
85 main_path.add_module(segment_finder)
89 segment_quad_tree = basf2.register_module(
"SegmentQuadTree")
90 segment_quad_tree.param({
93 "DoPostprocessing":
True,
95 segment_quad_tree.set_log_level(basf2.LogLevel.DEBUG)
96 segment_quad_tree.set_debug_level(100)
97 main_path.add_module(segment_quad_tree)
105 run.configure_and_execute_from_commandline()
108if __name__ ==
"__main__":
109 logging.basicConfig(stream=sys.stdout, level=logging.INFO, format=
'%(levelname)s:%(message)s')
CDCSVGDisplayModule display_module_tracks
Use CDCSVGDisplay to draw the TrackCand information.