Back to home page

Project CMSSW displayed by LXR

 
 

    


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

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 ##process.load("CondCore.DBCommon.CondDBSetup_cfi")
0021 from CondCore.DBCommon.CondDBSetup_cfi import *
0022 
0023 process.source = cms.Source("EmptyIOVSource",
0024     timetype = cms.string('runnumber'),
0025     firstValue = cms.uint64(3),
0026     lastValue  = cms.uint64(4),
0027     interval = cms.uint64(1)
0028 )
0029 
0030 
0031 records = ["EcalADCToGeVConstant","EcalChannelStatus","EcalGainRatios","EcalTBWeights","EcalWeightXtalGroups","EcalIntercalibConstants","EcalIntercalibErrors","EcalIntercalibConstantsMC"]
0032 
0033 source = []
0034 
0035 for i in range (len(records)) :
0036 
0037         recordname = records[i] + 'Rcd'
0038         filename   = 'sqlite_file:test' + records[i] + '.db'
0039 
0040         source.append(cms.ESSource("PoolDBESSource",
0041                                    CondDBSetup,
0042                                    toGet = cms.VPSet(cms.PSet(
0043                                    record = cms.string(recordname),
0044                                    tag = cms.string('mytest'))), 
0045                                    connect=cms.string(filename)
0046                                    )
0047                       )
0048 
0049 process.source0=source[0]
0050 process.source1=source[1]
0051 process.source2=source[2]
0052 process.source3=source[3]
0053 process.source4=source[4]
0054 process.source5=source[5]
0055 process.source6=source[6]
0056 
0057 process.mytest = cms.EDAnalyzer("EcalTestConditionAnalyzer")                            
0058 
0059 
0060 process.p = cms.Path(process.mytest)