Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:03:02

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         treshold = 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 #    firstRun = cms.untracked.uint32(1),
0022 #    lastRun = cms.untracked.uint32(1),*
0023     firstValue = cms.uint64(1),
0024     lastValue  = cms.uint64(1),
0025     interval = cms.uint64(1)
0026 )
0027 
0028 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0029     process.CondDBCommon,
0030     timetype = cms.untracked.string('runnumber'),
0031     toPut = cms.VPSet(cms.PSet(
0032         record = cms.string('EcalMappingElectronicsRcd'),
0033         tag = cms.string('mytest')
0034          )),
0035     logconnect= cms.untracked.string('sqlite_file:logtestEcalMappingElectronics.db')                                     
0036 )
0037 
0038 process.mytest = cms.EDAnalyzer("EcalMappingElectronicsAnalyzer",
0039     record = cms.string('EcalMappingElectronicsRcd'),
0040     loggingOn= cms.untracked.bool(True),
0041     SinceAppendMode=cms.bool(True),
0042     Source=cms.PSet(
0043     txtFile = cms.untracked.string('Geometry/EcalMapping/data/EEMap.txt'),
0044     since = cms.untracked.int64(1),
0045     name =  cms.untracked.string('EcalMappingElectronicsHandler')
0046     )                            
0047                                 
0048 )
0049 
0050 process.p = cms.Path(process.mytest)
0051 
0052 
0053 
0054