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 process.CondDBCommon.connect = cms.string('sqlite_file:testExample.db')
0018 process.CondDBCommon.DBParameters.authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0019
0020
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('QIEData'),
0032 file = cms.FileInPath('CondFormats/CastorObjects/data/castor_qie_test2.txt')
0033 ))
0034 )
0035
0036 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0037 process.CondDBCommon,
0038 timetype = cms.untracked.string('runnumber'),
0039
0040 logconnect= cms.untracked.string('sqlite_file:log.db'),
0041 toPut = cms.VPSet(cms.PSet(
0042 record = cms.string('CastorQIEDataRcd'),
0043 tag = cms.string('castor_qie_v1.0_test')
0044 ))
0045 )
0046
0047 process.mytest = cms.EDAnalyzer("CastorQIEDataPopConAnalyzer",
0048 record = cms.string('CastorQIEDataRcd'),
0049 loggingOn= cms.untracked.bool(True),
0050 SinceAppendMode=cms.bool(True),
0051 Source=cms.PSet(
0052
0053 IOVRun=cms.untracked.uint32(1)
0054 )
0055 )
0056
0057 process.p = cms.Path(process.mytest)