File indexing completed on 2024-04-06 12:03:09
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:testExample.db')
0017 process.CondDBCommon.DBParameters.authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0018
0019 process.source = cms.Source("EmptyIOVSource",
0020 timetype = cms.string('runnumber'),
0021 firstValue = cms.uint64(1),
0022 lastValue = cms.uint64(1),
0023 interval = cms.uint64(1)
0024 )
0025
0026 process.es_ascii = cms.ESSource("HcalTextCalibrations",
0027 input = cms.VPSet(cms.PSet(
0028 object = cms.string('ElectronicsMap'),
0029 file = cms.FileInPath('CondFormats/HcalObjects/data/official_emap_v7.00_081109.txt')
0030 ))
0031 )
0032
0033 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0034 process.CondDBCommon,
0035 timetype = cms.untracked.string('runnumber'),
0036 logconnect= cms.untracked.string('sqlite_file:log.db'),
0037 toPut = cms.VPSet(cms.PSet(
0038 record = cms.string('HcalElectronicsMapRcd'),
0039 tag = cms.string('official_emap_v7.00')
0040 ))
0041 )
0042
0043 process.mytest = cms.EDAnalyzer("HcalElectronicsMapPopConAnalyzer",
0044 record = cms.string('HcalElectronicsMapRcd'),
0045 loggingOn= cms.untracked.bool(True),
0046 SinceAppendMode=cms.bool(True),
0047 Source=cms.PSet(
0048
0049 IOVRun=cms.untracked.uint32(1)
0050 )
0051 )
0052
0053 process.p = cms.Path(process.mytest)