19 from reconstruction
import add_reconstruction
20 from tracking
import *
22 mcTrackFinding =
False
34 input_root_files =
'./' + release +
'/TV_sim_' + bkg +
'_' + roi +
'_' + release +
'.root'
35 output_file_name =
'./' + release +
'/TV_reco_' + bkg +
'_' + roi +
'_' + vxdtf +
'_' + release +
'.root'
37 print(
'Tracking will run over these files: ')
38 print(input_root_files)
39 print(
'simulation: ' + roi +
' ' + bkg)
40 print(
'reconstruction ' + vxdtf)
45 root_input = register_module(
'RootInput')
46 root_input.param(
'inputFileNames', input_root_files)
47 path.add_module(root_input)
49 gearbox = register_module(
'Gearbox')
50 path.add_module(gearbox)
52 geometry = register_module(
'Geometry')
53 path.add_module(geometry)
55 add_tracking_reconstruction(
59 mcTrackFinding=mcTrackFinding,
60 skipGeometryAdding=
False
63 modList = path.modules()
64 for modItem
in modList:
65 if modItem.name() ==
'V0Finder':
66 modItem.param(
'Validation',
True)
69 v0matcher = register_module(
'MCV0Matcher')
70 v0matcher.param(
'V0ColName',
'V0ValidationVertexs')
71 v0matcher.logging.log_level = LogLevel.INFO
72 path.add_module(v0matcher)
75 path.add_module(
'Progress')
77 root_output = register_module(
'RootOutput')
78 root_output.param(
'outputFileName', output_file_name)
79 path.add_module(root_output)