Skip to content

Commit

Permalink
update HLT selection for HI mode in sistrip and l1tstage2 online-DQM …
Browse files Browse the repository at this point in the history
…clients
  • Loading branch information
missirol committed Sep 18, 2023
1 parent d403355 commit 2410661
Show file tree
Hide file tree
Showing 3 changed files with 141 additions and 126 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
# Customize for other type of runs

# Cosmic run
if (process.runType.getRunType() == process.runType.cosmic_run):
if process.runType.getRunType() == process.runType.cosmic_run:
# Remove Quality Tests for L1T Muon Subsystems since they are not optimized yet for cosmics
process.l1tStage2MonitorClient.remove(process.l1TStage2uGMTQualityTests)
process.l1tStage2MonitorClient.remove(process.l1TStage2EMTFQualityTests)
Expand All @@ -124,45 +124,47 @@
process.l1tStage2EventInfoClient.DisableL1Systems = ["EMTF", "OMTF", "BMTF", "uGMT"]

# Heavy-Ion run
if (process.runType.getRunType() == process.runType.hi_run):
process.onlineMetaDataDigis.onlineMetaDataInputLabel = "rawDataRepacker"
process.onlineMetaDataRawToDigi.onlineMetaDataInputLabel = "rawDataRepacker"
process.castorDigis.InputLabel = "rawDataRepacker"
process.ctppsDiamondRawToDigi.rawDataTag = "rawDataRepacker"
process.ctppsPixelDigis.inputLabel = "rawDataRepacker"
process.ecalDigis.cpu.InputLabel = "rawDataRepacker"
process.ecalPreshowerDigis.sourceTag = "rawDataRepacker"
process.hcalDigis.InputLabel = "rawDataRepacker"
process.muonCSCDigis.InputObjects = "rawDataRepacker"
process.muonDTDigis.inputLabel = "rawDataRepacker"
process.muonRPCDigis.InputLabel = "rawDataRepacker"
process.muonGEMDigis.InputLabel = "rawDataRepacker"
process.scalersRawToDigi.scalersInputTag = "rawDataRepacker"
process.siPixelDigis.cpu.InputLabel = "rawDataRepacker"
process.siStripDigis.ProductLabel = "rawDataRepacker"
process.tcdsDigis.InputLabel = "rawDataRepacker"
process.tcdsRawToDigi.InputLabel = "rawDataRepacker"
process.totemRPRawToDigi.rawDataTag = "rawDataRepacker"
process.totemTimingRawToDigi.rawDataTag = "rawDataRepacker"
process.csctfDigis.producer = "rawDataRepacker"
process.dttfDigis.DTTF_FED_Source = "rawDataRepacker"
process.gctDigis.inputLabel = "rawDataRepacker"
process.gtDigis.DaqGtInputTag = "rawDataRepacker"
process.twinMuxStage2Digis.DTTM7_FED_Source = "rawDataRepacker"
process.bmtfDigis.InputLabel = "rawDataRepacker"
process.omtfStage2Digis.inputLabel = "rawDataRepacker"
process.emtfStage2Digis.InputLabel = "rawDataRepacker"
process.gmtStage2Digis.InputLabel = "rawDataRepacker"
process.caloLayer1Digis.InputLabel = "rawDataRepacker"
process.caloStage1Digis.InputLabel = "rawDataRepacker"
process.caloStage2Digis.InputLabel = "rawDataRepacker"
process.gtStage2Digis.InputLabel = "rawDataRepacker"
process.l1tStage2CaloLayer1.fedRawDataLabel = "rawDataRepacker"
process.l1tStage2BmtfZeroSupp.rawData = "rawDataRepacker"
process.l1tStage2BmtfZeroSuppFatEvts.rawData = "rawDataRepacker"
process.selfFatEventFilter.rawInput = "rawDataRepacker"
process.rpcTwinMuxRawToDigi.inputTag = "rawDataRepacker"
process.rpcCPPFRawToDigi.inputTag = "rawDataRepacker"
if process.runType.getRunType() == process.runType.hi_run:
process.hltFatEventFilter.HLTPaths.append('HLT_HIPhysics_v*')
rawDataRepackerLabel = 'rawDataRepacker'
process.onlineMetaDataDigis.onlineMetaDataInputLabel = rawDataRepackerLabel
process.onlineMetaDataRawToDigi.onlineMetaDataInputLabel = rawDataRepackerLabel
process.castorDigis.InputLabel = rawDataRepackerLabel
process.ctppsDiamondRawToDigi.rawDataTag = rawDataRepackerLabel
process.ctppsPixelDigis.inputLabel = rawDataRepackerLabel
process.ecalDigis.cpu.InputLabel = rawDataRepackerLabel
process.ecalPreshowerDigis.sourceTag = rawDataRepackerLabel
process.hcalDigis.InputLabel = rawDataRepackerLabel
process.muonCSCDigis.InputObjects = rawDataRepackerLabel
process.muonDTDigis.inputLabel = rawDataRepackerLabel
process.muonRPCDigis.InputLabel = rawDataRepackerLabel
process.muonGEMDigis.InputLabel = rawDataRepackerLabel
process.scalersRawToDigi.scalersInputTag = rawDataRepackerLabel
process.siPixelDigis.cpu.InputLabel = rawDataRepackerLabel
process.siStripDigis.ProductLabel = rawDataRepackerLabel
process.tcdsDigis.InputLabel = rawDataRepackerLabel
process.tcdsRawToDigi.InputLabel = rawDataRepackerLabel
process.totemRPRawToDigi.rawDataTag = rawDataRepackerLabel
process.totemTimingRawToDigi.rawDataTag = rawDataRepackerLabel
process.csctfDigis.producer = rawDataRepackerLabel
process.dttfDigis.DTTF_FED_Source = rawDataRepackerLabel
process.gctDigis.inputLabel = rawDataRepackerLabel
process.gtDigis.DaqGtInputTag = rawDataRepackerLabel
process.twinMuxStage2Digis.DTTM7_FED_Source = rawDataRepackerLabel
process.bmtfDigis.InputLabel = rawDataRepackerLabel
process.omtfStage2Digis.inputLabel = rawDataRepackerLabel
process.emtfStage2Digis.InputLabel = rawDataRepackerLabel
process.gmtStage2Digis.InputLabel = rawDataRepackerLabel
process.caloLayer1Digis.InputLabel = rawDataRepackerLabel
process.caloStage1Digis.InputLabel = rawDataRepackerLabel
process.caloStage2Digis.InputLabel = rawDataRepackerLabel
process.gtStage2Digis.InputLabel = rawDataRepackerLabel
process.l1tStage2CaloLayer1.fedRawDataLabel = rawDataRepackerLabel
process.l1tStage2BmtfZeroSupp.rawData = rawDataRepackerLabel
process.l1tStage2BmtfZeroSuppFatEvts.rawData = rawDataRepackerLabel
process.selfFatEventFilter.rawInput = rawDataRepackerLabel
process.rpcTwinMuxRawToDigi.inputTag = rawDataRepackerLabel
process.rpcCPPFRawToDigi.inputTag = rawDataRepackerLabel

