/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
DQMOffline/Trigger/python/DQMOffline_Trigger_cff.py
287 строк
11 KB
mmusich
make dqmEnvHLT and dqmInfoHLTMon show the last HLT processing GlobalTag
18 июн 2024, 15:31
18 июн 2024, 15:31
ad77ac5
Код
Авторство
О чём код?
import FWCore.ParameterSet.Config as cms # online trigger objects monitoring from DQM.HLTEvF.HLTObjectsMonitor_cfi import * # monitoring of efficiencies of HLT paths and filters from DQMOffline.Trigger.dqmHLTFiltersDQMonitor_cfi import dqmHLTFiltersDQMonitor as _dqmHLTFiltersDQMonitor dqmHLTFiltersDQMonitor = _dqmHLTFiltersDQMonitor.clone( folderName = 'HLT/Filters', efficPlotNamePrefix = 'effic_', triggerResults = 'TriggerResults::HLT', triggerEvent = 'hltTriggerSummaryAOD::HLT', triggerEventWithRefs = 'hltTriggerSummaryRAW::HLT' ) # Lumi from DQMOffline.Trigger.DQMOffline_LumiMonitoring_cff import * # Egamma from DQMOffline.Trigger.EgHLTOfflineSource_cff import * from DQMOffline.Trigger.EgammaMonitoring_cff import * # tag-n-probe (egammaMonitorHLT + egmHLTDQMSourceExtra) # Muon from DQMOffline.Trigger.MuonOffline_Trigger_cff import * # Tau from DQMOffline.Trigger.HLTTauDQMOffline_cff import * # JetMET from DQMOffline.Trigger.JetMETHLTOfflineAnalyzer_cff import * from DQMOffline.Trigger.JetMETPromptMonitor_cff import * # BTV from DQMOffline.Trigger.BTVHLTOfflineSource_cfi import * from DQMOffline.Trigger.BTaggingMonitoring_cff import * #BTag and Probe monitoring from DQMOffline.Trigger.BTagAndProbeMonitor_cfi import * from DQMOffline.Trigger.BTagAndProbeMonitoring_cff import * # ParticleNet jet flavor tagging monitoring from DQMOffline.Trigger.ParticleNetJetTagMonitoring_cff import * # vertexing from DQMOffline.Trigger.PrimaryVertexMonitoring_cff import * # tracking from DQMOffline.Trigger.TrackingMonitoring_cff import * from DQMOffline.Trigger.TrackingMonitoringPA_cff import* from DQMOffline.Trigger.TrackToTrackMonitoring_cff import * # hcal from DQMOffline.Trigger.HCALMonitoring_cff import * # strip from DQMOffline.Trigger.SiStrip_OfflineMonitoring_cff import * # pixel from DQMOffline.Trigger.SiPixel_OfflineMonitoring_cff import * # phase2 tracker from DQMOffline.Trigger.SiTrackerPhase2_OfflineMonitoring_cff import * # B2G from DQMOffline.Trigger.B2GMonitoring_cff import * # BPH from DQMOffline.Trigger.BPHMonitor_cff import * # EXO from DQMOffline.Trigger.ExoticaMonitoring_cff import * # FSQ from DQMOffline.Trigger.FSQHLTOfflineSource_cff import * # HI from DQMOffline.Trigger.HILowLumiHLTOfflineSource_cfi import * # HIG from DQMOffline.Trigger.HiggsMonitoring_cff import * # photon jet from DQMOffline.Trigger.HigPhotonJetHLTOfflineSource_cfi import * # ?!?!?! #Check if perLSsaving is enabled to mask MEs vs LS from Configuration.ProcessModifiers.dqmPerLSsaving_cff import dqmPerLSsaving dqmPerLSsaving.toModify(higPhotonJetHLTOfflineSource, perLSsaving=True) # SMP from DQMOffline.Trigger.StandardModelMonitoring_cff import * # SUS from DQMOffline.Trigger.SusyMonitoring_cff import * # TOP from DQMOffline.Trigger.TopMonitoring_cff import * # Inclusive VBF from DQMOffline.Trigger.HLTInclusiveVBFSource_cfi import * ##hotline #from DQMOffline.Trigger.hotlineDQM_cfi import * # ORPHAN ##eventshape #from DQMOffline.Trigger.eventshapeDQM_cfi import * # OBSOLETE ##UCC #from DQMOffline.Trigger.heavyionUCCDQM_cfi import * # OBSOLETE import DQMServices.Components.DQMEnvironment_cfi dqmEnvHLT = DQMServices.Components.DQMEnvironment_cfi.dqmEnv.clone( subSystemFolder = 'HLT', showHLTGlobalTag = True) from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer dqmInfoHLTMon = DQMEDAnalyzer('DQMEventInfo', subSystemFolder = cms.untracked.string('HLT'), showHLTGlobalTag = cms.untracked.bool(True)) ################################################################################################### #### SEQUENCES TO BE RUN depending on the input DATAFORMAT ## on MiniAOD ## ADD here sequences/modules which rely ONLY on collections stored in the MiniAOD format offlineHLTSourceOnMiniAOD = cms.Sequence( ) ## on AOD (w/o the need of the RECO step on-the-fly) ## ADD here sequences/modules which rely ONLY on collections stored in the AOD format offlineHLTSourceOnAOD = cms.Sequence( dqmEnvHLT * dqmHLTFiltersDQMonitor * lumiMonitorHLTsequence * muonFullOfflineDQM * HLTTauDQMOffline * hltInclusiveVBFSource * higPhotonJetHLTOfflineSource # plots are filled, but I'm not sure who is really looking at them and what you can get from them ... good candidates to be moved in offlineHLTSourceOnAODextra # eventshapeDQMSequence * ## OBSOLETE !!!! (looks for HLT_HIQ2Top005_Centrality1030_v, HLT_HIQ2Bottom005_Centrality1030_v, etc) # HeavyIonUCCDQMSequence * ## OBSOLETE !!!! (looks for HLT_HIUCC100_v and HLT_HIUCC020_v) # hotlineDQMSequence * ## ORPHAN !!!! * egammaMonitorHLT * exoticaMonitorHLT * susyMonitorHLT * b2gMonitorHLT * higgsMonitorHLT * smpMonitorHLT * topMonitorHLT * btagMonitorHLT * bphMonitorHLT * hltObjectsMonitor # as online DQM, requested/suggested by TSG coordinators * jetmetMonitorHLT ) ## w/ the RECO step on-the-fly (to be added to offlineHLTSourceOnAOD which should run anyhow) offlineHLTSourceWithRECO = cms.Sequence( dqmHLTFiltersDQMonitor * egHLTOffDQMSource ## NEEDED in VALIDATION, not really in MONITORING * egHLTOffDQMSource_HEP17 ## NEEDED in VALIDATION, not really in MONITORING * jetMETHLTOfflineAnalyzer * b2gHLTDQMSourceWithRECO ## ak8PFJetsPuppiSoftDrop collection is not available in AOD, actually it is produced by the miniAOD step ) #################################################################################################### # offline DQM to be run on AOD (w/o the need of the RECO step on-the-fly) only in the VALIDATION of the HLT menu based on data # it is needed in order to have the DQM code in the release, w/o the issue of crashing the tier0 # as the new modules in the sequence offlineHLTSourceOnAODextra are tested, # these have to be migrated in the main offlineHLTSourceOnAOD sequence offlineHLTSourceOnAODextra = cms.Sequence( ### POG btvHLTDQMSourceExtra * egmHLTDQMSourceExtra # empty in 10_2_0 * jmeHLTDQMSourceExtra * muoHLTDQMSourceExtra # empty in 10_2_0 * tauHLTDQMSourceExtra # empty in 10_2_0 * trkHLTDQMSourceExtra # empty in 10_2_0 ### PAG * b2gHLTDQMSourceExtra * bphHLTDQMSourceExtra # empty in 10_2_0 * exoHLTDQMSourceExtra * higHLTDQMSourceExtra * smpHLTDQMSourceExtra # empty in 10_2_0 * susHLTDQMSourceExtra * topHLTDQMSourceExtra * fsqHLTDQMSourceExtra # empty in 10_2_0 # * hinHLTDQMSourceExtra ) #################################################################################################### #### SEQUENCES TO BE RUN @Tier0 #### ### Express : not really needed ### HLTMonitor : special collections allow to monitor tracks, strip and pixel clusters, b-tagging discriminator, etc --> OfflineHLTMonitoring ### Physics PDs : monitoring vs offline collection (typically, turnON) ## DQM step on Express offlineHLTSource4ExpressPD = cms.Sequence( ) ## DQM step on HLTMonitor ## ADD here only sequences/modules which rely on HLT collections which are stored in the HLTMonitoring stream ## and are not available in the standard RAW format offlineHLTSource4HLTMonitorPD = cms.Sequence( dqmInfoHLTMon * lumiMonitorHLTsequence * # lumi sistripMonitorHLTsequence * # strip sipixelMonitorHLTsequence * # pixel BTVHLTOfflineSource * # BTV bTagHLTTrackMonitoringSequence * # BTV relative track efficiencies trackingMonitorHLT * # tracking BTagAndProbeHLT * # BTag and Probe trackingMonitorHLTDisplacedJet* # EXO : DisplacedJet Tracking egmTrackingMonitorHLT * # EGM tracking hltToOfflineTrackValidatorSequence * # Relative Online to Offline performace vertexingMonitorHLT * # vertexing particleNetMonitoringHLT # HIG: monitoring of HLT PNET taggers (incl. comparisons to Offline PNET) ) _offlineHLTSource4HLTMonitorPDPh2 = cms.Sequence( dqmInfoHLTMon * HLTtrackerphase2DQMSource * # phase-2 IT and OT clusters trackingMonitorHLT * # tracking egmTrackingMonitorHLT * # EGM tracking hltToOfflineTrackValidatorSequence * # Relative Online to Offline performace vertexingMonitorHLT # vertexing ) # remove Strip HLT monitoring in the phase-2 sequence from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker phase2_tracker.toReplaceWith(offlineHLTSource4HLTMonitorPD,_offlineHLTSource4HLTMonitorPDPh2) # sequences run @tier0 on HLTMonitor PD OfflineHLTMonitoring = cms.Sequence( offlineHLTSource4HLTMonitorPD ) # sequences run @tier0 on HLTMonitor PD w/ HI (PbPb, XeXe), pPb, ppRef OfflineHLTMonitoringPA = cms.Sequence( dqmInfoHLTMon * trackingMonitorHLT * PAtrackingMonitorHLT ) ## DQM step on physics PDs ## transient collections produced by the RECO step are allowed ;) offlineHLTSource4physicsPD = cms.Sequence( offlineHLTSourceOnAOD * offlineHLTSourceWithRECO ) ## DQM step on special physics PDs (HI, FSQ and LowLumi, etc) ## transient collections produced by the RECO step are allowed ;) offlineHLTSource4specialPhysicsPD = cms.Sequence( offlineHLTSourceOnAOD * offlineHLTSourceWithRECO * fsqHLTOfflineSourceSequence * HILowLumiHLTOfflineSourceSequence ) ## DQM step on relval offlineHLTSource4relval = cms.Sequence( offlineHLTSourceOnAOD * offlineHLTSourceWithRECO * offlineHLTSource4HLTMonitorPD ## special collections (tracking, strip, pixel, etc) * fsqHLTOfflineSourceSequence ## FSQ * HILowLumiHLTOfflineSourceSequence ## HI * offlineHLTSourceOnAODextra ## EXTRA ) #################################################################################################### # offline DQM to be run on AOD (w/o the need of the RECO step on-the-fly) in the VALIDATION of the HLT menu based on data # it is needed in order to have the DQM code in the release, w/o the issue of crashing the tier0 # as the new modules in the sequence offlineHLTSourceOnAODextra are tested # these have to be migrated in the main offlineHLTSourceOnAOD sequence offlineValidationHLTSourceOnAOD = cms.Sequence( offlineHLTSourceOnAOD + offlineHLTSourceOnAODextra ) #################################################################################################### ## old sequence, it should be dropped asa we are confident it is no longer used offlineHLTSource = cms.Sequence( offlineHLTSource4physicsPD ) ### sequence run @tier0 (called by main DQM sequences in DQMOffline/Configuration/python/DQMOffline_cff.py) on all PDs, but HLTMonitor one triggerOfflineDQMSource = cms.Sequence( offlineHLTSource ) # this sequence can be used by AlCa for the validation of conditions, # because it is like offlineHLTSource (run @tier0) + offlineHLTSourceOnAODextra (meant to validate new features) offlineValidationHLTSource = cms.Sequence( offlineHLTSource + offlineHLTSourceOnAODextra )