From 7522c99f7b50b22c97b4e9863d3eae3123d71489 Mon Sep 17 00:00:00 2001 From: mmusich Date: Wed, 31 May 2023 00:07:45 +0200 Subject: [PATCH] Online DQM configure timeThreshold appropriately when running in 'offline' mode --- .../python/clients/beam_dqm_sourceclient-live_cfg.py | 5 +++++ .../python/clients/beamhlt_dqm_sourceclient-live_cfg.py | 5 +++++ .../clients/onlinebeammonitor_dqm_sourceclient-live_cfg.py | 4 ++++ .../python/clients/pixel_dqm_sourceclient-live_cfg.py | 4 ++++ .../python/clients/sistrip_dqm_sourceclient-live_cfg.py | 4 ++++ 5 files changed, 22 insertions(+) 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..c244554faa737 100644 --- a/DQM/Integration/python/clients/onlinebeammonitor_dqm_sourceclient-live_cfg.py +++ b/DQM/Integration/python/clients/onlinebeammonitor_dqm_sourceclient-live_cfg.py @@ -112,6 +112,10 @@ process.load("CondCore.CondDB.CondDB_cfi") process.BeamSpotESProducer = cms.ESProducer("OnlineBeamSpotESProducer") +# 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)) + #----------------------------- # DQM Live Environment #----------------------------- 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()