Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 # 
0002 #
0003 # Read from xml and insert into database using
0004 # PopCon 
0005 #
0006 # This is a template, generate real test using
0007 #
0008 # sed 's/EcalGainRatios/your-record/g' testTemplate.py > testyourrecord.py
0009 #
0010 # Stefano Argiro', $Id: testEcalGainRatios.py,v 1.1 2008/11/14 15:46:03 argiro Exp $
0011 #
0012 #
0013 
0014 import FWCore.ParameterSet.Config as cms
0015 
0016 process = cms.Process("TEST")
0017 
0018 process.MessageLogger = cms.Service("MessageLogger",
0019     cerr = cms.untracked.PSet(
0020         enable = cms.untracked.bool(False)
0021     ),
0022     cout = cms.untracked.PSet(
0023         enable = cms.untracked.bool(True)
0024     )
0025 )
0026 process.load("CondCore.CondDB.CondDB_cfi")
0027 
0028 process.CondDB.connect = cms.string('sqlite_file:EcalTimeCalibConstants.db')
0029 
0030 
0031 process.source = cms.Source("EmptyIOVSource",
0032     timetype = cms.string('runnumber'),
0033     firstValue = cms.uint64(1),
0034     lastValue  = cms.uint64(1),
0035     interval = cms.uint64(1)
0036 )
0037 
0038 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0039     process.CondDB,
0040     timetype = cms.untracked.string('runnumber'),
0041     toPut = cms.VPSet(cms.PSet(
0042         record = cms.string('EcalTimeCalibConstantsRcd'),
0043         tag = cms.string('EcalTimeCalibConstants')
0044          )),
0045     logconnect= cms.untracked.string('sqlite_file:logtestEcalTimeCalib.db')                                     
0046 )
0047 
0048 process.mytest = cms.EDAnalyzer("EcalTimeCalibConstantsAnalyzer",
0049     record = cms.string('EcalTimeCalibConstantsRcd'),
0050     loggingOn= cms.untracked.bool(True),
0051     SinceAppendMode=cms.bool(True),
0052     Source=cms.PSet(
0053     xmlFile = cms.untracked.string('EcalTimeCalibConstants.xml'),
0054     since = cms.untracked.int64(1)
0055     )                            
0056 )
0057 
0058 process.p = cms.Path(process.mytest)
0059 
0060 
0061 
0062