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
0017
0018 process.CondDBCommon.connect = cms.string('oracle://cms_orcon_prod/CMS_COND_31X_HCAL')
0019 process.CondDBCommon.DBParameters.authenticationPath = cms.untracked.string('/nfshome0/popcondev/conddb')
0020
0021 process.source = cms.Source("EmptyIOVSource",
0022 timetype = cms.string('runnumber'),
0023 firstValue = cms.uint64(1),
0024 lastValue = cms.uint64(1),
0025 interval = cms.uint64(1)
0026 )
0027
0028 process.es_ascii = cms.ESSource("CastorTextCalibrations",
0029 input = cms.VPSet(cms.PSet(
0030 object = cms.string('GainWidths'),
0031
0032
0033
0034
0035
0036
0037
0038 file = cms.FileInPath('CondFormats/CastorObjects/data/castor_gainwidths_Run158417.txt')
0039 ))
0040 )
0041
0042 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0043 process.CondDBCommon,
0044 timetype = cms.untracked.string('runnumber'),
0045
0046 logconnect= cms.untracked.string('oracle://cms_orcon_prod/CMS_COND_31X_POPCONLOG'),
0047 toPut = cms.VPSet(cms.PSet(
0048 record = cms.string('CastorGainWidthsRcd'),
0049
0050 tag = cms.string('castor_gainwidths_v1.0_hlt')
0051 ))
0052 )
0053
0054 process.mytest = cms.EDAnalyzer("CastorGainWidthsPopConAnalyzer",
0055 record = cms.string('CastorGainWidthsRcd'),
0056 loggingOn= cms.untracked.bool(True),
0057 SinceAppendMode=cms.bool(True),
0058 Source=cms.PSet(
0059
0060
0061
0062
0063
0064
0065
0066
0067
0068 IOVRun=cms.untracked.uint32(164799)
0069 )
0070 )
0071
0072 process.p = cms.Path(process.mytest)