1 import FWCore.ParameterSet.Config
as cms
4 def setup(process, binary_files, tree_files):
5 """Pede-specific setup.
8 - `process`: cms.Process object
9 - `binary_files`: list of binary files to be read by pede
10 - `tree_files`: list of ROOT files created in the mille step
15 process.AlignmentProducer.saveToDB =
True
20 process.PoolDBOutputService = cms.Service(
"PoolDBOutputService",
22 timetype = cms.untracked.string(
"runnumber"),
25 record = cms.string(
"TrackerAlignmentRcd"),
26 tag = cms.string(
"Alignments")),
28 record = cms.string(
"TrackerAlignmentErrorExtendedRcd"),
29 tag = cms.string(
"AlignmentErrorsExtended")),
31 record = cms.string(
"TrackerSurfaceDeformationRcd"),
32 tag = cms.string(
"Deformations")),
34 record = cms.string(
"SiStripLorentzAngleRcd_peak"),
35 tag = cms.string(
"SiStripLorentzAngle_peak")),
37 record = cms.string(
"SiStripLorentzAngleRcd_deco"),
38 tag = cms.string(
"SiStripLorentzAngle_deco")),
40 record = cms.string(
"SiPixelLorentzAngleRcd"),
41 tag = cms.string(
"SiPixelLorentzAngle")),
43 record = cms.string(
"SiStripBackPlaneCorrectionRcd"),
44 tag = cms.string(
"SiStripBackPlaneCorrection"))
47 process.PoolDBOutputService.connect =
"sqlite_file:alignments_MP.db"
52 process.AlignmentProducer.algoConfig.mergeBinaryFiles = binary_files
53 process.AlignmentProducer.algoConfig.mergeTreeFiles = tree_files
58 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(1))
59 process.source = cms.Source(
"EmptySource")
60 process.dump = cms.EDAnalyzer(
"EventContentAnalyzer")
61 process.p = cms.Path(process.dump)