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 import FWCore.ParameterSet.Config as cms
0003 
0004 process = cms.Process("TEST")
0005 
0006 process.MessageLogger = cms.Service("MessageLogger",
0007     cerr = cms.untracked.PSet(
0008         enable = cms.untracked.bool(False)
0009     ),
0010     cout = cms.untracked.PSet(
0011         enable = cms.untracked.bool(True),
0012         threshold = cms.untracked.string('INFO')
0013     )
0014 )
0015 
0016 process.load("CondCore.DBCommon.CondDBCommon_cfi")
0017 #process.CondDBCommon.connect = cms.string('sqlite_file:testExample.db')
0018 #process.CondDBCommon.connect = cms.string('oracle://cms_orcoff_prep/CMS_COND_30X_HCAL')
0019 process.CondDBCommon.connect = cms.string('oracle://cms_orcon_prod/CMS_COND_31X_HCAL')
0020 process.CondDBCommon.DBParameters.authenticationPath = cms.untracked.string('/nfshome0/popcondev/conddb')
0021 
0022 process.source = cms.Source("EmptyIOVSource",
0023     timetype = cms.string('runnumber'),
0024     firstValue = cms.uint64(1),
0025     lastValue = cms.uint64(1),
0026     interval = cms.uint64(1)
0027 )
0028 
0029 process.es_ascii = cms.ESSource("CastorTextCalibrations",
0030     input = cms.VPSet(cms.PSet(
0031         object = cms.string('Gains'),
0032         file = cms.FileInPath('CondFormats/CastorObjects/data/castor_gains.txt')
0033         #file = cms.FileInPath('CondFormats/CastorObjects/data/castor_gains_Run124009-132957.txt')
0034         #file = cms.FileInPath('CondFormats/CastorObjects/data/castor_gains_Run132958-138559.txt')
0035         #file = cms.FileInPath('CondFormats/CastorObjects/data/castor_gains_Run138560-141955.txt')
0036         #file = cms.FileInPath('CondFormats/CastorObjects/data/castor_gains_Run141956-150430.txt')
0037         #file = cms.FileInPath('CondFormats/CastorObjects/data/castor_gains_Run150431-150589.txt')
0038         #file = cms.FileInPath('CondFormats/CastorObjects/data/castor_gains_Run150590-158416.txt')
0039         #file = cms.FileInPath('CondFormats/CastorObjects/data/castor_gains_Run158417.txt')
0040     ))
0041 )
0042 
0043 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0044     process.CondDBCommon,
0045     timetype = cms.untracked.string('runnumber'),
0046 #    logconnect= cms.untracked.string('sqlite_file:log.db'),
0047     logconnect= cms.untracked.string('oracle://cms_orcon_prod/CMS_COND_31X_POPCONLOG'),
0048     toPut = cms.VPSet(cms.PSet(
0049         record = cms.string('CastorGainsRcd'),
0050         tag = cms.string('CastorGains_v2.1_hlt')
0051          ))
0052 )
0053 
0054 process.mytest = cms.EDAnalyzer("CastorGainsPopConAnalyzer",
0055     record = cms.string('CastorGainsRcd'),
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     )
0069 )
0070 
0071 process.p = cms.Path(process.mytest)
0072 
0073 process = cms.Process("TEST")
0074 
0075 process.MessageLogger = cms.Service("MessageLogger",
0076     cerr = cms.untracked.PSet(
0077         enable = cms.untracked.bool(False)
0078     ),
0079     cout = cms.untracked.PSet(
0080         enable = cms.untracked.bool(True),
0081         threshold = cms.untracked.string('INFO')
0082     )
0083 )
0084 
0085 process.load("CondCore.DBCommon.CondDBCommon_cfi")
0086 #process.CondDBCommon.connect = cms.string('sqlite_file:testExample.db')
0087 #process.CondDBCommon.connect = cms.string('oracle://cms_orcoff_prep/CMS_COND_30X_HCAL')
0088 process.CondDBCommon.connect = cms.string('oracle://cms_orcon_prod/CMS_COND_31X_HCAL')
0089 process.CondDBCommon.DBParameters.authenticationPath = cms.untracked.string('/nfshome0/popcondev/conddb')
0090 
0091 process.source = cms.Source("EmptyIOVSource",
0092     timetype = cms.string('runnumber'),
0093     firstValue = cms.uint64(1),
0094     lastValue = cms.uint64(1),
0095     interval = cms.uint64(1)
0096 )
0097 
0098 process.es_ascii = cms.ESSource("CastorTextCalibrations",
0099     input = cms.VPSet(cms.PSet(
0100         object = cms.string('Gains'),
0101         #file = cms.FileInPath('CondFormats/CastorObjects/data/castor_gains.txt')
0102         #file = cms.FileInPath('CondFormats/CastorObjects/data/castor_gains_Run124009-132957.txt')
0103         #file = cms.FileInPath('CondFormats/CastorObjects/data/castor_gains_Run132958-138559.txt')
0104         #file = cms.FileInPath('CondFormats/CastorObjects/data/castor_gains_Run138560-141955.txt')
0105         #file = cms.FileInPath('CondFormats/CastorObjects/data/castor_gains_Run141956-150430.txt')
0106         #file = cms.FileInPath('CondFormats/CastorObjects/data/castor_gains_Run150431-150589.txt')
0107         #file = cms.FileInPath('CondFormats/CastorObjects/data/castor_gains_Run150590-158416.txt')
0108         file = cms.FileInPath('CondFormats/CastorObjects/data/castor_gains_Run158417.txt')
0109     ))
0110 )
0111 
0112 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0113     process.CondDBCommon,
0114     timetype = cms.untracked.string('runnumber'),
0115 #    logconnect= cms.untracked.string('sqlite_file:log.db'),
0116     logconnect= cms.untracked.string('oracle://cms_orcon_prod/CMS_COND_31X_POPCONLOG'),
0117     toPut = cms.VPSet(cms.PSet(
0118         record = cms.string('CastorGainsRcd'),
0119         #tag = cms.string('CastorGains_v2.1_hlt')
0120         tag = cms.string('castor_gains_v1.0_hlt')
0121          ))
0122 )
0123 
0124 process.mytest = cms.EDAnalyzer("CastorGainsPopConAnalyzer",
0125     record = cms.string('CastorGainsRcd'),
0126     loggingOn= cms.untracked.bool(True),
0127     SinceAppendMode=cms.bool(True),
0128     Source=cms.PSet(
0129 #    firstSince=cms.untracked.double(300) 
0130     #IOVRun=cms.untracked.uint32(1)
0131     #IOVRun=cms.untracked.uint32(124009)
0132     #IOVRun=cms.untracked.uint32(132958)
0133     #IOVRun=cms.untracked.uint32(138560)
0134     #IOVRun=cms.untracked.uint32(141956)
0135     #IOVRun=cms.untracked.uint32(150431)
0136     #IOVRun=cms.untracked.uint32(150590)
0137     #IOVRun=cms.untracked.uint32(158417)
0138     IOVRun=cms.untracked.uint32(164799)
0139     )
0140 )
0141 
0142 process.p = cms.Path(process.mytest)