Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("ProcessOne")
0004 process.load("CondCore.DBCommon.CondDBCommon_cfi")
0005 #process.CondDBCommon.connect = 'oracle://cms_orcoff_prep/CMS_COND_ECAL'
0006 #process.CondDBCommon.DBParameters.authenticationPath = '/afs/cern.ch/cms/DB/conddb/'
0007 process.CondDBCommon.connect = 'sqlite_file:DB.db'
0008 
0009 
0010 
0011 process.MessageLogger = cms.Service("MessageLogger",
0012     cerr = cms.untracked.PSet(
0013         enable = cms.untracked.bool(False)
0014     ),
0015     cout = cms.untracked.PSet(
0016         enable = cms.untracked.bool(True)
0017     ),
0018     debugModules = cms.untracked.vstring('*')
0019 )
0020 
0021 process.source = cms.Source("EmptyIOVSource",
0022                                 firstValue = cms.uint64(1),
0023                                 lastValue = cms.uint64(1),
0024                                 timetype = cms.string('runnumber'),
0025                                 interval = cms.uint64(1)
0026                             )
0027 
0028 process.PoolDBESSource = cms.ESSource("PoolDBESSource",
0029     process.CondDBCommon,
0030     timetype = cms.untracked.string('runnumber'),
0031     toGet = cms.VPSet(cms.PSet(
0032         record = cms.string('EcalPedestalsRcd'),
0033         tag = cms.string('EcalPedestals_hlt')
0034     ))
0035 )
0036 
0037 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0038     process.CondDBCommon,
0039     logconnect = cms.untracked.string('sqlite_file:DBLog.db'),
0040     timetype = cms.untracked.string('runnumber'),
0041     toPut = cms.VPSet(cms.PSet(
0042         record = cms.string('EcalPedestalsRcd'),
0043         tag = cms.string('EcalPedestals_hlt')
0044     ))
0045 )
0046 
0047 #    logconnect = cms.untracked.string('oracle://cms_orcon_prod/CMS_COND_21X_POPCONLOG'),
0048 
0049 
0050 
0051 process.Test1 = cms.EDAnalyzer("ExTestEcalPedestalsAnalyzer",
0052     SinceAppendMode = cms.bool(True),
0053     record = cms.string('EcalPedestalsRcd'),
0054     loggingOn = cms.untracked.bool(True),
0055     Source = cms.PSet(
0056         GenTag = cms.string('LOCAL'),
0057         firstRun = cms.string('119000'),
0058         lastRun = cms.string('100000000'),
0059         LocationSource = cms.string('P5'),
0060         OnlineDBUser = cms.string('cms_ecal_r'),
0061         debug = cms.bool(True),
0062         Location = cms.string('P5_Co'),
0063         OnlineDBPassword = cms.string('xxxxxxxxxxx'),
0064         OnlineDBSID = cms.string('cms_testbeam')
0065     )
0066 )
0067 
0068 process.p = cms.Path(process.Test1)
0069 
0070