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 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_hlt.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.PoolDBESSource = cms.ESSource("PoolDBESSource",
0024 #  process.CondDB,
0025 #  timetype = cms.untracked.string('runnumber'),
0026 #  toGet = cms.VPSet(
0027 #    cms.PSet(
0028 #      record = cms.string('EcalPedestalsRcd'),
0029 #      tag = cms.string('EcalPedestals_hlt')
0030 #    )
0031 #  )
0032 #)
0033 
0034 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0035   process.CondDB,
0036   logconnect = cms.untracked.string('sqlite_file:DBLog.db'),
0037   timetype = cms.untracked.string('runnumber'),
0038   toPut = cms.VPSet(
0039     cms.PSet(
0040       record = cms.string('EcalPedestalsRcd'),
0041       tag = cms.string('EcalPedestals_hlt')
0042     )
0043   )
0044 )
0045 
0046 process.Test1 = cms.EDAnalyzer("ExTestEcalPedestalsAnalyzer",
0047   SinceAppendMode = cms.bool(True),
0048   record = cms.string('EcalPedestalsRcd'),
0049   loggingOn = cms.untracked.bool(True),
0050   Source = cms.PSet(
0051 #    GenTag = cms.string('GLOBAL'),
0052     GenTag = cms.string('LOCAL'),
0053     RunTag = cms.string('PEDESTAL'),
0054 #    RunTag = cms.string('COSMIC'),
0055     firstRun = cms.string('240000'),
0056     lastRun = cms.string('100000000'),
0057      LocationSource = cms.string('P5'),
0058 #    LocationSource = cms.string('File'),
0059 #    LocationSource = cms.string('Tree'),
0060 #    LocationSource = cms.string('Timestamp'),
0061 #    LocationSource = cms.string('2017'),
0062         OnlineDBUser = cms.string(db_user),
0063         debug = cms.bool(False),
0064         OnlineDBPassword = cms.string(db_pwd),
0065         OnlineDBSID = cms.string(db_service),
0066     Location = cms.string('P5_Co'),
0067   )
0068 )
0069 
0070 process.p = cms.Path(process.Test1)
0071 
0072