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