Skip to content

Commit

Permalink
Merge pull request #38262 from pmandrik/dqm_host_type
Browse files Browse the repository at this point in the history
Update DQM beam clients playback machine type check
  • Loading branch information
cmsbuild authored Jun 9, 2022
2 parents de5a473 + 2eade3d commit c5d5ace
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 30 deletions.
15 changes: 8 additions & 7 deletions DQM/Integration/python/clients/beam_dqm_sourceclient-live_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,6 @@
from Configuration.Eras.Era_Run3_cff import Run3
process = cms.Process("BeamMonitor", Run3)

# Configure tag and jobName if running Playback system
if "dqm_cmssw/playback" in str(sys.argv[1]):
BSOnlineTag = BSOnlineTag + 'Playback'
BSOnlineJobName = BSOnlineJobName + 'Playback'
BSOnlineOmsServiceUrl = ''
useLockRecords = False
#
process.MessageLogger = cms.Service("MessageLogger",
debugModules = cms.untracked.vstring('*'),
cerr = cms.untracked.PSet(
Expand Down Expand Up @@ -68,6 +61,14 @@
subSystemFolder = 'BeamMonitor_PixelLess'
)

# Configure tag and jobName if running Playback system
if process.isDqmPlayback.value :
BSOnlineTag = BSOnlineTag + 'Playback'
BSOnlineJobName = BSOnlineJobName + 'Playback'
BSOnlineOmsServiceUrl = ''
useLockRecords = False
#

#---------------
# Conditions
if (live):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,6 @@
from Configuration.Eras.Era_Run3_cff import Run3
process = cms.Process("FakeBeamMonitor", Run3)

# Configure tag and jobName if running Playback system
if "dqm_cmssw/playback" in str(sys.argv[1]):
BSOnlineTag = BSOnlineTag + 'Playback'
BSOnlineJobName = BSOnlineJobName + 'Playback'
BSOnlineOmsServiceUrl = ''
useLockRecords = False

#
process.MessageLogger = cms.Service("MessageLogger",
debugModules = cms.untracked.vstring('*'),
cerr = cms.untracked.PSet(
Expand Down Expand Up @@ -68,6 +60,12 @@
process.dqmSaverPB.tag = 'FakeBeamMonitorLegacy'
process.dqmSaverPB.runNumber = options.runNumber

# Configure tag and jobName if running Playback system
if process.isDqmPlayback.value :
BSOnlineTag = BSOnlineTag + 'Playback'
BSOnlineJobName = BSOnlineJobName + 'Playback'
BSOnlineOmsServiceUrl = ''
useLockRecords = False

#---------------
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,6 @@
from Configuration.Eras.Era_Run3_cff import Run3
process = cms.Process("BeamMonitor", Run3)

# Configure tag and jobName if running Playback system
if "dqm_cmssw/playback" in str(sys.argv[1]):
BSOnlineTag = BSOnlineTag + 'Playback'
BSOnlineJobName = BSOnlineJobName + 'Playback'
BSOnlineOmsServiceUrl = ''
useLockRecords = False

# Message logger
#process.load("FWCore.MessageLogger.MessageLogger_cfi")
#process.MessageLogger = cms.Service("MessageLogger",
Expand Down Expand Up @@ -104,6 +97,13 @@
process.dqmSaverPB.tag = 'BeamMonitorHLT'
process.dqmSaverPB.runNumber = options.runNumber

# Configure tag and jobName if running Playback system
if process.isDqmPlayback.value :
BSOnlineTag = BSOnlineTag + 'Playback'
BSOnlineJobName = BSOnlineJobName + 'Playback'
BSOnlineOmsServiceUrl = ''
useLockRecords = False

#-----------------------------
# BeamMonitor
#-----------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,6 @@
from Configuration.Eras.Era_Run3_cff import Run3
process = cms.Process("FakeBeamMonitor", Run3)

# Configure tag and jobName if running Playback system
if "dqm_cmssw/playback" in str(sys.argv[1]):
BSOnlineTag = BSOnlineTag + 'Playback'
BSOnlineJobName = BSOnlineJobName + 'Playback'
BSOnlineOmsServiceUrl = ''
useLockRecords = False

# switch
live = True # FIXME
unitTest = False
Expand Down Expand Up @@ -66,6 +59,13 @@
process.dqmSaverPB.tag = 'FakeBeamMonitorHLT'
process.dqmSaverPB.runNumber = options.runNumber

# Configure tag and jobName if running Playback system
if process.isDqmPlayback.value :
BSOnlineTag = BSOnlineTag + 'Playback'
BSOnlineJobName = BSOnlineJobName + 'Playback'
BSOnlineOmsServiceUrl = ''
useLockRecords = False

#---------------
"""
# Conditions
Expand Down
4 changes: 3 additions & 1 deletion DQM/Integration/python/config/environment_cfi.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ def loadDQMRunConfigFromFile():
dqmRunConfigType = "userarea"
if dqmFileConfig.has_option("host", "type"):
dqmRunConfigType = dqmFileConfig.get("host", "type")

isDqmPlayback = cms.PSet( value = cms.untracked.bool( dqmRunConfigType == "playback" ) )
isDqmProduction = cms.PSet( value = cms.untracked.bool( dqmRunConfigType == "production" ) )

dqmRunConfig = dqmRunConfigDefaults[dqmRunConfigType]

Expand All @@ -52,7 +55,6 @@ def loadDQMRunConfigFromFile():
if dqmFileConfig.has_option("host", "collectorHost"):
dqmRunConfig.collectorHost = dqmFileConfig.get("host", "collectorHost")


# now start the actual configuration
print("dqmRunConfig:", dqmRunConfig)

Expand Down

0 comments on commit c5d5ace

Please sign in to comment.