25from svd
import add_svd_reconstruction
34branches = [
'RawSVDs',
'SVDShaperDigitsFromTracks',
'EventT0']
36trk_outputFile =
"TrackFilterControlNtuples_" + localdb +
".root"
43if filename.rfind(
".root") != -1:
44 inputFileList.append(filename)
46 with open(filename)
as f:
47 inputFileList = [line.strip()
for line
in f]
49b2.conditions.override_globaltags()
50b2.conditions.globaltags = [
51 "svd_NOCoGCorrections",
52 "staging_data_reprocessing_proc11",
53 "data_reprocessing_proc11_baseline",
56b2.conditions.testing_payloads = [
57 str(localdb) +
"/database.txt",
60main = b2.create_path()
62rootinput = b2.register_module(
'RootInput')
63rootinput.param(
'inputFileNames', inputFileList)
64rootinput.param(
'branchNames', branches)
65main.add_module(rootinput)
67main.add_module(
"Gearbox")
68main.add_module(
"Geometry", useDB=
True)
71raw.add_unpackers(main, components=[
'SVD'])
74add_svd_reconstruction(main)
76for moda
in main.modules():
77 if moda.name() ==
'SVDCoGTimeEstimator':
78 moda.param(
"ShaperDigits",
'SVDShaperDigitsFromTracks')
79 moda.param(
"RecoDigits",
'SVDRecoDigitsFromTracks')
80 if moda.name() ==
'SVDSimpleClusterizer':
81 moda.param(
"Clusters",
'SVDClustersFromTracks')
82 moda.param(
"RecoDigits",
'SVDRecoDigitsFromTracks')
83 moda.param(
"timeAlgorithm", 0)
84 if moda.name() ==
'SVDSpacePointCreator':
85 moda.param(
"SVDClusters",
'SVDClustersFromTracks')
87main = b2.remove_module(main,
'SVDMissingAPVsClusterCreator')
89check = SVDCoGTimeCalibrationCheckModule()
90check.set_localdb(localdb)
91check.set_run_number(run)
92check.set_exp_number(exp)
96progress = b2.register_module(
'ProgressBar')
97main.add_module(progress)