#--------------------------------------------------
# L1T Online DQM Schedule
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,49 +119,51 @@
# Customize for other type of runs

# Cosmic run
#if (process.runType.getRunType() == process.runType.cosmic_run):
if process.runType.getRunType() == process.runType.cosmic_run:
pass

# Heavy-Ion run
if (process.runType.getRunType() == process.runType.hi_run):
process.onlineMetaDataDigis.onlineMetaDataInputLabel = "rawDataRepacker"
process.onlineMetaDataRawToDigi.onlineMetaDataInputLabel = "rawDataRepacker"
process.castorDigis.InputLabel = "rawDataRepacker"
process.ctppsDiamondRawToDigi.rawDataTag = "rawDataRepacker"
process.ctppsPixelDigis.inputLabel = "rawDataRepacker"
process.ecalDigis.cpu.InputLabel = "rawDataRepacker"
process.ecalPreshowerDigis.sourceTag = "rawDataRepacker"
process.hcalDigis.InputLabel = "rawDataRepacker"
process.muonCSCDigis.InputObjects = "rawDataRepacker"
process.muonDTDigis.inputLabel = "rawDataRepacker"
process.muonRPCDigis.InputLabel = "rawDataRepacker"
process.muonGEMDigis.InputLabel = "rawDataRepacker"
process.scalersRawToDigi.scalersInputTag = "rawDataRepacker"
process.siPixelDigis.cpu.InputLabel = "rawDataRepacker"
process.siStripDigis.ProductLabel = "rawDataRepacker"
process.tcdsDigis.InputLabel = "rawDataRepacker"
process.tcdsRawToDigi.InputLabel = "rawDataRepacker"
process.totemRPRawToDigi.rawDataTag = "rawDataRepacker"
process.totemTimingRawToDigi.rawDataTag = "rawDataRepacker"
process.csctfDigis.producer = "rawDataRepacker"
process.dttfDigis.DTTF_FED_Source = "rawDataRepacker"
process.gctDigis.inputLabel = "rawDataRepacker"
process.gtDigis.DaqGtInputTag = "rawDataRepacker"
process.twinMuxStage2Digis.DTTM7_FED_Source = "rawDataRepacker"
process.bmtfDigis.InputLabel = "rawDataRepacker"
process.valBmtfAlgoSel.feds = "rawDataRepacker"
process.omtfStage2Digis.inputLabel = "rawDataRepacker"
process.emtfStage2Digis.InputLabel = "rawDataRepacker"
process.gmtStage2Digis.InputLabel = "rawDataRepacker"
process.caloLayer1Digis.InputLabel = "rawDataRepacker"
process.caloStage1Digis.InputLabel = "rawDataRepacker"
process.caloStage2Digis.InputLabel = "rawDataRepacker"
process.simHcalTriggerPrimitiveDigis.InputTagFEDRaw = "rawDataRepacker"
process.l1tdeStage2CaloLayer1.fedRawDataLabel = "rawDataRepacker"
process.gtStage2Digis.InputLabel = "rawDataRepacker"
process.selfFatEventFilter.rawInput = "rawDataRepacker"
process.rpcTwinMuxRawToDigi.inputTag = "rawDataRepacker"
process.rpcCPPFRawToDigi.inputTag = "rawDataRepacker"
if process.runType.getRunType() == process.runType.hi_run:
process.hltFatEventFilter.HLTPaths.append('HLT_HIPhysics_v*')
rawDataRepackerLabel = 'rawDataRepacker'
process.onlineMetaDataDigis.onlineMetaDataInputLabel = rawDataRepackerLabel
process.onlineMetaDataRawToDigi.onlineMetaDataInputLabel = rawDataRepackerLabel
process.castorDigis.InputLabel = rawDataRepackerLabel
process.ctppsDiamondRawToDigi.rawDataTag = rawDataRepackerLabel
process.ctppsPixelDigis.inputLabel = rawDataRepackerLabel
process.ecalDigis.cpu.InputLabel = rawDataRepackerLabel
process.ecalPreshowerDigis.sourceTag = rawDataRepackerLabel
process.hcalDigis.InputLabel = rawDataRepackerLabel
process.muonCSCDigis.InputObjects = rawDataRepackerLabel
process.muonDTDigis.inputLabel = rawDataRepackerLabel
process.muonRPCDigis.InputLabel = rawDataRepackerLabel
process.muonGEMDigis.InputLabel = rawDataRepackerLabel
process.scalersRawToDigi.scalersInputTag = rawDataRepackerLabel
process.siPixelDigis.cpu.InputLabel = rawDataRepackerLabel
process.siStripDigis.ProductLabel = rawDataRepackerLabel
process.tcdsDigis.InputLabel = rawDataRepackerLabel
process.tcdsRawToDigi.InputLabel = rawDataRepackerLabel
process.totemRPRawToDigi.rawDataTag = rawDataRepackerLabel
process.totemTimingRawToDigi.rawDataTag = rawDataRepackerLabel
process.csctfDigis.producer = rawDataRepackerLabel
process.dttfDigis.DTTF_FED_Source = rawDataRepackerLabel
process.gctDigis.inputLabel = rawDataRepackerLabel
process.gtDigis.DaqGtInputTag = rawDataRepackerLabel
process.twinMuxStage2Digis.DTTM7_FED_Source = rawDataRepackerLabel
process.bmtfDigis.InputLabel = rawDataRepackerLabel
process.valBmtfAlgoSel.feds = rawDataRepackerLabel
process.omtfStage2Digis.inputLabel = rawDataRepackerLabel
process.emtfStage2Digis.InputLabel = rawDataRepackerLabel
process.gmtStage2Digis.InputLabel = rawDataRepackerLabel
process.caloLayer1Digis.InputLabel = rawDataRepackerLabel
process.caloStage1Digis.InputLabel = rawDataRepackerLabel
process.caloStage2Digis.InputLabel = rawDataRepackerLabel
process.simHcalTriggerPrimitiveDigis.InputTagFEDRaw = rawDataRepackerLabel
process.l1tdeStage2CaloLayer1.fedRawDataLabel = rawDataRepackerLabel
process.gtStage2Digis.InputLabel = rawDataRepackerLabel
process.selfFatEventFilter.rawInput = rawDataRepackerLabel
process.rpcTwinMuxRawToDigi.inputTag = rawDataRepackerLabel
process.rpcCPPFRawToDigi.inputTag = rawDataRepackerLabel

