From 6007bdbc1f5bbc75a4c8b6bcdc9779959a7eed18 Mon Sep 17 00:00:00 2001 From: francescobrivio Date: Mon, 2 Aug 2021 16:01:19 +0200 Subject: [PATCH] add refreshTime parameter to onlinebeammonitor DQM client + explanation in comment --- .../onlinebeammonitor_dqm_sourceclient-live_cfg.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 03302a4cf797e..c2082f42ccfaf 100644 --- a/DQM/Integration/python/clients/onlinebeammonitor_dqm_sourceclient-live_cfg.py +++ b/DQM/Integration/python/clients/onlinebeammonitor_dqm_sourceclient-live_cfg.py @@ -145,6 +145,18 @@ #from Configuration.AlCa.GlobalTag import GlobalTag as gtCustomise #process.GlobalTag = gtCustomise(process.GlobalTag, 'auto:run2_data', '') +# Please *do not* delete this toGet statement as it is needed to fetch BeamSpotOnline +# information every lumisection (instead of every run as for the other records in the GT) +process.GlobalTag.toGet = cms.VPSet( + cms.PSet( + record = cms.string("BeamSpotOnlineLegacyObjectsRcd"), + refreshTime = cms.uint64(1) + ), + cms.PSet( + record = cms.string("BeamSpotOnlineHLTObjectsRcd"), + refreshTime = cms.uint64(1) + ) +) process.dqmcommon = cms.Sequence(process.dqmEnv * process.dqmSaver * process.dqmSaverPB)