Skip to content

Commit

Permalink
Online DQM configure timeThreshold appropriately when running in 'off…
Browse files Browse the repository at this point in the history
…line' mode
  • Loading branch information
mmusich committed May 31, 2023
1 parent 2fcc6f8 commit 79815fc
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@
# Swap offline <-> online BeamSpot as in Express and HLT
import RecoVertex.BeamSpotProducer.onlineBeamSpotESProducer_cfi as _mod
process.BeamSpotESProducer = _mod.onlineBeamSpotESProducer.clone()

# for running offline enhance the time validity of the online beamspot in DB
if ((not live) or process.isDqmPlayback.value):
process.BeamSpotESProducer.timeThreshold = cms.int32(int(1e6))

import RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi
process.offlineBeamSpot = RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi.onlineBeamSpotProducer.clone()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,11 @@
# Swap offline <-> online BeamSpot as in Express and HLT
import RecoVertex.BeamSpotProducer.onlineBeamSpotESProducer_cfi as _mod
process.BeamSpotESProducer = _mod.onlineBeamSpotESProducer.clone()

# for running offline enhance the time validity of the online beamspot in DB
if ((not live) or process.isDqmPlayback.value):
process.BeamSpotESProducer.timeThreshold = cms.int32(int(1e6))

import RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi
process.offlineBeamSpot = RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi.onlineBeamSpotProducer.clone()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@
process.dqmSaverPB.tag = 'OnlineBeamMonitor'
process.dqmSaverPB.runNumber = options.runNumber

# for running offline enhance the time validity of the online beamspot in DB
if (unitTest or process.isDqmPlayback.value):
process.BeamSpotESProducer.timeThreshold = cms.int32(int(1e6))

#-----------------------------
# BeamMonitor
#-----------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@
import RecoVertex.BeamSpotProducer.onlineBeamSpotESProducer_cfi as _mod
process.BeamSpotESProducer = _mod.onlineBeamSpotESProducer.clone()

# for running offline enhance the time validity of the online beamspot in DB
if ((not live) or process.isDqmPlayback.value):
process.BeamSpotESProducer.timeThreshold = cms.int32(int(1e6))

import RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi
process.offlineBeamSpot = RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi.onlineBeamSpotProducer.clone()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@
import RecoVertex.BeamSpotProducer.onlineBeamSpotESProducer_cfi as _mod
process.BeamSpotESProducer = _mod.onlineBeamSpotESProducer.clone()

# for running offline enhance the time validity of the online beamspot in DB
if ((not live) or process.isDqmPlayback.value):
process.BeamSpotESProducer.timeThreshold = cms.int32(int(1e6))

import RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi
process.offlineBeamSpot = RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi.onlineBeamSpotProducer.clone()

Expand Down

0 comments on commit 79815fc

Please sign in to comment.