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:testExample.db')
0017 #process.CondDBCommon.DBParameters.authenticationPath = cms.untracked.string('/nfshome0/popcondev/conddb')
0018 #process.CondDBCommon.connect = cms.string('oracle://cms_orcon_prod/CMS_COND_31X_HCAL')
0019 #process.CondDBCommon.DBParameters.authenticationPath = cms.untracked.string('./authentication.xml')
0020 
0021 process.source = cms.Source("EmptyIOVSource",
0022     timetype = cms.string('runnumber'),
0023     firstValue = cms.uint64(1),
0024     lastValue = cms.uint64(1),
0025     interval = cms.uint64(1)
0026 )
0027 
0028 process.es_ascii = cms.ESSource("CastorTextCalibrations",
0029     input = cms.VPSet(cms.PSet(
0030         object = cms.string('ChannelQuality'),
0031         file = cms.FileInPath('CondFormats/CastorObjects/data/castor_quality.txt')
0032         #file = cms.FileInPath('CondFormats/CastorObjects/data/castor_channelquality_Run124009-132477.txt')
0033         #file = cms.FileInPath('CondFormats/CastorObjects/data/castor_channelquality_Run132478-132661.txt')
0034         #file = cms.FileInPath('CondFormats/CastorObjects/data/castor_channelquality_Run132662-132957.txt')
0035         #file = cms.FileInPath('CondFormats/CastorObjects/data/castor_channelquality_Run132958-138559.txt')
0036         #file = cms.FileInPath('CondFormats/CastorObjects/data/castor_channelquality_Run138560-138750.txt')
0037         #file = cms.FileInPath('CondFormats/CastorObjects/data/castor_channelquality_Run138751-140330.txt')
0038         #file = cms.FileInPath('CondFormats/CastorObjects/data/castor_channelquality_Run140331-140400.txt')
0039         #file = cms.FileInPath('CondFormats/CastorObjects/data/castor_channelquality_Run140401-141955.txt')
0040         #file = cms.FileInPath('CondFormats/CastorObjects/data/castor_channelquality_Run141956-148858.txt')
0041         #file = cms.FileInPath('CondFormats/CastorObjects/data/castor_channelquality_Run148859-148951.txt')
0042         #file = cms.FileInPath('CondFormats/CastorObjects/data/castor_channelquality_Run148952-150430.txt')
0043         #file = cms.FileInPath('CondFormats/CastorObjects/data/castor_channelquality_Run150431-150589.txt')
0044         #file = cms.FileInPath('CondFormats/CastorObjects/data/castor_channelquality_Run150590-158416.txt')
0045         #file = cms.FileInPath('CondFormats/CastorObjects/data/castor_channelquality_Run158417.txt')
0046 
0047     ))
0048 )
0049 
0050 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0051     process.CondDBCommon,
0052     timetype = cms.untracked.string('runnumber'),
0053     #logconnect= cms.untracked.string('oracle://cms_orcon_prod/CMS_COND_31X_POPCONLOG'),
0054     logconnect= cms.untracked.string('sqlite_file:log.db'),
0055     toPut = cms.VPSet(cms.PSet(
0056         record = cms.string('CastorChannelQualityRcd'),
0057         tag = cms.string('CastorChannelQuality_v2.2_offline')
0058          ))
0059 )
0060 
0061 process.mytest = cms.EDAnalyzer("CastorChannelQualityPopConAnalyzer",
0062     record = cms.string('CastorChannelQualityRcd'),
0063     loggingOn= cms.untracked.bool(True),
0064     SinceAppendMode=cms.bool(True),
0065     Source=cms.PSet(
0066 #    firstSince=cms.untracked.double(300) 
0067     IOVRun=cms.untracked.uint32(1)
0068     #IOVRun=cms.untracked.uint32(124009)
0069     #IOVRun=cms.untracked.uint32(132478)
0070     #IOVRun=cms.untracked.uint32(132662)
0071     #IOVRun=cms.untracked.uint32(132958)
0072     #IOVRun=cms.untracked.uint32(138560)
0073     #IOVRun=cms.untracked.uint32(138751)
0074     #IOVRun=cms.untracked.uint32(140331)
0075     #IOVRun=cms.untracked.uint32(140401)
0076     #IOVRun=cms.untracked.uint32(141956)
0077     #IOVRun=cms.untracked.uint32(148859)
0078     #IOVRun=cms.untracked.uint32(148952)
0079     #IOVRun=cms.untracked.uint32(150431)
0080     #IOVRun=cms.untracked.uint32(150590)
0081     #IOVRun=cms.untracked.uint32(158417)
0082     )
0083 )
0084 
0085 process.p = cms.Path(process.mytest)