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