File indexing completed on 2024-04-06 12:02:54
0001 import FWCore.ParameterSet.Config as cms
0002 import CondTools.Ecal.conddb_init as conddb_init
0003 import CondTools.Ecal.db_credentials as auth
0004
0005 process = cms.Process("ProcessOne")
0006
0007 process.MessageLogger = cms.Service("MessageLogger",
0008 debugModules = cms.untracked.vstring('*'),
0009 cout = cms.untracked.PSet(
0010 threshold = cms.untracked.string('DEBUG')
0011 ),
0012 destinations = cms.untracked.vstring('cout')
0013 )
0014
0015 process.source = cms.Source("EmptyIOVSource",
0016 lastValue = cms.uint64(100000000000),
0017 timetype = cms.string('runnumber'),
0018 firstValue = cms.uint64(100000000000),
0019 interval = cms.uint64(1)
0020 )
0021
0022 process.load("CondCore.CondDB.CondDB_cfi")
0023
0024 process.CondDB.DBParameters.authenticationPath = ''
0025
0026 process.CondDB.connect = conddb_init.options.destinationDatabase
0027
0028
0029 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0030 process.CondDB,
0031 toPut = cms.VPSet(cms.PSet(
0032 record = cms.string('EcalADCToGeVConstantRcd'),
0033 tag = cms.string(conddb_init.options.destinationTag)
0034 ))
0035 )
0036
0037 db_reader_account = 'CMS_ECAL_R'
0038 db_service,db_user,db_pwd = auth.get_db_credentials( db_reader_account )
0039
0040 process.Test1 = cms.EDAnalyzer("ExTestEcalADCToGeVAnalyzer",
0041 record = cms.string('EcalADCToGeVConstantRcd'),
0042 loggingOn= cms.untracked.bool(True),
0043 IsDestDbCheckedInQueryLog=cms.untracked.bool(True),
0044 SinceAppendMode=cms.bool(True),
0045 Source=cms.PSet(
0046 FileLowField = cms.string('/data/O2O/Ecal/TPG/ADCToGeV_Boff.xml'),
0047 FileHighField = cms.string('/data/O2O/Ecal/TPG/ADCToGeV_Bon.xml'),
0048
0049
0050 firstRun = cms.string('207149'),
0051 lastRun = cms.string('10000000'),
0052 OnlineDBSID = cms.string(db_service),
0053 OnlineDBUser = cms.string(db_user),
0054 OnlineDBPassword = cms.string( db_pwd ),
0055 LocationSource = cms.string('P5'),
0056 Location = cms.string('P5_Co'),
0057 GenTag = cms.string('GLOBAL'),
0058 RunType = cms.string('COSMICS')
0059 )
0060 )
0061
0062 process.p = cms.Path(process.Test1)