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
16 process.AlignmentProducer.saveApeToDB =
True
17 process.AlignmentProducer.saveDeformationsToDB =
True
22 process.PoolDBOutputService = cms.Service(
"PoolDBOutputService",
24 timetype = cms.untracked.string(
"runnumber"),
27 record = cms.string(
"TrackerAlignmentRcd"),
28 tag = cms.string(
"Alignments")),
30 record = cms.string(
"TrackerAlignmentErrorExtendedRcd"),
31 tag = cms.string(
"AlignmentErrorsExtended")),
33 record = cms.string(
"TrackerSurfaceDeformationRcd"),
34 tag = cms.string(
"Deformations")),
36 record = cms.string(
"SiStripLorentzAngleRcd_peak"),
37 tag = cms.string(
"SiStripLorentzAngle_peak")),
39 record = cms.string(
"SiStripLorentzAngleRcd_deco"),
40 tag = cms.string(
"SiStripLorentzAngle_deco")),
42 record = cms.string(
"SiPixelLorentzAngleRcd"),
43 tag = cms.string(
"SiPixelLorentzAngle")),
45 record = cms.string(
"SiStripBackPlaneCorrectionRcd"),
46 tag = cms.string(
"SiStripBackPlaneCorrection"))
49 process.PoolDBOutputService.connect =
"sqlite_file:alignments_MP.db"
54 process.AlignmentProducer.algoConfig.mergeBinaryFiles = binary_files
55 process.AlignmentProducer.algoConfig.mergeTreeFiles = tree_files
60 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(1))
61 process.source = cms.Source(
"EmptySource")
62 process.dump = cms.EDAnalyzer(
"EventContentAnalyzer")
63 process.p = cms.Path(process.dump)