CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_9_patch3/src/CondTools/Ecal/python/updateADCToGeV.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 process = cms.Process("ProcessOne")
00004 
00005 process.MessageLogger = cms.Service("MessageLogger",
00006     debugModules = cms.untracked.vstring('*'),
00007     cout = cms.untracked.PSet(
00008         threshold = cms.untracked.string('DEBUG')
00009     ),
00010     destinations = cms.untracked.vstring('cout')
00011 )
00012 
00013 process.source = cms.Source("EmptyIOVSource",
00014     lastValue = cms.uint64(100000000000),
00015     timetype = cms.string('runnumber'),
00016     firstValue = cms.uint64(100000000000),
00017     interval = cms.uint64(1)
00018 )
00019 
00020 process.load("CondCore.DBCommon.CondDBCommon_cfi")
00021 
00022 process.CondDBCommon.DBParameters.authenticationPath = '/nfshome0/popcondev/conddb'
00023 
00024 #process.CondDBCommon.connect = 'sqlite_file:DB.db'
00025 #process.CondDBCommon.connect = 'oracle://cms_orcoff_prep/CMS_COND_ECAL'
00026 process.CondDBCommon.connect = 'oracle://cms_orcon_prod/CMS_COND_31X_ECAL'
00027 
00028 
00029 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
00030     process.CondDBCommon, 
00031     logconnect = cms.untracked.string('oracle://cms_orcon_prod/CMS_COND_31X_POPCONLOG'),
00032 # logconnect = cms.untracked.string('sqlite_file:log.db'),   
00033         toPut = cms.VPSet(cms.PSet(
00034         record = cms.string('EcalADCToGeVConstantRcd'),
00035         tag = cms.string('EcalADCToGeVConstant_v8_offline')
00036     ))
00037 )
00038 
00039 process.Test1 = cms.EDAnalyzer("ExTestEcalADCToGeVAnalyzer",
00040     record = cms.string('EcalADCToGeVConstantRcd'),
00041     loggingOn= cms.untracked.bool(True),
00042     IsDestDbCheckedInQueryLog=cms.untracked.bool(True),
00043     SinceAppendMode=cms.bool(True),
00044     Source=cms.PSet(
00045      FileLowField = cms.string('/nfshome0/popcondev/EcalTPGPopCon/CMSSW_3_11_0_ONLINE/src/CondTools/Ecal/python/ADCtoGeV_Boff.xml'),
00046      FileHighField = cms.string('/nfshome0/popcondev/EcalTPGPopCon/CMSSW_3_11_0_ONLINE/src/CondTools/Ecal/python/ADCtoGeV_Bon.xml'),
00047      firstRun = cms.string('98273'),
00048      lastRun = cms.string('10000000'),
00049      OnlineDBSID = cms.string('cms_omds_lb'),
00050      OnlineDBUser = cms.string('cms_ecal_r'),
00051      OnlineDBPassword = cms.string('*******'),
00052      LocationSource = cms.string('P5'),
00053      Location = cms.string('P5_Co'),
00054      GenTag = cms.string('GLOBAL'),
00055      RunType = cms.string('COSMICS')
00056     )                            
00057 )
00058 
00059 process.p = cms.Path(process.Test1)