diff --git a/DQM/Integration/python/clients/beam_dqm_sourceclient-live_cfg.py b/DQM/Integration/python/clients/beam_dqm_sourceclient-live_cfg.py index 5ef19413a8dba..390bba3567360 100644 --- a/DQM/Integration/python/clients/beam_dqm_sourceclient-live_cfg.py +++ b/DQM/Integration/python/clients/beam_dqm_sourceclient-live_cfg.py @@ -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() diff --git a/DQM/Integration/python/clients/beamhlt_dqm_sourceclient-live_cfg.py b/DQM/Integration/python/clients/beamhlt_dqm_sourceclient-live_cfg.py index 28c79c73191c5..3f3b6fba6e2d2 100644 --- a/DQM/Integration/python/clients/beamhlt_dqm_sourceclient-live_cfg.py +++ b/DQM/Integration/python/clients/beamhlt_dqm_sourceclient-live_cfg.py @@ -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() diff --git a/DQM/Integration/python/clients/onlinebeammonitor_dqm_sourceclient-live_cfg.py b/DQM/Integration/python/clients/onlinebeammonitor_dqm_sourceclient-live_cfg.py index c6a9165e22793..98cc2d229ad10 100644 --- a/DQM/Integration/python/clients/onlinebeammonitor_dqm_sourceclient-live_cfg.py +++ b/DQM/Integration/python/clients/onlinebeammonitor_dqm_sourceclient-live_cfg.py @@ -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 #----------------------------- diff --git a/DQM/Integration/python/clients/pixel_dqm_sourceclient-live_cfg.py b/DQM/Integration/python/clients/pixel_dqm_sourceclient-live_cfg.py index 528e2b85d52f5..ad72f83bb39bc 100644 --- a/DQM/Integration/python/clients/pixel_dqm_sourceclient-live_cfg.py +++ b/DQM/Integration/python/clients/pixel_dqm_sourceclient-live_cfg.py @@ -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() diff --git a/DQM/Integration/python/clients/sistrip_dqm_sourceclient-live_cfg.py b/DQM/Integration/python/clients/sistrip_dqm_sourceclient-live_cfg.py index 5b23544bf41d7..bceef684d013d 100644 --- a/DQM/Integration/python/clients/sistrip_dqm_sourceclient-live_cfg.py +++ b/DQM/Integration/python/clients/sistrip_dqm_sourceclient-live_cfg.py @@ -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()