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:CastorSaturationCorrs.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('SaturationCorrs'),
0030         #file = cms.FileInPath('CondFormats/CastorObjects/data/castor_SaturationCorrs_Run1-129455.txt')
0031         #file = cms.FileInPath('CondFormats/CastorObjects/data/castor_SaturationCorrs_Run129456.txt')
0032 # for MC
0033         #file = cms.FileInPath('CondFormats/CastorObjects/data/castor_SaturationCorrs_Run1_mc.txt')
0034         file = cms.FileInPath('CondFormats/CastorObjects/data/Dummy_CastorSaturationCorrs.txt')
0035 
0036     ))
0037 )
0038 
0039 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0040     process.CondDBCommon,
0041     timetype = cms.untracked.string('runnumber'),
0042     logconnect= cms.untracked.string('sqlite_file:log2.db'),
0043     #logconnect= cms.untracked.string('oracle://cms_orcoff_prep/CMS_COND_POPCONLOG'),
0044     toPut = cms.VPSet(cms.PSet(
0045         record = cms.string('CastorSaturationCorrsRcd'),
0046         tag = cms.string('CastorSaturationCorrs_v1.00_offline')
0047          ))
0048 )
0049 
0050 process.mytest = cms.EDAnalyzer("CastorSaturationCorrsPopConAnalyzer",
0051     record = cms.string('CastorSaturationCorrsRcd'),
0052     loggingOn= cms.untracked.bool(True),
0053     SinceAppendMode=cms.bool(True),
0054     Source=cms.PSet(
0055 #    firstSince=cms.untracked.double(300) 
0056     IOVRun=cms.untracked.uint32(1)
0057     #IOVRun=cms.untracked.uint32(129456)
0058     )
0059 )
0060 
0061 process.p = cms.Path(process.mytest)