1 import FWCore.ParameterSet.Config
as cms
3 process = cms.Process(
"TEST")
4 process.load(
"CalibCalorimetry.EcalTrivialCondModules.EcalTrivialCondRetriever_cfi")
5 process.EcalTrivialConditionRetriever.producedEcalSimComponentShape = cms.untracked.bool(
True)
6 process.EcalTrivialConditionRetriever.getSimComponentShapeFromFile = cms.untracked.bool(
True)
10 process.EcalTrivialConditionRetriever.sim_component_shape_TI = cms.untracked.double(1)
11 process.EcalTrivialConditionRetriever.sim_component_shape_EB_thresh = cms.double(0.00013)
12 fileNames = [f
"EB_SimComponentShape_PhaseI_depth{i}.txt" for i
in range(0,23)]
14 process.EcalTrivialConditionRetriever.EBSimComponentShapeFiles = cms.untracked.vstring(fileNames)
17 process.load(
"CondCore.CondDB.CondDB_cfi")
20 process.CondDB.connect =
'sqlite_file:EBSimComponentShape_PhaseI.db' 23 process.MessageLogger = cms.Service(
"MessageLogger",
24 cerr = cms.untracked.PSet(
25 enable = cms.untracked.bool(
False)
27 cout = cms.untracked.PSet(
28 enable = cms.untracked.bool(
True)
30 debugModules = cms.untracked.vstring(
'*')
33 process.source = cms.Source(
"EmptyIOVSource",
34 firstValue = cms.uint64(1),
35 lastValue = cms.uint64(1),
36 timetype = cms.string(
'runnumber'),
37 interval = cms.uint64(1)
40 process.PoolDBOutputService = cms.Service(
"PoolDBOutputService",
44 record = cms.string(
'EcalSimComponentShapeRcd'),
45 tag = cms.string(
'EcalSimComponentShape_PhaseI')
51 process.dbCopy = cms.EDAnalyzer(
"EcalDBCopy",
52 timetype = cms.string(
'runnumber'),
55 record = cms.string(
'EcalSimComponentShapeRcd'),
56 container = cms.string(
'EcalSimComponentShape')
61 process.prod = cms.EDAnalyzer(
"EcalTrivialObjectAnalyzer")
63 process.p = cms.Path(process.prod*process.dbCopy)