Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:02:53

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("ProcessOne")
0004 
0005 process.load("CondCore.DBCommon.CondDBCommon_cfi")
0006 #process.CondDBCommon.connect = 'oracle://cms_orcon_prod/CMS_COND_34X_ECAL'
0007 process.CondDBCommon.DBParameters.authenticationPath = '/nfshome0/popcondev/conddb'
0008 process.CondDBCommon.connect = 'sqlite_file:EcalDAQTowerStatus.db'
0009 
0010 
0011 
0012 process.MessageLogger = cms.Service("MessageLogger",
0013     cerr = cms.untracked.PSet(
0014         enable = cms.untracked.bool(False)
0015     ),
0016     cout = cms.untracked.PSet(
0017         enable = cms.untracked.bool(True)
0018     ),
0019     debugModules = cms.untracked.vstring('*')
0020 )
0021 
0022 process.source = cms.Source("EmptyIOVSource",
0023     firstValue = cms.uint64(1000000),
0024     lastValue = cms.uint64(1000000),
0025     timetype = cms.string('runnumber'),
0026     interval = cms.uint64(1)
0027 )
0028 
0029 process.PoolDBESSource = cms.ESSource("PoolDBESSource",
0030     process.CondDBCommon,
0031     timetype = cms.untracked.string('runnumber'),
0032     toGet = cms.VPSet(
0033         cms.PSet(
0034             record = cms.string('EcalDAQTowerStatusRcd'),
0035             tag = cms.string('EcalDAQTowerStatus_online')
0036         )
0037     )
0038 )
0039 
0040 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0041     process.CondDBCommon,
0042     #logconnect = cms.untracked.string('oracle://cms_orcon_prod/CMS_COND_31X_POPCONLOG'),
0043     logconnect = cms.untracked.string('sqlite_file:/tmp/EcalDAQDBlog.db'),
0044     timetype = cms.untracked.string('runnumber'),
0045     toPut = cms.VPSet(
0046         cms.PSet(
0047             record = cms.string('EcalDAQTowerStatusRcd'),
0048             tag = cms.string('EcalDAQTowerStatus_online')
0049         )
0050     )
0051 )
0052 
0053 process.Test1 = cms.EDAnalyzer("ExTestEcalDAQAnalyzer",
0054     SinceAppendMode = cms.bool(True),
0055     record = cms.string('EcalDAQTowerStatusRcd'),
0056     loggingOn = cms.untracked.bool(True),
0057     Source = cms.PSet(
0058         firstRun = cms.string('121756'),
0059         lastRun = cms.string('100000000'),
0060         OnlineDBUser = cms.string('cms_ecal_r'),
0061         OnlineDBPassword = cms.string('******'),
0062         OnlineDBSID = cms.string('cms_omds_lb'),
0063         location = cms.string('P5_Co'),
0064 #        runtype = cms.string('Cosmic'), 
0065 #        runtype = cms.string('Cosmic'), 
0066         runtype = cms.string('PHYSICS'), 
0067         gentag = cms.string('GLOBAL'),
0068         debug = cms.bool(False)
0069     )
0070 )
0071 
0072 process.p = cms.Path(process.Test1)
0073 
0074