24 from tracking
import add_tracking_reconstruction
26 mcTrackFinding =
False
38 input_root_files =
'./' + release +
'/TV_sim_' + bkg +
'_' + roi +
'_' + release +
'.root'
39 output_file_name =
'./' + release +
'/TV_reco_' + bkg +
'_' + roi +
'_' + vxdtf +
'_' + release +
'.root'
41 print(
'Tracking will run over these files: ')
42 print(input_root_files)
43 print(
'simulation: ' + roi +
' ' + bkg)
44 print(
'reconstruction ' + vxdtf)
47 path = b2.create_path()
49 root_input = b2.register_module(
'RootInput')
50 root_input.param(
'inputFileNames', input_root_files)
51 path.add_module(root_input)
53 gearbox = b2.register_module(
'Gearbox')
54 path.add_module(gearbox)
56 geometry = b2.register_module(
'Geometry')
57 path.add_module(geometry)
59 add_tracking_reconstruction(
63 mcTrackFinding=mcTrackFinding,
64 skipGeometryAdding=
False
67 modList = path.modules()
68 for modItem
in modList:
69 if modItem.name() ==
'V0Finder':
70 modItem.param(
'Validation',
True)
73 v0matcher = b2.register_module(
'MCV0Matcher')
74 v0matcher.param(
'V0ColName',
'V0ValidationVertexs')
75 v0matcher.logging.log_level = b2.LogLevel.INFO
76 path.add_module(v0matcher)
79 path.add_module(
'Progress')
81 root_output = b2.register_module(
'RootOutput')
82 root_output.param(
'outputFileName', output_file_name)
83 path.add_module(root_output)