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