Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-08-16 22:25:44

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 # online trigger objects monitoring
0004 from DQM.HLTEvF.HLTObjectsMonitor_cfi import *
0005 
0006 # monitoring of efficiencies of HLT paths and filters
0007 from DQMOffline.Trigger.hltFiltersDQMonitor_cfi import *
0008 hltFiltersDQM = hltFiltersDQMonitor.clone(
0009   folderName = 'HLT/Filters',
0010   efficPlotNamePrefix = 'effic_',
0011   triggerResults = 'TriggerResults::HLT',
0012   triggerSummaryAOD = 'hltTriggerSummaryAOD::HLT',
0013   triggerSummaryRAW = 'hltTriggerSummaryRAW::HLT',
0014 )
0015 
0016 # Lumi
0017 from DQMOffline.Trigger.DQMOffline_LumiMontiroring_cff import *
0018 
0019 # Egamma
0020 from DQMOffline.Trigger.EgHLTOfflineSource_cff import *
0021 from DQMOffline.Trigger.EgammaMonitoring_cff import * # tag-n-probe (egammaMonitorHLT + egmHLTDQMSourceExtra)
0022 
0023 # Muon
0024 from DQMOffline.Trigger.MuonOffline_Trigger_cff import *
0025 
0026 # Tau
0027 from DQMOffline.Trigger.HLTTauDQMOffline_cff import *
0028 
0029 # JetMET
0030 from DQMOffline.Trigger.JetMETHLTOfflineAnalyzer_cff import *
0031 from DQMOffline.Trigger.JetMETPromptMonitor_cff import *
0032 
0033 # BTV
0034 from DQMOffline.Trigger.BTVHLTOfflineSource_cfi import *
0035 from DQMOffline.Trigger.BTaggingMonitoring_cff import *
0036 
0037 #BTag and Probe monitoring
0038 from DQMOffline.Trigger.BTagAndProbeMonitor_cfi import *
0039 from DQMOffline.Trigger.BTagAndProbeMonitoring_cff import *
0040 
0041 # ParticleNet jet flavor tagging monitoring
0042 from DQMOffline.Trigger.ParticleNetJetTagMonitoring_cff import *
0043 
0044 # vertexing
0045 from DQMOffline.Trigger.PrimaryVertexMonitoring_cff import *
0046 
0047 # tracking
0048 from DQMOffline.Trigger.TrackingMonitoring_cff import *
0049 from DQMOffline.Trigger.TrackingMonitoringPA_cff import*
0050 from DQMOffline.Trigger.TrackToTrackMonitoring_cff import *
0051 
0052 
0053 # hcal
0054 from DQMOffline.Trigger.HCALMonitoring_cff import *
0055 
0056 # strip
0057 from DQMOffline.Trigger.SiStrip_OfflineMonitoring_cff import *
0058 
0059 # pixel
0060 from DQMOffline.Trigger.SiPixel_OfflineMonitoring_cff import *
0061 
0062 # B2G
0063 from DQMOffline.Trigger.B2GMonitoring_cff import *
0064 
0065 # BPH
0066 from DQMOffline.Trigger.BPHMonitor_cff import *
0067 
0068 # EXO
0069 from DQMOffline.Trigger.ExoticaMonitoring_cff import *
0070 
0071 # FSQ
0072 from DQMOffline.Trigger.FSQHLTOfflineSource_cff import *
0073 
0074 # HI
0075 from DQMOffline.Trigger.HILowLumiHLTOfflineSource_cfi import *
0076 
0077 # HIG
0078 from DQMOffline.Trigger.HiggsMonitoring_cff import *
0079 # photon jet
0080 from DQMOffline.Trigger.HigPhotonJetHLTOfflineSource_cfi import * # ?!?!?!
0081 #Check if perLSsaving is enabled to mask MEs vs LS
0082 from Configuration.ProcessModifiers.dqmPerLSsaving_cff import dqmPerLSsaving
0083 dqmPerLSsaving.toModify(higPhotonJetHLTOfflineSource, perLSsaving=True)
0084 # SMP
0085 from DQMOffline.Trigger.StandardModelMonitoring_cff import *
0086 
0087 # SUS
0088 from DQMOffline.Trigger.SusyMonitoring_cff import *
0089 
0090 # TOP
0091 from DQMOffline.Trigger.TopMonitoring_cff import *
0092 
0093 # Inclusive VBF
0094 from DQMOffline.Trigger.HLTInclusiveVBFSource_cfi import *
0095 
0096 ##hotline 
0097 #from DQMOffline.Trigger.hotlineDQM_cfi import * # ORPHAN
0098 
0099 ##eventshape
0100 #from DQMOffline.Trigger.eventshapeDQM_cfi import * # OBSOLETE
0101 
0102 ##UCC
0103 #from DQMOffline.Trigger.heavyionUCCDQM_cfi import * # OBSOLETE
0104 
0105 import DQMServices.Components.DQMEnvironment_cfi
0106 dqmEnvHLT = DQMServices.Components.DQMEnvironment_cfi.dqmEnv.clone(
0107     subSystemFolder = 'HLT'
0108 )
0109 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
0110 dqmInfoHLTMon = DQMEDAnalyzer('DQMEventInfo',
0111     subSystemFolder = cms.untracked.string('HLT')
0112 )
0113 ###################################################################################################
0114 #### SEQUENCES TO BE RUN depending on the input DATAFORMAT
0115 ## on MiniAOD
0116 ## ADD here sequences/modules which rely ONLY on collections stored in the MiniAOD format
0117 offlineHLTSourceOnMiniAOD = cms.Sequence(
0118 )
0119 
0120 ## on AOD (w/o the need of the RECO step on-the-fly)
0121 ## ADD here sequences/modules which rely ONLY on collections stored in the AOD format
0122 offlineHLTSourceOnAOD = cms.Sequence(
0123       dqmEnvHLT
0124     * hltFiltersDQM
0125     * lumiMonitorHLTsequence
0126     * muonFullOfflineDQM
0127     * HLTTauDQMOffline
0128     * hltInclusiveVBFSource
0129     * 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
0130 #    eventshapeDQMSequence * ## OBSOLETE !!!! (looks for HLT_HIQ2Top005_Centrality1030_v, HLT_HIQ2Bottom005_Centrality1030_v, etc)
0131 #    HeavyIonUCCDQMSequence * ## OBSOLETE !!!! (looks for HLT_HIUCC100_v and HLT_HIUCC020_v)
0132 #    hotlineDQMSequence * ## ORPHAN !!!!
0133     * egammaMonitorHLT 
0134     * exoticaMonitorHLT
0135     * susyMonitorHLT
0136     * b2gMonitorHLT
0137     * higgsMonitorHLT
0138     * smpMonitorHLT
0139     * topMonitorHLT
0140     * btagMonitorHLT 
0141     * bphMonitorHLT
0142     * hltObjectsMonitor # as online DQM, requested/suggested by TSG coordinators
0143     * jetmetMonitorHLT
0144 )
0145 
0146 ## w/ the RECO step on-the-fly (to be added to offlineHLTSourceOnAOD which should run anyhow)
0147 offlineHLTSourceWithRECO = cms.Sequence(
0148       hltFiltersDQM
0149     * egHLTOffDQMSource       ## NEEDED in VALIDATION, not really in MONITORING
0150     * egHLTOffDQMSource_HEP17 ## NEEDED in VALIDATION, not really in MONITORING
0151     * jetMETHLTOfflineAnalyzer
0152     * b2gHLTDQMSourceWithRECO ## ak8PFJetsPuppiSoftDrop collection is not available in AOD, actually it is produced by the miniAOD step
0153 )
0154 ####################################################################################################
0155 # 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
0156 # it is needed in order to have the DQM code in the release, w/o the issue of crashing the tier0
0157 # as the new modules in the sequence offlineHLTSourceOnAODextra are tested,
0158 # these have to be migrated in the main offlineHLTSourceOnAOD sequence
0159 offlineHLTSourceOnAODextra = cms.Sequence(
0160 ### POG
0161       btvHLTDQMSourceExtra
0162     * egmHLTDQMSourceExtra # empty in 10_2_0
0163     * jmeHLTDQMSourceExtra 
0164     * muoHLTDQMSourceExtra # empty in 10_2_0
0165     * tauHLTDQMSourceExtra # empty in 10_2_0
0166     * trkHLTDQMSourceExtra # empty in 10_2_0
0167 ### PAG
0168     * b2gHLTDQMSourceExtra
0169     * bphHLTDQMSourceExtra # empty in 10_2_0
0170     * exoHLTDQMSourceExtra
0171     * higHLTDQMSourceExtra
0172     * smpHLTDQMSourceExtra # empty in 10_2_0
0173     * susHLTDQMSourceExtra
0174     * topHLTDQMSourceExtra
0175     * fsqHLTDQMSourceExtra # empty in 10_2_0
0176 #    * hinHLTDQMSourceExtra
0177 )
0178 ####################################################################################################
0179 #### SEQUENCES TO BE RUN @Tier0 ####
0180 ### Express : not really needed
0181 ### HLTMonitor : special collections allow to monitor tracks, strip and pixel clusters, b-tagging discriminator, etc --> OfflineHLTMonitoring
0182 ### Physics PDs : monitoring vs offline collection (typically, turnON)
0183 
0184 ## DQM step on Express
0185 offlineHLTSource4ExpressPD = cms.Sequence(
0186 )
0187 
0188 ## DQM step on HLTMonitor
0189 ## ADD here only sequences/modules which rely on HLT collections which are stored in the HLTMonitoring stream
0190 ## and are not available in the standard RAW format
0191 offlineHLTSource4HLTMonitorPD = cms.Sequence(
0192     dqmInfoHLTMon *
0193     lumiMonitorHLTsequence *          # lumi
0194     sistripMonitorHLTsequence *       # strip
0195     sipixelMonitorHLTsequence *       # pixel
0196     BTVHLTOfflineSource *             # BTV
0197     bTagHLTTrackMonitoringSequence *  # BTV relative track efficiencies
0198     trackingMonitorHLT *              # tracking
0199     BTagAndProbeHLT *                 # BTag and Probe
0200     trackingMonitorHLTDisplacedJet*   # EXO : DisplacedJet Tracking 
0201     egmTrackingMonitorHLT *           # EGM tracking
0202     hltToOfflineTrackValidatorSequence *  # Relative Online to Offline performace
0203     vertexingMonitorHLT *             # vertexing
0204     particleNetMonitoringHLT          # HIG: monitoring of HLT PNET taggers (incl. comparisons to Offline PNET)
0205 )
0206 
0207 # sequences run @tier0 on HLTMonitor PD
0208 OfflineHLTMonitoring = cms.Sequence(
0209     offlineHLTSource4HLTMonitorPD
0210 )
0211 
0212 # sequences run @tier0 on HLTMonitor PD w/ HI (PbPb, XeXe), pPb, ppRef
0213 OfflineHLTMonitoringPA = cms.Sequence(
0214     dqmInfoHLTMon *
0215     trackingMonitorHLT *
0216     PAtrackingMonitorHLT  
0217 )
0218 
0219 ## DQM step on physics PDs
0220 ## transient collections produced by the RECO step are allowed ;)
0221 offlineHLTSource4physicsPD = cms.Sequence(
0222       offlineHLTSourceOnAOD
0223     * offlineHLTSourceWithRECO
0224 )
0225 
0226 ## DQM step on special physics PDs (HI, FSQ and LowLumi, etc)
0227 ## transient collections produced by the RECO step are allowed ;)
0228 offlineHLTSource4specialPhysicsPD = cms.Sequence(
0229       offlineHLTSourceOnAOD
0230     * offlineHLTSourceWithRECO
0231     * fsqHLTOfflineSourceSequence
0232     * HILowLumiHLTOfflineSourceSequence
0233 )
0234 
0235 ## DQM step on relval
0236 offlineHLTSource4relval = cms.Sequence(
0237       offlineHLTSourceOnAOD
0238     * offlineHLTSourceWithRECO
0239     * offlineHLTSource4HLTMonitorPD       ## special collections (tracking, strip, pixel, etc)
0240     * fsqHLTOfflineSourceSequence         ## FSQ
0241     * HILowLumiHLTOfflineSourceSequence   ## HI
0242     * offlineHLTSourceOnAODextra          ## EXTRA
0243 )
0244 ####################################################################################################
0245 # 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
0246 # it is needed in order to have the DQM code in the release, w/o the issue of crashing the tier0
0247 # as the new modules in the sequence offlineHLTSourceOnAODextra are tested
0248 # these have to be migrated in the main offlineHLTSourceOnAOD sequence
0249 offlineValidationHLTSourceOnAOD = cms.Sequence(
0250       offlineHLTSourceOnAOD
0251     + offlineHLTSourceOnAODextra
0252 )
0253 ####################################################################################################
0254 
0255 
0256 ## old sequence, it should be dropped asa we are confident it is no longer used
0257 offlineHLTSource = cms.Sequence(
0258     offlineHLTSource4physicsPD
0259 )
0260 
0261 ### sequence run @tier0 (called by main DQM sequences in DQMOffline/Configuration/python/DQMOffline_cff.py) on all PDs, but HLTMonitor one
0262 triggerOfflineDQMSource =  cms.Sequence(
0263     offlineHLTSource
0264 )
0265 
0266 # this sequence can be used by AlCa for the validation of conditions,
0267 # because it is like offlineHLTSource (run @tier0) + offlineHLTSourceOnAODextra (meant to validate new features)
0268 offlineValidationHLTSource = cms.Sequence(
0269       offlineHLTSource
0270     + offlineHLTSourceOnAODextra
0271 )