Back to home page

Project CMSSW displayed by LXR

 
 

    


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('ChannelQuality'),
0029         #file = cms.FileInPath('CondFormats/HcalObjects/data/hcal_channelStatus_default.txt')
0030         file = cms.FileInPath('CondTools/Hcal/test/DumpCondChannelQuality_Run1.txt')
0031     ))
0032 )
0033 
0034 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0035     process.CondDBCommon,
0036     timetype = cms.untracked.string('runnumber'),
0037     logconnect= cms.untracked.string('sqlite_file:log.db'),
0038     toPut = cms.VPSet(cms.PSet(
0039         record = cms.string('HcalChannelQualityRcd'),
0040         tag = cms.string('HcalChannelQuality_v1.02_mc')
0041          ))
0042 )
0043 
0044 process.mytest = cms.EDAnalyzer("HcalChannelQualityPopConAnalyzer",
0045     record = cms.string('HcalChannelQualityRcd'),
0046     loggingOn= cms.untracked.bool(True),
0047     SinceAppendMode=cms.bool(True),
0048     Source=cms.PSet(
0049 #    firstSince=cms.untracked.double(300) 
0050     IOVRun=cms.untracked.uint32(1)
0051     )
0052 )
0053 
0054 process.p = cms.Path(process.mytest)