Back to home page

Project CMSSW displayed by LXR

 
 

    


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

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:testExample2.db')
0017 #process.CondDBCommon.connect = cms.string('oracle://cms_orcoff_prep/CMS_COND_HCAL')
0018 #process.CondDBCommon.DBParameters.authenticationPath = cms.untracked.string('/nfshome0/popcondev/conddb')
0019 
0020 process.source = cms.Source("EmptyIOVSource",
0021     timetype = cms.string('runnumber'),
0022     firstValue = cms.uint64(1),
0023     lastValue = cms.uint64(1),
0024     interval = cms.uint64(1)
0025 )
0026 
0027 process.es_ascii = cms.ESSource("CastorTextCalibrations",
0028     input = cms.VPSet(cms.PSet(
0029         object = cms.string('RecoParams'),
0030         file = cms.FileInPath('CondFormats/CastorObjects/data/castor_recoparams_Run1-129455.txt')
0031         #file = cms.FileInPath('CondFormats/CastorObjects/data/castor_recoparams_Run129456.txt')
0032 # for MC
0033         #file = cms.FileInPath('CondFormats/CastorObjects/data/castor_recoparams_Run1_mc.txt')
0034 
0035     ))
0036 )
0037 
0038 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0039     process.CondDBCommon,
0040     timetype = cms.untracked.string('runnumber'),
0041     logconnect= cms.untracked.string('sqlite_file:log2.db'),
0042     #logconnect= cms.untracked.string('oracle://cms_orcoff_prep/CMS_COND_POPCONLOG'),
0043     toPut = cms.VPSet(cms.PSet(
0044         record = cms.string('CastorRecoParamsRcd'),
0045         tag = cms.string('CastorRecoParams_v1.00_offline')
0046          ))
0047 )
0048 
0049 process.mytest = cms.EDAnalyzer("CastorRecoParamsPopConAnalyzer",
0050     record = cms.string('CastorRecoParamsRcd'),
0051     loggingOn= cms.untracked.bool(True),
0052     SinceAppendMode=cms.bool(True),
0053     Source=cms.PSet(
0054 #    firstSince=cms.untracked.double(300) 
0055     IOVRun=cms.untracked.uint32(1)
0056     #IOVRun=cms.untracked.uint32(129456)
0057     )
0058 )
0059 
0060 process.p = cms.Path(process.mytest)