Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:52:13

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST")
0004 
0005 process.MessageLogger = cms.Service("MessageLogger",
0006     cerr = cms.untracked.PSet(
0007         enable = cms.untracked.bool(False)
0008     ),
0009     cout = cms.untracked.PSet(
0010         enable = cms.untracked.bool(True),
0011         threshold = cms.untracked.string('INFO')
0012     )
0013 )
0014 
0015 process.load("CondCore.DBCommon.CondDBCommon_cfi")
0016 #process.CondDBCommon.connect = cms.string('sqlite_file:CastorEmap.db')
0017 process.CondDBCommon.DBParameters.authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0018 #process.CondDBCommon.connect = cms.string('oracle://cms_orcoff_prep/CMS_COND_31X_HCAL')
0019 process.CondDBCommon.connect = cms.string('oracle://cms_orcon_prod/CMS_COND_31X_HCAL')
0020 process.CondDBCommon.DBParameters.authenticationPath = cms.untracked.string('/nfshome0/popcondev/conddb')
0021 
0022 process.source = cms.Source("EmptyIOVSource",
0023     timetype = cms.string('runnumber'),
0024     firstValue = cms.uint64(1),
0025     lastValue = cms.uint64(1),
0026     interval = cms.uint64(1)
0027 )
0028 
0029 process.es_ascii = cms.ESSource("CastorTextCalibrations",
0030     input = cms.VPSet(cms.PSet(
0031         object = cms.string('ElectronicsMap'),
0032         file = cms.FileInPath('CondFormats/CastorObjects/data/emap_dcc_nominal_Run121872.txt')
0033     ))
0034 )
0035 
0036 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0037     process.CondDBCommon,
0038     timetype = cms.untracked.string('runnumber'),
0039 #    logconnect= cms.untracked.string('sqlite_file:log.db'),
0040     #logconnect= cms.untracked.string('oracle://cms_orcoff_prep/CMS_COND_31X_POPCONLOG'),
0041     logconnect= cms.untracked.string('oracle://cms_orcon_prod/CMS_COND_31X_POPCONLOG'),
0042     toPut = cms.VPSet(cms.PSet(
0043         record = cms.string('CastorElectronicsMapRcd'),
0044         tag = cms.string('CastorElectronicsMap_v2.01_mc')
0045          ))
0046 )
0047 
0048 process.mytest = cms.EDAnalyzer("CastorElectronicsMapPopConAnalyzer",
0049     record = cms.string('CastorElectronicsMapRcd'),
0050     loggingOn= cms.untracked.bool(True),
0051     SinceAppendMode=cms.bool(True),
0052     Source=cms.PSet(
0053 #    firstSince=cms.untracked.double(300) 
0054     IOVRun=cms.untracked.uint32(1)
0055     )
0056 )
0057 
0058 process.p = cms.Path(process.mytest)