Belle II Software development
unpack.py
1#!/usr/bin/env python3
2
3
10
11import basf2 as b2
12import modularAnalysis as ma
13from rawdata import add_unpackers
14
15# Create path
16main = b2.create_path()
17
18# Root input
19roinput = b2.register_module('RootInput')
20main.add_module(roinput)
21
22# Required setup modules
23main.add_module("Geometry")
24
25add_unpackers(main)
26
27ma.printDataStore(path=main)
28
29# Output events
30output = b2.register_module('RootOutput')
31output.param('outputFileName', "unpacked.root")
32main.add_module(output)
33
34# Process events
35b2.process(main)
36print(b2.statistics)