23from tracking
import add_tracking_reconstruction
37input_root_files =
'./' + release +
'/TV_sim_' + bkg +
'_' + roi +
'_' + release +
'.root'
38output_file_name =
'./' + release +
'/TV_reco_' + bkg +
'_' + roi +
'_' + vxdtf +
'_' + release +
'.root'
40print(
'Tracking will run over these files: ')
41print(input_root_files)
42print(
'simulation: ' + roi +
' ' + bkg)
43print(
'reconstruction ' + vxdtf)
46path = b2.create_path()
48root_input = b2.register_module(
'RootInput')
49root_input.param(
'inputFileNames', input_root_files)
50path.add_module(root_input)
52gearbox = b2.register_module(
'Gearbox')
53path.add_module(gearbox)
55geometry = b2.register_module(
'Geometry')
56path.add_module(geometry)
58add_tracking_reconstruction(
62 mcTrackFinding=mcTrackFinding,
63 skipGeometryAdding=
False
66modList = path.modules()
67for modItem
in modList:
68 if modItem.name() ==
'V0Finder':
69 modItem.param(
'Validation',
True)
72v0matcher = b2.register_module(
'MCV0Matcher')
73v0matcher.param(
'V0ColName',
'V0ValidationVertexs')
74v0matcher.logging.log_level = b2.LogLevel.INFO
75path.add_module(v0matcher)
78path.add_module(
'Progress')
80root_output = b2.register_module(
'RootOutput')
81root_output.param(
'outputFileName', output_file_name)
82path.add_module(root_output)