Belle II Software development
phase2sim_SVDChargeSharingAnalysis.py
1#!/usr/bin/env python3
2
3
10
11import basf2 as b2
12import sys
13
14fileIN = sys.argv[1]
15dirOUT = sys.argv[2]
16
17main = b2.create_path()
18main.add_module('RootInput', inputFileName=str(fileIN))
19
20gearbox = b2.register_module('Gearbox')
21geomfile = '/geometry/Beast2_phase2.xml'
22if geomfile != 'None':
23 gearbox.param('fileName', geomfile)
24main.add_module(gearbox)
25geometry = b2.register_module('Geometry', components=['SVD'])
26main.add_module(geometry, useDB=False)
27
28main.add_module('SVDChargeSharingAnalysis', outputDirName=str(dirOUT), outputRootFileName='test.root',
29 useTrackInfo=True, is2017TBanalysis=False)
30main.add_module('Progress')
31b2.print_path(main)
32b2.process(main)
33print(b2.statistics)