#--------------------------------------------------
# L1T Emulator Online DQM Schedule
Expand Down
103 changes: 57 additions & 46 deletions DQM/Integration/python/clients/sistrip_dqm_sourceclient-live_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,48 +532,53 @@
#--------------------------------------------------

print("Running with run type = ", process.runType.getRunType())

### HEAVY ION SETTING
if (process.runType.getRunType() == process.runType.hi_run):
process.castorDigis.InputLabel = "rawDataRepacker"
process.csctfDigis.producer = "rawDataRepacker"
process.dttfDigis.DTTF_FED_Source = "rawDataRepacker"
process.ecalDigis.cpu.InputLabel = "rawDataRepacker"
process.ecalPreshowerDigis.sourceTag = "rawDataRepacker"
process.gctDigis.inputLabel = "rawDataRepacker"
process.hcalDigis.InputLabel = "rawDataRepacker"
process.muonCSCDigis.InputObjects = "rawDataRepacker"
process.muonDTDigis.inputLabel = "rawDataRepacker"
process.muonRPCDigis.InputLabel = "rawDataRepacker"
process.scalersRawToDigi.scalersInputTag = "rawDataRepacker"
process.siPixelDigis.cpu.InputLabel = "rawDataRepacker"
process.siStripDigis.ProductLabel = "rawDataRepacker"
process.siStripFEDMonitor.RawDataTag = "rawDataRepacker"
if process.runType.getRunType() == process.runType.hi_run:
rawDataRepackerLabel = 'rawDataRepacker'
process.castorDigis.InputLabel = rawDataRepackerLabel
process.csctfDigis.producer = rawDataRepackerLabel
process.dttfDigis.DTTF_FED_Source = rawDataRepackerLabel
process.ecalDigis.cpu.InputLabel = rawDataRepackerLabel
process.ecalPreshowerDigis.sourceTag = rawDataRepackerLabel
process.gctDigis.inputLabel = rawDataRepackerLabel
process.hcalDigis.InputLabel = rawDataRepackerLabel
process.muonCSCDigis.InputObjects = rawDataRepackerLabel
process.muonDTDigis.inputLabel = rawDataRepackerLabel
process.muonRPCDigis.InputLabel = rawDataRepackerLabel
process.scalersRawToDigi.scalersInputTag = rawDataRepackerLabel
process.siPixelDigis.cpu.InputLabel = rawDataRepackerLabel
process.siStripDigis.ProductLabel = rawDataRepackerLabel
process.siStripFEDMonitor.RawDataTag = rawDataRepackerLabel

