5 def setup(process, binary_files, tree_files):
6 """Pede-specific setup.
9 - `process`: cms.Process object
10 - `binary_files`: list of binary files to be read by pede
11 - `tree_files`: list of ROOT files created in the mille step
16 process.AlignmentProducer.saveToDB =
True
17 process.AlignmentProducer.saveApeToDB =
True
18 process.AlignmentProducer.saveDeformationsToDB =
True
23 process.PoolDBOutputService = cms.Service(
"PoolDBOutputService",
25 timetype = cms.untracked.string(
"runnumber"),
28 record = cms.string(
"TrackerAlignmentRcd"),
29 tag = cms.string(
"Alignments")),
31 record = cms.string(
"TrackerAlignmentErrorExtendedRcd"),
32 tag = cms.string(
"AlignmentErrorsExtended")),
34 record = cms.string(
"TrackerSurfaceDeformationRcd"),
35 tag = cms.string(
"Deformations")),
37 record = cms.string(
"SiStripLorentzAngleRcd_peak"),
38 tag = cms.string(
"SiStripLorentzAngle_peak")),
40 record = cms.string(
"SiStripLorentzAngleRcd_deco"),
41 tag = cms.string(
"SiStripLorentzAngle_deco")),
43 record = cms.string(
"SiPixelLorentzAngleRcd"),
44 tag = cms.string(
"SiPixelLorentzAngle")),
46 record = cms.string(
"SiStripBackPlaneCorrectionRcd"),
47 tag = cms.string(
"SiStripBackPlaneCorrection"))
50 process.PoolDBOutputService.connect =
"sqlite_file:alignments_MP.db"
55 process.AlignmentProducer.algoConfig.mergeBinaryFiles = binary_files
56 process.AlignmentProducer.algoConfig.mergeTreeFiles = tree_files
61 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(1))
62 process.source = cms.Source(
"EmptySource")
63 process.dump = cms.EDAnalyzer(
"EventContentAnalyzer")
64 process.p = cms.Path(process.dump)