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