Belle II Software development
test_packer_unpacker.py
1#!/usr/bin/env python3
2
3
10
11import basf2 as b2
12
13from simulation import add_simulation
14
15numEvents = 10
16nodeid = 0
17eventinfosetter = b2.register_module('EventInfoSetter')
18eventinfosetter.param('expList', [0])
19eventinfosetter.param('runList', [1])
20eventinfosetter.param('evtNumList', [numEvents])
21
22evtgeninput = b2.register_module('EvtGenInput')
23
24rootoutput = b2.register_module('RootOutput')
25
26Packer = b2.register_module('SVDPacker')
27Packer.param('NodeID', nodeid)
28Packer.param('svdShaperDigitListName', 'SVDShaperDigits')
29Packer.param('rawSVDListName', 'SVDRaw')
30
31unPacker = b2.register_module('SVDUnpacker')
32unPacker.param('rawSVDListName', 'SVDRaw')
33unPacker.param('svdShaperDigitListName', 'newSVDShaperDigits')
34
35
36main = b2.create_path()
37
38main.add_module(eventinfosetter)
39main.add_module(evtgeninput)
40add_simulation(main)
41# add_reconstruction(main)
42# main.add_module(rootoutput)
43main.add_module(Packer)
44main.add_module(unPacker)
45
46b2.process(main)