1 import FWCore.ParameterSet.Config
as cms
3 process = cms.Process(
"TEST")
4 process.load(
"CalibCalorimetry.EcalTrivialCondModules.EcalTrivialCondRetriever_cfi")
5 process.EcalTrivialConditionRetriever.getEBAlignmentFromFile = cms.untracked.bool(
True)
6 process.EcalTrivialConditionRetriever.EBAlignmentFile = cms.untracked.string(
'CalibCalorimetry/EcalTrivialCondModules/data_test/EBAlignment_2018.txt')
7 process.EcalTrivialConditionRetriever.getEEAlignmentFromFile = cms.untracked.bool(
True)
8 process.EcalTrivialConditionRetriever.EEAlignmentFile = cms.untracked.string(
'CalibCalorimetry/EcalTrivialCondModules/data_test/EEAlignment_2018.txt')
9 process.EcalTrivialConditionRetriever.getESAlignmentFromFile = cms.untracked.bool(
True)
10 process.EcalTrivialConditionRetriever.ESAlignmentFile = cms.untracked.string(
'CalibCalorimetry/EcalTrivialCondModules/data_test/ESAlignment_2018.txt')
14 process.load(
"CondCore.CondDB.CondDB_cfi")
17 process.CondDB.connect =
'sqlite_file:ESAlignment_test.db' 19 process.MessageLogger = cms.Service(
"MessageLogger",
20 debugModules = cms.untracked.vstring(
'*'),
21 destinations = cms.untracked.vstring(
'cout')
24 process.source = cms.Source(
"EmptyIOVSource",
25 firstValue = cms.uint64(1),
26 lastValue = cms.uint64(1),
27 timetype = cms.string(
'runnumber'),
28 interval = cms.uint64(1)
31 process.PoolDBOutputService = cms.Service(
"PoolDBOutputService",
33 timetype = cms.untracked.string(
'runnumber'),
36 record = cms.string(
'ESAlignmentRcd'),
37 tag = cms.string(
'ESAlignment_test')
42 process.dbCopy = cms.EDAnalyzer(
"EcalDBCopy",
43 timetype = cms.string(
'runnumber'),
46 record = cms.string(
'ESAlignmentRcd'),
47 container = cms.string(
'ESAlignment')
53 process.prod = cms.EDAnalyzer(
"EcalTrivialObjectAnalyzer")
55 process.p = cms.Path(process.prod*process.dbCopy)