Back to home page

Project CMSSW displayed by LXR

 
 

    


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

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.connect = cms.string('oracle://cms_orcoff_prep/CMS_COND_30X_HCAL')
0018 process.CondDBCommon.connect = cms.string('oracle://cms_orcon_prod/CMS_COND_31X_HCAL')
0019 process.CondDBCommon.DBParameters.authenticationPath = cms.untracked.string('/nfshome0/popcondev/conddb')
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('GainWidths'),
0031         #file = cms.FileInPath('CondFormats/CastorObjects/data/castor_gain_widths.txt')
0032         #file = cms.FileInPath('CondFormats/CastorObjects/data/castor_gainwidths_Run124009-132957.txt')
0033         #file = cms.FileInPath('CondFormats/CastorObjects/data/castor_gainwidths_Run132958-138559.txt')
0034         #file = cms.FileInPath('CondFormats/CastorObjects/data/castor_gainwidths_Run138560-141955.txt')
0035         #file = cms.FileInPath('CondFormats/CastorObjects/data/castor_gainwidths_Run141956-150430.txt')
0036         #file = cms.FileInPath('CondFormats/CastorObjects/data/castor_gainwidths_Run150431-150589.txt')
0037         #file = cms.FileInPath('CondFormats/CastorObjects/data/castor_gainwidths_Run150590-158416.txt')
0038         file = cms.FileInPath('CondFormats/CastorObjects/data/castor_gainwidths_Run158417.txt')
0039     ))
0040 )
0041 
0042 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0043     process.CondDBCommon,
0044     timetype = cms.untracked.string('runnumber'),
0045 #    logconnect= cms.untracked.string('sqlite_file:log.db'),
0046     logconnect= cms.untracked.string('oracle://cms_orcon_prod/CMS_COND_31X_POPCONLOG'),
0047     toPut = cms.VPSet(cms.PSet(
0048         record = cms.string('CastorGainWidthsRcd'),
0049         #tag = cms.string('CastorGainWidths_v2.1_hlt')
0050         tag = cms.string('castor_gainwidths_v1.0_hlt')
0051          ))
0052 )
0053 
0054 process.mytest = cms.EDAnalyzer("CastorGainWidthsPopConAnalyzer",
0055     record = cms.string('CastorGainWidthsRcd'),
0056     loggingOn= cms.untracked.bool(True),
0057     SinceAppendMode=cms.bool(True),
0058     Source=cms.PSet(
0059 #    firstSince=cms.untracked.double(300) 
0060     #IOVRun=cms.untracked.uint32(1)
0061     #IOVRun=cms.untracked.uint32(124009)
0062     #IOVRun=cms.untracked.uint32(132958)
0063     #IOVRun=cms.untracked.uint32(138560)
0064     #IOVRun=cms.untracked.uint32(141956)
0065     #IOVRun=cms.untracked.uint32(150431)
0066     #IOVRun=cms.untracked.uint32(150590)
0067     #IOVRun=cms.untracked.uint32(158417)
0068     IOVRun=cms.untracked.uint32(164799)
0069     )
0070 )
0071 
0072 process.p = cms.Path(process.mytest)