Belle II Software development
checkDataFormat.py
1#!/usr/bin/env python3
2
3
10
11import basf2 as b2
12import sys
13from basf2 import conditions as b2conditions
14
15
22
23
24print('***')
25print('*** this is the data format check script used:')
26with open(sys.argv[0]) as fin:
27 print(fin.read(), end="")
28print('*** end of the script')
29print('***')
30
31b2conditions.prepend_globaltag("svd_basic")
32
33# Create path 1
34main = b2.create_path()
35
36main.add_module('RootInput', branchNames=['RawSVDs'])
37
38main.add_module("Gearbox")
39main.add_module('Geometry')
40
41# unpack SVD raw data
42main.add_module('SVDUnpacker')
43
44main.add_module('SVDDataFormatCheck', ShaperDigits='SVDShaperDigits')
45
46main.add_module('Progress')
47
48b2.print_path(main)
49b2.process(main)
50
51print(b2.statistics)