File indexing completed on 2024-04-06 12:03:09
0001 import FWCore.ParameterSet.Config as cms
0002 import FWCore.ParameterSet.Config as cms
0003
0004 process = cms.Process("TEST")
0005
0006 process.MessageLogger = cms.Service("MessageLogger",
0007 cerr = cms.untracked.PSet(
0008 enable = cms.untracked.bool(False)
0009 ),
0010 cout = cms.untracked.PSet(
0011 enable = cms.untracked.bool(True),
0012 threshold = cms.untracked.string('INFO')
0013 )
0014 )
0015
0016 process.load("CondCore.DBCommon.CondDBCommon_cfi")
0017
0018
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('Gains'),
0032 file = cms.FileInPath('CondFormats/CastorObjects/data/castor_gains.txt')
0033
0034
0035
0036
0037
0038
0039
0040 ))
0041 )
0042
0043 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0044 process.CondDBCommon,
0045 timetype = cms.untracked.string('runnumber'),
0046
0047 logconnect= cms.untracked.string('oracle://cms_orcon_prod/CMS_COND_31X_POPCONLOG'),
0048 toPut = cms.VPSet(cms.PSet(
0049 record = cms.string('CastorGainsRcd'),
0050 tag = cms.string('CastorGains_v2.1_hlt')
0051 ))
0052 )
0053
0054 process.mytest = cms.EDAnalyzer("CastorGainsPopConAnalyzer",
0055 record = cms.string('CastorGainsRcd'),
0056 loggingOn= cms.untracked.bool(True),
0057 SinceAppendMode=cms.bool(True),
0058 Source=cms.PSet(
0059
0060 IOVRun=cms.untracked.uint32(1)
0061
0062
0063
0064
0065
0066
0067
0068 )
0069 )
0070
0071 process.p = cms.Path(process.mytest)
0072
0073 process = cms.Process("TEST")
0074
0075 process.MessageLogger = cms.Service("MessageLogger",
0076 cerr = cms.untracked.PSet(
0077 enable = cms.untracked.bool(False)
0078 ),
0079 cout = cms.untracked.PSet(
0080 enable = cms.untracked.bool(True),
0081 threshold = cms.untracked.string('INFO')
0082 )
0083 )
0084
0085 process.load("CondCore.DBCommon.CondDBCommon_cfi")
0086
0087
0088 process.CondDBCommon.connect = cms.string('oracle://cms_orcon_prod/CMS_COND_31X_HCAL')
0089 process.CondDBCommon.DBParameters.authenticationPath = cms.untracked.string('/nfshome0/popcondev/conddb')
0090
0091 process.source = cms.Source("EmptyIOVSource",
0092 timetype = cms.string('runnumber'),
0093 firstValue = cms.uint64(1),
0094 lastValue = cms.uint64(1),
0095 interval = cms.uint64(1)
0096 )
0097
0098 process.es_ascii = cms.ESSource("CastorTextCalibrations",
0099 input = cms.VPSet(cms.PSet(
0100 object = cms.string('Gains'),
0101
0102
0103
0104
0105
0106
0107
0108 file = cms.FileInPath('CondFormats/CastorObjects/data/castor_gains_Run158417.txt')
0109 ))
0110 )
0111
0112 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0113 process.CondDBCommon,
0114 timetype = cms.untracked.string('runnumber'),
0115
0116 logconnect= cms.untracked.string('oracle://cms_orcon_prod/CMS_COND_31X_POPCONLOG'),
0117 toPut = cms.VPSet(cms.PSet(
0118 record = cms.string('CastorGainsRcd'),
0119
0120 tag = cms.string('castor_gains_v1.0_hlt')
0121 ))
0122 )
0123
0124 process.mytest = cms.EDAnalyzer("CastorGainsPopConAnalyzer",
0125 record = cms.string('CastorGainsRcd'),
0126 loggingOn= cms.untracked.bool(True),
0127 SinceAppendMode=cms.bool(True),
0128 Source=cms.PSet(
0129
0130
0131
0132
0133
0134
0135
0136
0137
0138 IOVRun=cms.untracked.uint32(164799)
0139 )
0140 )
0141
0142 process.p = cms.Path(process.mytest)