if ((process.runType.getRunType() == process.runType.hi_run) and live):
process.source.SelectEvents = [
'HLT_HICentralityVeto*',
# 'HLT_HIMinimumBias*',
# 'HLT_HIZeroBias*'
'HLT_HIMinimumBias*',
# 'HLT_HIZeroBias*',
'HLT_HIPhysics*'
]
]

process.SiStripMonitorDigi.UseDCSFiltering = False
process.SiStripMonitorClusterReal.UseDCSFiltering = False

process.MonitorTrackResiduals_gentk.Tracks = 'initialStepTracksPreSplitting'
process.MonitorTrackResiduals_gentk.trajectoryInput = 'initialStepTracksPreSplitting'
process.TrackMon_gentk.TrackProducer = 'initialStepTracksPreSplitting'
process.TrackMon_gentk.allTrackProducer = 'initialStepTracksPreSplitting'
process.SiStripMonitorTrack_gentk.TrackProducer = 'initialStepTracksPreSplitting'
process.MonitorTrackResiduals_gentk.Tracks = 'initialStepTracksPreSplitting'
process.MonitorTrackResiduals_gentk.trajectoryInput = 'initialStepTracksPreSplitting'
process.TrackMon_gentk.TrackProducer = 'initialStepTracksPreSplitting'
process.TrackMon_gentk.allTrackProducer = 'initialStepTracksPreSplitting'
process.SiStripMonitorTrack_gentk.TrackProducer = 'initialStepTracksPreSplitting'

