Belle II Software development
debug_display.py
1#!/usr/bin/env python3
2
3
10
11import basf2
12
13from trackfindingcdc.run.display import CDCDisplayRun
14
15import logging
16
17
18class CDCDebugDisplayRun(CDCDisplayRun):
19 """Read generated events or generate new events then display the CDC tracks"""
20
21
22 finder_module = basf2.register_module("TFCDC_TrackFinderAutomaton")
23 # finder_module = basf2.register_module("TFCDC_SegmentFinderFacetAutomaton")
24 # finder_module.param({
25 # "ClusterFilter": "mva_bkg",
26 # "ClusterFilterParameters": {"cut": 0.2},
27 # "WriteSuperClusters": True,
28 # "WriteClusters": True,
29 # "FacetFilter": "none",
30 # "FacetRelationFilter": "none",
31 # })
32
33
34 finder_module = ["TFCDC_WireHitPreparer", "TFCDC_ClusterPreparer", finder_module, "PrintCollections"]
35
36 finder_module = basf2.register_module("TFCDC_WireHitPreparer")
37
38
39 show_all_drawoptions = True
40 # Also show draw options that are related to the cellular automaton track finder
41 # on the command line!
42
43
44def main():
45 cdcDebugDisplayRun = CDCDebugDisplayRun()
46 cdcDebugDisplayRun.configure_and_execute_from_commandline()
47
48
49if __name__ == '__main__':
50 logging.basicConfig(level=logging.INFO)
51 main()
Definition: main.py:1