Belle II Software development
UnpackFromNetwork.py
1#!/usr/bin/env python3
2
3
10
11import basf2 as b2
12
13
14deserializerpxd = b2.register_module('DeSerializerPXD')
15deserializerpxd.param('Port', 1025)
16deserializerpxd.param('HostName', '127.0.0.1')
17
18unpacker = b2.register_module('PXDUnpacker')
19unpacker.param('HeaderEndianSwap', False)
20
21histoman = b2.register_module('HistoManager')
22histoman.param('histoFileName', 'your_histo_file.root')
23
24simpleoutput = b2.register_module('RootOutput')
25simpleoutput.param('outputFileName', 'PXDRawHit.root')
26simpleoutput.param('compressionLevel', 0)
27
28main = b2.create_path()
29
30main.add_module(deserializerpxd)
31main.add_module(histoman)
32main.add_module(unpacker)
33main.add_module('PXDRawDQM')
34main.add_module('PXDROIDQM')
35main.add_module('Progress')
36main.add_module(simpleoutput)
37
38b2.process(main)