process.SiStripSources_TrkReco = cms.Sequence(process.SiStripMonitorTrack_gentk*process.MonitorTrackResiduals_gentk*process.TrackMon_gentk)
process.SiStripSources_TrkReco = cms.Sequence(
process.SiStripMonitorTrack_gentk
* process.MonitorTrackResiduals_gentk
* process.TrackMon_gentk
)

### STRIP
process.load("DQM.SiStripMonitorClient.SiStripClientConfigP5_cff")
process.SiStripAnalyser.TkMapCreationFrequency = -1
process.SiStripAnalyser.ShiftReportFrequency = -1
process.SiStripAnalyser.StaticUpdateFrequency = 5
process.SiStripAnalyser.RawDataTag = "rawDataRepacker"
process.SiStripAnalyser.RawDataTag = rawDataRepackerLabel
process.SiStripAnalyser.MonitorSiStrip_PSet.MonitorSiStripBackPlaneCorrection = False
process.SiStripClients = cms.Sequence(process.SiStripAnalyser)

Expand All @@ -582,8 +587,8 @@
process.load("DQM.TrackingMonitorClient.TrackingClientConfigP5_cff")
process.TrackingAnalyser.ShiftReportFrequency = -1
process.TrackingAnalyser.StaticUpdateFrequency = 5
process.TrackingAnalyser.RawDataTag = "rawDataRepacker"
if offlineTesting :
process.TrackingAnalyser.RawDataTag = rawDataRepackerLabel
if offlineTesting:
process.TrackingAnalyser.verbose = True
process.TrackingClient = cms.Sequence( process.TrackingAnalyser )

Expand All @@ -599,17 +604,17 @@
process.trackingQTester.qtestOnEndLumi = True
process.trackingQTester.qtestOnEndRun = True

# Reco for pp collisions
# Reco for HI collisions

