Skip to content

Commit

Permalink
Merge pull request #22400 from ggovi/condtool-ecal-add-back-reverted-…
Browse files Browse the repository at this point in the history
…changes-10-1-X

Add back revered changes
  • Loading branch information
cmsbuild committed Mar 2, 2018
2 parents ca572fe + 6dea9be commit eced59f
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 21 deletions.
6 changes: 3 additions & 3 deletions CondTools/Ecal/python/updateADCToGeV_test.py
Expand Up @@ -21,12 +21,12 @@

process.load("CondCore.CondDB.CondDB_cfi")

process.CondDB.connect = 'sqlite_file:EcalADCToGeV.db'
process.CondDB.connect = conddb_init.options.destinationDatabase
if process.CondDB.connect == '':
process.CondDB.connect = 'sqlite_file:EcalADCToGeV.db'

process.CondDB.DBParameters.authenticationPath = ''

process.CondDB.connect = conddb_init.options.destinationDatabase

db_service,db_user,db_pwd = auth.get_readOnly_db_credentials()

process.PoolDBOutputService = cms.Service("PoolDBOutputService",
Expand Down
50 changes: 32 additions & 18 deletions CondTools/Ecal/python/updateIntercali_test.py
@@ -1,4 +1,6 @@
import FWCore.ParameterSet.Config as cms
import CondTools.Ecal.conddb_init as conddb_init
import CondTools.Ecal.db_credentials as auth

process = cms.Process("ProcessOne")

Expand All @@ -17,30 +19,42 @@
interval = cms.uint64(1)
)

process.load("CondCore.DBCommon.CondDBCommon_cfi")
process.load("CondCore.CondDB.CondDB_cfi")

process.CondDBCommon.connect = 'sqlite_file:EcalIntercalibConstants_test.db'
process.CondDB.DBParameters.authenticationPath = ''
process.CondDB.connect = conddb_init.options.destinationDatabase
if process.CondDB.connect == '':
process.CondDB.connect = 'sqlite_file:EcalIntercalibConstants_test.db'

process.PoolDBOutputService = cms.Service("PoolDBOutputService",
process.CondDBCommon,
logconnect = cms.untracked.string('sqlite_file:log.db'),
toPut = cms.VPSet(
cms.PSet(
record = cms.string('EcalIntercalibConstantsRcd'),
tag = cms.string('EcalIntercalibConstants_V1_hlt')
)
)
process.CondDB,
toPut = cms.VPSet(cms.PSet(
record = cms.string('EcalIntercalibConstantsRcd'),
tag = cms.string('EcalIntercalib_test')
))
)

db_service,db_user,db_pwd = auth.get_readOnly_db_credentials()

process.Test1 = cms.EDAnalyzer("ExTestEcalIntercalibAnalyzer",
record = cms.string('EcalIntercalibConstantsRcd'),
loggingOn= cms.untracked.bool(True),
IsDestDbCheckedInQueryLog=cms.untracked.bool(True),
SinceAppendMode=cms.bool(True),
Source=cms.PSet(
InputFile = cms.string('IC_FLT_MeanPizPhiABCD_EleABCD_HR9EtaScaleD_Phis_203830.xml'),
firstRun = cms.string('100000'),
)
record = cms.string('EcalIntercalibConstantsRcd'),
loggingOn= cms.untracked.bool(True),
IsDestDbCheckedInQueryLog=cms.untracked.bool(True),
SinceAppendMode=cms.bool(True),
Source=cms.PSet(
FileLowField = cms.string('Intercalib_Boff.xml'),
FileHighField = cms.string('Intercalib_Bon.xml'),
Value_Bon = cms.untracked.double(0.7041),
firstRun = cms.string('207149'),
lastRun = cms.string('10000000'),
OnlineDBSID = cms.string(db_service),
OnlineDBUser = cms.string(db_user),
OnlineDBPassword = cms.string( db_pwd ),
LocationSource = cms.string('P5'),
Location = cms.string('P5_Co'),
GenTag = cms.string('GLOBAL'),
RunType = cms.string('COSMICS')
)
)

process.p = cms.Path(process.Test1)

0 comments on commit eced59f

Please sign in to comment.