Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:03:03

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST")
0004 #process.load("CondCore.DBCommon.CondDBCommon_cfi")
0005 process.load("CondCore.CondDB.CondDB_cfi")
0006 #process.CondDBCommon.connect = 'oracle://cms_orcon_prod/CMS_COND_39X_PRESHOWER'
0007 #process.CondDBCommon.DBParameters.authenticationPath = '/nfshome0/popcondev/conddb'
0008 process.CondDB.connect = 'sqlite_file:ESRecHitRatioCuts_HG.db'
0009 
0010 process.MessageLogger = cms.Service("MessageLogger",
0011     cerr = cms.untracked.PSet(
0012         enable = cms.untracked.bool(False)
0013     ),
0014     cout = cms.untracked.PSet(
0015         enable = cms.untracked.bool(True)
0016     ),
0017     debugModules = cms.untracked.vstring('*')
0018 )
0019 
0020 process.source = cms.Source("EmptyIOVSource",
0021                             firstValue = cms.uint64(1),
0022                             lastValue = cms.uint64(1),
0023                             timetype = cms.string('runnumber'),
0024                             interval = cms.uint64(1)
0025                             )
0026 
0027 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0028                                           process.CondDB,
0029                                           timetype = cms.untracked.string('runnumber'),
0030                                           toPut = cms.VPSet(cms.PSet(
0031     # RH ratio cuts
0032     record = cms.string('ESRecHitRatioCutsRcd'),
0033     tag = cms.string('ESRecHitRatioCuts_HG')
0034     )))
0035 
0036 process.ecalModule = cms.EDAnalyzer("StoreESCondition",
0037                                     gain = cms.uint32(2), 
0038                                     logfile = cms.string('./logfile.log'),
0039                                     toPut = cms.VPSet(cms.PSet(
0040 
0041     # RH ratio cuts
0042     conditionType = cms.untracked.string('ESRecHitRatioCuts'),
0043     since = cms.untracked.uint32(250000),  
0044     inputFile = cms.untracked.string('CondTools/Ecal/test/preshower/ESRecHitRatioCuts_HG.txt')
0045     
0046     )))
0047     
0048 process.p = cms.Path(process.ecalModule)
0049     
0050     
0051