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:EEAlignment_test.db' 19 process.MessageLogger = cms.Service(
"MessageLogger",
20 cerr = cms.untracked.PSet(
21 enable = cms.untracked.bool(
False)
23 cout = cms.untracked.PSet(
24 enable = cms.untracked.bool(
True)
26 debugModules = cms.untracked.vstring(
'*')
29 process.source = cms.Source(
"EmptyIOVSource",
30 firstValue = cms.uint64(1),
31 lastValue = cms.uint64(1),
32 timetype = cms.string(
'runnumber'),
33 interval = cms.uint64(1)
36 process.PoolDBOutputService = cms.Service(
"PoolDBOutputService",
38 timetype = cms.untracked.string(
'runnumber'),
41 record = cms.string(
'EEAlignmentRcd'),
42 tag = cms.string(
'EEAlignment_test')
47 process.dbCopy = cms.EDAnalyzer(
"EcalDBCopy",
48 timetype = cms.string(
'runnumber'),
51 record = cms.string(
'EEAlignmentRcd'),
52 container = cms.string(
'EEAlignment')
58 process.prod = cms.EDAnalyzer(
"EcalTrivialObjectAnalyzer")
60 process.p = cms.Path(process.prod*process.dbCopy)