Skip to content

Commit

Permalink
Include check on tracker HV in BeamSpot DQM clients
Browse files Browse the repository at this point in the history
  • Loading branch information
francescobrivio committed Sep 8, 2022
1 parent 6d3287a commit 55dd8ee
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 4 deletions.
23 changes: 23 additions & 0 deletions DQM/Integration/python/clients/beam_dqm_sourceclient-live_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,12 +429,32 @@
frontierKey = cms.untracked.string(options.runUniqueKey)
)
print("Configured frontierKey", options.runUniqueKey)

#--------
# Do no run on events with pixel or strip with HV off

process.stripTrackerHVOn = cms.EDFilter( "DetectorStateFilter",
DCSRecordLabel = cms.untracked.InputTag( "onlineMetaDataDigis" ),
DcsStatusLabel = cms.untracked.InputTag( "scalersRawToDigi" ),
DebugOn = cms.untracked.bool( False ),
DetectorType = cms.untracked.string( "sistrip" )
)

process.pixelTrackerHVOn = cms.EDFilter( "DetectorStateFilter",
DCSRecordLabel = cms.untracked.InputTag( "onlineMetaDataDigis" ),
DcsStatusLabel = cms.untracked.InputTag( "scalersRawToDigi" ),
DebugOn = cms.untracked.bool( False ),
DetectorType = cms.untracked.string( "pixel" )
)

#---------
# Final path
if (not process.runType.getRunType() == process.runType.hi_run):
process.p = cms.Path(process.scalersRawToDigi
* process.tcdsDigis
* process.onlineMetaDataDigis
* process.pixelTrackerHVOn
* process.stripTrackerHVOn
* process.dqmTKStatus
* process.hltTriggerTypeFilter
* process.dqmcommon
Expand All @@ -445,6 +465,8 @@
process.p = cms.Path(process.scalersRawToDigi
* process.tcdsDigis
* process.onlineMetaDataDigis
* process.pixelTrackerHVOn
* process.stripTrackerHVOn
* process.dqmTKStatus
* process.hltTriggerTypeFilter
* process.filter_step # the only extra: pix-multi filter
Expand All @@ -453,5 +475,6 @@
* process.monitor
* process.BeamSpotProblemModule)

print("Global Tag used:", process.GlobalTag.globaltag.value())
print("Final Source settings:", process.source)

Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,20 @@
from EventFilter.OnlineMetaDataRawToDigi.tcdsRawToDigi_cfi import *
process.tcdsDigis = tcdsRawToDigi.clone()

#------------------------
# Set rawDataRepacker (HI and live) or rawDataCollector (for all the rest)
# Import raw to digi modules
process.load("Configuration.StandardSequences.RawToDigi_Data_cff")

# Set rawDataRepacker (HI and live) or hltFEDSelectorTCDS+hltFEDSelectorOnlineMetaData (for all the rest)
if (process.runType.getRunType() == process.runType.hi_run and live):
rawDataInputTag = "rawDataRepacker"
else:
# Use raw data from selected TCDS FEDs (1024, 1025)
# Use raw data from selected TCDS FEDs (1024, 1025) and OnlineMetaData FED (1022)
rawDataInputTag = "hltFEDSelectorTCDS"
onlineMetaDataInputTag = "hltFEDSelectorOnlineMetaData"

process.tcdsDigis.InputLabel = rawDataInputTag
process.onlineMetaDataDigis.onlineMetaDataInputLabel = onlineMetaDataInputTag
process.scalersRawToDigi.scalersInputTag = rawDataInputTag
process.tcdsDigis.InputLabel = rawDataInputTag

#-----------------------------------------------------------
# Swap offline <-> online BeamSpot as in Express and HLT
Expand All @@ -141,6 +146,23 @@
import RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi
process.offlineBeamSpot = RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi.onlineBeamSpotProducer.clone()

#--------
# Do no run on events with pixel or strip with HV off

process.stripTrackerHVOn = cms.EDFilter( "DetectorStateFilter",
DCSRecordLabel = cms.untracked.InputTag( "onlineMetaDataDigis" ),
DcsStatusLabel = cms.untracked.InputTag( "scalersRawToDigi" ),
DebugOn = cms.untracked.bool( False ),
DetectorType = cms.untracked.string( "sistrip" )
)

process.pixelTrackerHVOn = cms.EDFilter( "DetectorStateFilter",
DCSRecordLabel = cms.untracked.InputTag( "onlineMetaDataDigis" ),
DcsStatusLabel = cms.untracked.InputTag( "scalersRawToDigi" ),
DebugOn = cms.untracked.bool( False ),
DetectorType = cms.untracked.string( "pixel" )
)

#--------------------------
# Proton-Proton Stuff
#--------------------------
Expand Down Expand Up @@ -243,9 +265,14 @@

process.p = cms.Path( process.hltTriggerTypeFilter
* process.tcdsDigis
* process.scalersRawToDigi
* process.onlineMetaDataDigis
* process.pixelTrackerHVOn
* process.stripTrackerHVOn
* process.dqmcommon
* process.offlineBeamSpot
* process.monitor )

print("Global Tag used:", process.GlobalTag.globaltag.value())
print("Final Source settings:", process.source)

0 comments on commit 55dd8ee

Please sign in to comment.