Belle II Software development
UnpackFromDump.py
1#!/usr/bin/env python3
2
3
10
11import basf2 as b2
12
13
14rawinput = b2.register_module('PXDReadRawONSEN')
15rawinput.param('FileName', 'map.dat')
16
17rawinput2 = b2.register_module('PXDReadRawONSEN')
18rawinput2.param('SetEvtMeta', False)
19rawinput2.param('FileName', 'map2.dat')
20
21unpacker = b2.register_module('PXDUnpacker')
22# unpacker.param('DoNotStore',True);
23# unpacker.param('HeaderEndianSwap',False);
24
25histoman = b2.register_module('HistoManager')
26histoman.param('histoFileName', 'map_HISTO.root')
27
28simpleoutput = b2.register_module('RootOutput')
29simpleoutput.param('outputFileName', 'map_RAW.root')
30simpleoutput.param('compressionLevel', 0)
31
32main = b2.create_path()
33
34main.add_module(rawinput)
35main.add_module(rawinput2)
36main.add_module(histoman)
37main.add_module(unpacker)
38main.add_module('PXDRawDQM')
39main.add_module('PXDROIDQM')
40main.add_module('Progress')
41main.add_module(simpleoutput)
42
43b2.process(main)