Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 import CondTools.Ecal.db_credentials as auth
0003 
0004 process = cms.Process("ProcessOne")
0005 process.load("CondCore.CondDB.CondDB_cfi")
0006 process.CondDB.connect = 'sqlite_file:EcalPedestals_mc2016_corrected.db'
0007 
0008 process.MessageLogger = cms.Service("MessageLogger",
0009   debugModules = cms.untracked.vstring('*'),
0010   destinations = cms.untracked.vstring('cout')
0011 )
0012 
0013 process.source = cms.Source("EmptyIOVSource",
0014   firstValue = cms.uint64(1),
0015   lastValue = cms.uint64(1),
0016   timetype = cms.string('runnumber'),
0017   interval = cms.uint64(1)
0018 )
0019 
0020 db_reader_account = 'CMS_ECAL_R'
0021 db_service,db_user,db_pwd = auth.get_db_credentials( db_reader_account )
0022 
0023 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0024   process.CondDB,
0025   logconnect = cms.untracked.string('sqlite_file:DBLog.db'),
0026   timetype = cms.untracked.string('runnumber'),
0027   toPut = cms.VPSet(
0028     cms.PSet(
0029       record = cms.string('EcalPedestalsRcd'),
0030       tag = cms.string('EcalPedestals_MC')
0031     )
0032   )
0033 )
0034 
0035 process.Test1 = cms.EDAnalyzer("ExTestEcalPedestalsAnalyzer",
0036   SinceAppendMode = cms.bool(True),
0037   record = cms.string('EcalPedestalsRcd'),
0038   loggingOn = cms.untracked.bool(True),
0039   Source = cms.PSet(
0040     GenTag = cms.string('***'),
0041     RunTag = cms.string('***'),
0042         OnlineDBUser = cms.string(db_user),
0043         OnlineDBPassword = cms.string(db_pwd),
0044         OnlineDBSID = cms.string(db_service),
0045     Location = cms.string('***'),
0046     LocationSource = cms.string('MC'),
0047     filename = cms.untracked.string('./Pedestals_278181.xml'),
0048 #    filename = cms.untracked.string('./Pedestals_303848.xml'),
0049 #    filename = cms.untracked.string('./Pedestals_304211.xml'),
0050     firstRun = cms.string('1'),
0051     lastRun = cms.string('100000000'),
0052     corrected = cms.untracked.bool(True),
0053     debug = cms.bool(False)
0054   )
0055 )
0056 
0057 process.p = cms.Path(process.Test1)
0058 
0059