Belle II Software development
UnpackFromBonnDAQ.py
1#!/usr/bin/env python3
2
3
10
11import basf2 as b2
12
13
14main = b2.create_path()
15
16rawinput = b2.register_module('PXDReadRawBonnDAQ')
17
18rawinput.param('FileName', 'map.dat')
19rawinput.param('ExpNr', 0)
20rawinput.param('RunNr', 14)
21# rawinput.param('RunNr', 182)
22
23main.add_module(rawinput)
24
25
26main.add_module("PXDRawDumper")
27
28unpacker = b2.register_module('PXDUnpacker')
29unpacker.param('FormatBonnDAQ', True)
30
31main.add_module(unpacker)
32
33histoman = b2.register_module('HistoManager')
34histoman.param('histoFileName', 'map_HISTO.root')
35
36# main.add_module(histoman)
37
38# main.add_module(register_module('PXDRawDQM'))
39# main.add_module(register_module('PXDROIDQM'))
40# main.add_module(register_module('Progress'))
41
42simpleoutput = b2.register_module('RootOutput')
43simpleoutput.param('outputFileName', 'map_RAW.root')
44simpleoutput.param('compressionLevel', 0)
45
46main.add_module(simpleoutput)
47
48b2.process(main)