Belle II Software  release-06-00-14
pxd_roi_plotter.py
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 
4 
11 
12 
13 import basf2 as b2
14 from ROOT import gROOT
15 
16 import PXDROIUnpackerModule
17 
18 # prevent Canvases from popping up on x11
19 gROOT.SetBatch()
20 
21 main = b2.create_path()
22 
23 # main.add_module('RootInput')
24 main.add_module('SeqRootInput')
25 
26 main.add_module('Progress')
27 
28 main.add_module('PXDUnpacker')
29 
30 '''Unpack ROIs from ONSEN output'''
32 
33 '''Unpack ROIs from HLT Payload (depends if there are in the sroot file)'''
34 # main.add_module(PXDROIUnpackerModule.PXDPayloadROIUnpackerModule())
35 
36 plotter = b2.register_module('PXDROIPlot')
37 plotter.param("ROIsName", "ROIs") # calculated on HLT ... before Payload assemly
38 # plotter.param("ROIsName","PXDROIsPayHLT") # calculated on HLT ... unpacked from payload (depends whats in the sroot file)
39 plotter.param("DCROIsName", "PXDROIsDC") # output from DATCON by ONSEN
40 plotter.param("HLTROIsName", "PXDROIsHLT") # output from HLT by ONSEN
41 main.add_module(plotter)
42 
43 b2.process(main)