Belle II Software  release-08-01-10
phase2data_SVDChargeSharingAnalysis.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 fileIN = sys.argv[1]
17 dirOUT = sys.argv[2]
18 
19 # setup database
20 b2conditions.prepend_globaltag("data_reprocessing_prompt")
21 
22 main = b2.create_path()
23 main.add_module('RootInput', inputFileName=str(fileIN))
24 main.add_module("Gearbox")
25 main.add_module('Geometry', useDB=True)
26 
27 main.add_module('SVDChargeSharingAnalysis', outputDirName=str(dirOUT), outputRootFileName='test.root',
28  useTrackInfo=True, is2017TBanalysis=False)
29 main.add_module('Progress')
30 b2.print_path(main)
31 b2.process(main)
32 print(b2.statistics)