Skip to content

Commit

Permalink
add option to switch between new and old DB format
Browse files Browse the repository at this point in the history
  • Loading branch information
namapane committed Oct 15, 2020
1 parent 227b975 commit 2750f94
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions CalibMuon/DTCalibration/python/dtVDriftSegmentWriter_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

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

process.load("CalibMuon.DTCalibration.dtVDriftSegmentWriter_cfi")

process.source = cms.Source("EmptySource",
numberEventsInRun = cms.untracked.uint32(1),
firstRun = cms.untracked.uint32(1)
Expand All @@ -28,6 +30,10 @@
RECORD = 'DTMtimeRcd'
if NEWDBFORMAT :
RECORD = 'DTRecoConditionsVdriftRcd'
process.dtVDriftSegmentWriter.writeLegacyVDriftDB = False
# The following needs to be set as well if calibration should start use
# constants written in the new format as a starting point.
# process.dtVDriftSegmentWriter.vDriftAlgoConfig.readLegacyVDriftDB = False

process.PoolDBOutputService = cms.Service("PoolDBOutputService",
process.CondDB,
Expand All @@ -39,6 +45,4 @@
)
process.PoolDBOutputService.connect = cms.string('sqlite_file:vDrift.db')

process.load("CalibMuon.DTCalibration.dtVDriftSegmentWriter_cfi")

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

0 comments on commit 2750f94

Please sign in to comment.