Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:50:38

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.PoolDBOutputService = cms.Service("PoolDBOutputService",
0027     process.CondDBCommon,
0028     timetype = cms.untracked.string('runnumber'),
0029     toPut = cms.VPSet(cms.PSet(
0030         record = cms.string('CSCPedestalsRcd'),
0031         tag = cms.string('mytest')
0032          )),
0033     logconnect= cms.untracked.string('sqlite_file:logtestExample.db')                                     
0034 )
0035 
0036 process.mytest = cms.EDAnalyzer("ExPopConAnalyzer",
0037     record = cms.string('CSCPedestalsRcd'),
0038     loggingOn= cms.untracked.bool(True),
0039     SinceAppendMode=cms.bool(True),
0040     Source=cms.PSet(
0041     firstSince=cms.untracked.int64(300) 
0042     )                            
0043 )
0044 
0045 process.p = cms.Path(process.mytest)