Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:51:53

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST")
0004 process.load("CalibCalorimetry.EcalTrivialCondModules.EcalTrivialCondRetriever_cfi")
0005 process.EcalTrivialConditionRetriever.producedEcalPFRecHitThresholds = cms.untracked.bool(True)
0006 process.EcalTrivialConditionRetriever.EcalPFRecHitThresholdsEB = cms.untracked.double( 0.0)
0007 process.EcalTrivialConditionRetriever.EcalPFRecHitThresholdsEE = cms.untracked.double( 0.0)
0008 process.EcalTrivialConditionRetriever.PFRecHitFile = cms.untracked.string("EB_thresholds_-1.txt")
0009 process.EcalTrivialConditionRetriever.PFRecHitFileEE = cms.untracked.string("EE_thresholds_-1.txt")
0010 
0011 
0012 process.load("CondCore.CondDB.CondDB_cfi")
0013 #process.CondDBCommon.connect = 'oracle://cms_orcon_prod/CMS_COND_31X_ECAL'
0014 #process.CondDBCommon.DBParameters.authenticationPath = '/nfshome0/popcondev/conddb'
0015 process.CondDB.connect = 'sqlite_file:DB.db'
0016 
0017 process.MessageLogger = cms.Service("MessageLogger",
0018     cerr = cms.untracked.PSet(
0019         enable = cms.untracked.bool(False)
0020     ),
0021     cout = cms.untracked.PSet(
0022         enable = cms.untracked.bool(True)
0023     ),
0024     debugModules = cms.untracked.vstring('*')
0025 )
0026 
0027 process.source = cms.Source("EmptyIOVSource",
0028   firstValue = cms.uint64(1),
0029   lastValue = cms.uint64(1),
0030   timetype = cms.string('runnumber'),
0031   interval = cms.uint64(1)
0032 )
0033 
0034 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0035   process.CondDB,
0036   toPut = cms.VPSet(
0037     cms.PSet(
0038       record = cms.string('EcalPFRecHitThresholdsRcd'),
0039       tag = cms.string('EcalPFRecHitThresholds_2018_def_mc')
0040     )
0041   )
0042 )
0043 
0044 process.dbCopy = cms.EDAnalyzer("EcalDBCopy",
0045   timetype = cms.string('runnumber'),
0046   toCopy = cms.VPSet(
0047     cms.PSet(
0048       record = cms.string('EcalPFRecHitThresholdsRcd'),
0049       container = cms.string('EcalPFRecHitThresholds')
0050     )
0051   )
0052 )
0053 
0054 process.prod = cms.EDAnalyzer("EcalTrivialObjectAnalyzer")
0055 
0056 process.p = cms.Path(process.prod*process.dbCopy)