File indexing completed on 2024-04-06 12:03:03
0001 import FWCore.ParameterSet.Config as cms
0002
0003 process = cms.Process("TEST")
0004
0005 process.maxEvents = cms.untracked.PSet(
0006 input = cms.untracked.int32(1)
0007 )
0008
0009
0010 process.MessageLogger = cms.Service("MessageLogger",
0011 cerr = cms.untracked.PSet(
0012 enable = cms.untracked.bool(False)
0013 ),
0014 cout = cms.untracked.PSet(
0015 enable = cms.untracked.bool(True),
0016 treshold = cms.untracked.string('INFO')
0017 )
0018 )
0019
0020
0021 from CondCore.DBCommon.CondDBSetup_cfi import *
0022
0023 process.source = cms.Source("EmptyIOVSource",
0024 timetype = cms.string('runnumber'),
0025 firstValue = cms.uint64(1),
0026 lastValue = cms.uint64(1),
0027 interval = cms.uint64(1)
0028 )
0029
0030
0031 records = ["EcalADCToGeVConstant","EcalChannelStatus","EcalGainRatios","EcalTBWeights","EcalWeightXtalGroups","EcalIntercalibConstants","EcalIntercalibConstantsMC","EcalIntercalibErrors"]
0032 tags = ["EcalADCToGeVConstant_mc","EcalChannelStatus_AllCruzet_online","EcalGainRatios_TestPulse_online","EcalTBWeights_mc","EcalWeightXtalGroups_mc","EcalIntercalibConstants_AllCruzet_EEB0v2_offline","EcalIntercalibConstantsMC_ideal","EcalIntercalibErrors_mc"]
0033
0034 source = []
0035
0036 for i in range (len(records)) :
0037
0038 recordname = records[i] + 'Rcd'
0039 tag = tags[i]
0040 filename = 'frontier://FrontierPrep/CMS_COND_31X_ALL'
0041
0042 source.append(cms.ESSource("PoolDBESSource",
0043 CondDBSetup,
0044 toGet = cms.VPSet(cms.PSet(
0045 record = cms.string(recordname),
0046 tag = cms.string(tag )) ),
0047 connect=cms.string(filename)
0048 )
0049 )
0050
0051 process.source0=source[0]
0052 process.source1=source[1]
0053 process.source2=source[2]
0054 process.source3=source[3]
0055 process.source4=source[4]
0056 process.source5=source[5]
0057 process.source6=source[6]
0058 process.source7=source[7]
0059
0060 process.mytest = cms.EDAnalyzer("EcalTestConditionAnalyzer")
0061
0062
0063 process.p = cms.Path(process.mytest)