26 from svd
import add_svd_reconstruction
32 filename = sys.argv[2]
35 branches = [
'RawSVDs',
'SVDShaperDigitsFromTracks',
'EventT0']
37 trk_outputFile =
"TrackFilterControlNtuples_" + localdb +
".root"
44 if filename.rfind(
".root") != -1:
45 inputFileList.append(filename)
47 with open(filename,
'r')
as f:
48 inputFileList = [line.strip()
for line
in f]
50 b2.conditions.override_globaltags()
51 b2.conditions.globaltags = [
52 "svd_NOCoGCorrections",
53 "staging_data_reprocessing_proc11",
54 "data_reprocessing_proc11_baseline",
57 b2.conditions.testing_payloads = [
58 str(localdb) +
"/database.txt",
61 main = b2.create_path()
63 rootinput = b2.register_module(
'RootInput')
64 rootinput.param(
'inputFileNames', inputFileList)
65 rootinput.param(
'branchNames', branches)
66 main.add_module(rootinput)
68 main.add_module(
"Gearbox")
69 main.add_module(
"Geometry", useDB=
True)
72 raw.add_unpackers(main, components=[
'SVD'])
75 add_svd_reconstruction(main)
77 for moda
in main.modules():
78 if moda.name() ==
'SVDCoGTimeEstimator':
79 moda.param(
"ShaperDigits",
'SVDShaperDigitsFromTracks')
80 moda.param(
"RecoDigits",
'SVDRecoDigitsFromTracks')
81 if moda.name() ==
'SVDSimpleClusterizer':
82 moda.param(
"Clusters",
'SVDClustersFromTracks')
83 moda.param(
"RecoDigits",
'SVDRecoDigitsFromTracks')
84 moda.param(
"timeAlgorithm", 0)
85 if moda.name() ==
'SVDSpacePointCreator':
86 moda.param(
"SVDClusters",
'SVDClustersFromTracks')
88 main = b2.remove_module(main,
'SVDMissingAPVsClusterCreator')
90 check = SVDCoGTimeCalibrationCheckModule()
91 check.set_localdb(localdb)
92 check.set_run_number(run)
93 check.set_exp_number(exp)
94 main.add_module(check)
97 progress = b2.register_module(
'ProgressBar')
98 main.add_module(progress)