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