File indexing completed on 2024-04-06 12:02:52
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
0006 process = cms.Process("ProcessOne")
0007
0008 process.MessageLogger = cms.Service("MessageLogger",
0009 debugModules = cms.untracked.vstring('*'),
0010 cout = cms.untracked.PSet(
0011 threshold = cms.untracked.string('DEBUG')
0012 ),
0013 destinations = cms.untracked.vstring('cout')
0014 )
0015
0016 process.source = cms.Source("EmptyIOVSource",
0017 lastValue = cms.uint64(100000000),
0018 timetype = cms.string('runnumber'),
0019 firstValue = cms.uint64(100000000),
0020 interval = cms.uint64(1)
0021 )
0022
0023 process.load("CondCore.CondDB.CondDB_cfi")
0024
0025 process.CondDB.connect = conddb_init.options.destinationDatabase
0026 process.CondDB.DBParameters.authenticationPath = ''
0027
0028 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0029 process.CondDB,
0030 toPut = cms.VPSet(cms.PSet(
0031 record = cms.string('EcalTPGFineGrainTowerEERcd'),
0032 tag = cms.string(conddb_init.options.destinationTag)
0033 ))
0034 )
0035
0036 db_reader_account = 'CMS_ECAL_R'
0037 db_service,db_user,db_pwd = auth.get_db_credentials( db_reader_account )
0038
0039 process.Test1 = cms.EDAnalyzer("ExTestEcalTPGFineGrainTowerEEAnalyzer",
0040 record = cms.string('EcalTPGFineGrainTowerEERcd'),
0041 loggingOn= cms.untracked.bool(True),
0042 IsDestDbCheckedInQueryLog=cms.untracked.bool(True),
0043 SinceAppendMode=cms.bool(True),
0044 Source=cms.PSet(
0045 firstRun = cms.string('200000'),
0046 lastRun = cms.string('10000000'),
0047 OnlineDBSID = cms.string(db_service),
0048 OnlineDBUser = cms.string(db_user),
0049 OnlineDBPassword = cms.string( db_pwd ),
0050 LocationSource = cms.string('P5'),
0051 Location = cms.string('P5_Co'),
0052 GenTag = cms.string('GLOBAL'),
0053 RunType = cms.string('PHYSICS')
0054 )
0055 )
0056
0057 process.p = cms.Path(process.Test1)