process.load('RecoTracker.IterativeTracking.InitialStepPreSplitting_cff')
'''process.InitialStepPreSplitting.remove(process.initialStepTrackRefsForJetsPreSplitting)
process.InitialStepPreSplitting.remove(process.caloTowerForTrkPreSplitting)
process.InitialStepPreSplitting.remove(process.ak4CaloJetsForTrkPreSplitting)
process.InitialStepPreSplitting.remove(process.jetsForCoreTrackingPreSplitting)
process.InitialStepPreSplitting.remove(process.siPixelClusters)
process.InitialStepPreSplitting.remove(process.siPixelRecHits)
process.InitialStepPreSplitting.remove(process.MeasurementTrackerEvent)
process.InitialStepPreSplitting.remove(process.siPixelClusterShapeCache)'''
# process.InitialStepPreSplitting.remove(process.initialStepTrackRefsForJetsPreSplitting)
# process.InitialStepPreSplitting.remove(process.caloTowerForTrkPreSplitting)
# process.InitialStepPreSplitting.remove(process.ak4CaloJetsForTrkPreSplitting)
# process.InitialStepPreSplitting.remove(process.jetsForCoreTrackingPreSplitting)
# process.InitialStepPreSplitting.remove(process.siPixelClusters)
# process.InitialStepPreSplitting.remove(process.siPixelRecHits)
# process.InitialStepPreSplitting.remove(process.MeasurementTrackerEvent)
# process.InitialStepPreSplitting.remove(process.siPixelClusterShapeCache)

process.InitialStepPreSplittingTask.remove(process.initialStepTrackRefsForJetsPreSplitting)
process.InitialStepPreSplittingTask.remove(process.caloTowerForTrkPreSplitting)
Expand All @@ -625,25 +630,29 @@
# Select events based on the pixel cluster multiplicity
import HLTrigger.special.hltPixelActivityFilter_cfi
process.multFilter = HLTrigger.special.hltPixelActivityFilter_cfi.hltPixelActivityFilter.clone(
inputTag = 'siPixelClusters',
inputTag = 'siPixelClusters',
minClusters = 1,
maxClusters = 50000
)
)

# BaselineValidator Module
from EventFilter.SiStripRawToDigi.SiStripDigis_cfi import siStripDigis as _siStripDigis
process.siStripDigisNoZS=_siStripDigis.clone(
ProductLabel = "rawDataCollector")
process.SiStripBaselineValidator.srcProcessedRawDigi = 'siStripDigisNoZS:ZeroSuppressed'

process.siStripDigisNoZS = _siStripDigis.clone( ProductLabel = 'rawDataCollector' )
process.SiStripBaselineValidator.srcProcessedRawDigi = 'siStripDigisNoZS:ZeroSuppressed'

from RecoTracker.TkSeedingLayers.PixelLayerTriplets_cfi import *
process.PixelLayerTriplets.BPix.HitProducer = 'siPixelRecHitsPreSplitting'
process.PixelLayerTriplets.FPix.HitProducer = 'siPixelRecHitsPreSplitting'
from RecoTracker.PixelTrackFitting.PixelTracks_cff import *
process.pixelTracksHitTriplets.SeedComparitorPSet.clusterShapeCacheSrc = 'siPixelClusterShapeCachePreSplitting'

process.RecoForDQM_TrkReco = cms.Sequence(process.offlineBeamSpot*process.MeasurementTrackerEventPreSplitting*process.siPixelClusterShapeCachePreSplitting*process.recopixelvertexing*process.InitialStepPreSplitting)
process.RecoForDQM_TrkReco = cms.Sequence(
process.offlineBeamSpot
* process.MeasurementTrackerEventPreSplitting
* process.siPixelClusterShapeCachePreSplitting
* process.recopixelvertexing
* process.InitialStepPreSplitting
)

process.p = cms.Path(
process.scalersRawToDigi*
Expand All @@ -670,8 +679,10 @@

# append the approximate clusters monitoring for the HI run case
from DQM.SiStripMonitorApproximateCluster.SiStripMonitorApproximateCluster_cfi import SiStripMonitorApproximateCluster
process.siStripApproximateClusterComparator = SiStripMonitorApproximateCluster.clone(compareClusters = True,
ClustersProducer = "hltSiStripClusterizerForRawPrime")
process.siStripApproximateClusterComparator = SiStripMonitorApproximateCluster.clone(
compareClusters = True,
ClustersProducer = "hltSiStripClusterizerForRawPrime"
)
process.p.insert(process.p.index(process.TrackingClient)+1,process.siStripApproximateClusterComparator)

### process customizations included here
Expand Down

0 comments on commit 2410661

Please sign in to comment.