Belle II Software development
phase2data_SVDChargeSharingAnalysis.py
1#!/usr/bin/env python3
2
3
10
11import basf2 as b2
12import sys
13from basf2 import conditions as b2conditions
14
15fileIN = sys.argv[1]
16dirOUT = sys.argv[2]
17
18# setup database
19b2conditions.prepend_globaltag("data_reprocessing_prompt")
20
21main = b2.create_path()
22main.add_module('RootInput', inputFileName=str(fileIN))
23main.add_module("Gearbox")
24main.add_module('Geometry', useDB=True)
25
26main.add_module('SVDChargeSharingAnalysis', outputDirName=str(dirOUT), outputRootFileName='test.root',
27 useTrackInfo=True, is2017TBanalysis=False)
28main.add_module('Progress')
29b2.print_path(main)
30b2.process(main)
31print(b2.statistics)