Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate the temporary 2017 DQM+validation customizations to eras #13987

Merged
merged 1 commit into from Apr 23, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions DQM/Physics/python/DQMPhysics_cff.py
@@ -1,4 +1,5 @@
import FWCore.ParameterSet.Config as cms
from Configuration.StandardSequences.Eras import eras

from DQM.Physics.bphysicsOniaDQM_cfi import *
from DQM.Physics.ewkMuDQM_cfi import *
Expand Down Expand Up @@ -34,6 +35,11 @@
*ExoticaDQM
*B2GDQM
)
eras.phase1Pixel.toReplaceWith(dqmPhysics, dqmPhysics.copyAndExclude([ # FIXME
ewkMuDQM, # Excessive printouts because 2017 doesn't have HLT yet
ewkElecDQM, # Excessive printouts because 2017 doesn't have HLT yet
ewkMuLumiMonitorDQM, # Excessive printouts because 2017 doesn't have HLT yet
]))

bphysicsOniaDQMHI = bphysicsOniaDQM.clone(vertex=cms.InputTag("hiSelectedVertex"))
dqmPhysicsHI = cms.Sequence(bphysicsOniaDQMHI+CentralityDQM)
Expand Down
@@ -1,4 +1,5 @@
import FWCore.ParameterSet.Config as cms
from Configuration.StandardSequences.Eras import eras

# FED integrity Check
from DQM.SiStripMonitorHardware.siStripFEDCheck_cfi import *
Expand Down Expand Up @@ -142,6 +143,9 @@
APVPhases*consecutiveHEs*siStripFEDCheck*siStripFEDMonitor*SiStripMonitorDigi*SiStripMonitorClusterBPTX
*SiStripMonitorTrackCommon*MonitorTrackResiduals
*dqmInfoSiStrip)
eras.phase1Pixel.toReplaceWith(SiStripDQMTier0, SiStripDQMTier0.copyAndExclude([ # FIXME
MonitorTrackResiduals # Excessive printouts because 2017 doesn't have HLT yet
]))

SiStripDQMTier0Common = cms.Sequence(
APVPhases*consecutiveHEs*siStripFEDCheck*siStripFEDMonitor*SiStripMonitorDigi*SiStripMonitorClusterBPTX
Expand All @@ -152,6 +156,9 @@
APVPhases*consecutiveHEs*siStripFEDCheck*siStripFEDMonitor*SiStripMonitorDigi*SiStripMonitorClusterBPTX
*SiStripMonitorTrackMB*MonitorTrackResiduals
*dqmInfoSiStrip)
eras.phase1Pixel.toReplaceWith(SiStripDQMTier0MinBias, SiStripDQMTier0MinBias.copyAndExclude([ # FIXME
MonitorTrackResiduals # Excessive printouts because 2017 doesn't have HLT yet
]))



5 changes: 4 additions & 1 deletion DQMOffline/Configuration/python/DQMOffline_CRT_cff.py
@@ -1,4 +1,5 @@
import FWCore.ParameterSet.Config as cms
from Configuration.StandardSequences.Eras import eras

siStripCertificationInfo = cms.EDAnalyzer("SiStripCertificationInfo")
from DQM.SiPixelCommon.SiPixelOfflineDQM_client_cff import *
Expand Down Expand Up @@ -26,4 +27,6 @@
dataCertificationJetMETSequence *
egammaDataCertificationTask *
dqmOfflineTriggerCert )

eras.phase1Pixel.toReplaceWith(crt_dqmoffline, crt_dqmoffline.copyAndExclude([ # FIXME
dqmOfflineTriggerCert # No HLT yet for 2017, so no need to run the DQM (avoiding excessive printouts)
]))
8 changes: 8 additions & 0 deletions DQMOffline/Configuration/python/DQMOffline_SecondStep_cff.py
@@ -1,4 +1,5 @@
import FWCore.ParameterSet.Config as cms
from Configuration.StandardSequences.Eras import eras

from CondTools.DQM.DQMReferenceHistogramRootFileEventSetupAnalyzer_cfi import *
from DQMServices.Components.DQMMessageLoggerClient_cff import *
Expand Down Expand Up @@ -51,6 +52,10 @@
alcaBeamMonitorClient *
SusyPostProcessorSequence *
runTauEff)
eras.phase1Pixel.toReplaceWith(DQMOffline_SecondStep_PrePOG, DQMOffline_SecondStep_PrePOG.copyAndExclude([
hltOfflineDQMClient, # No HLT yet for 2017, so no need to run the DQM (avoiding excessive printouts)
runTauEff, # Excessive printouts because 2017 doesn't have HLT yet
]))

DQMOffline_SecondStepPOG = cms.Sequence( dqmRefHistoRootFileGetter *
DQMOffline_SecondStep_PrePOG *
Expand All @@ -64,6 +69,9 @@
HLTMonitoringClient *
DQMMessageLoggerClientSeq *
dqmFastTimerServiceClient)
eras.phase1Pixel.toReplaceWith(DQMOffline_SecondStep, DQMOffline_SecondStep.copyAndExclude([
HLTMonitoringClient, # No HLT yet for 2017, so no need to run the DQM (avoiding excessive printouts)
]))

DQMOffline_SecondStep_FakeHLT = cms.Sequence( DQMOffline_SecondStep )
DQMOffline_SecondStep_FakeHLT.remove( HLTMonitoringClient )
Expand Down
15 changes: 15 additions & 0 deletions DQMOffline/Configuration/python/DQMOffline_cff.py
@@ -1,4 +1,5 @@
import FWCore.ParameterSet.Config as cms
from Configuration.StandardSequences.Eras import eras

from DQMServices.Components.DQMMessageLogger_cfi import *
from DQMServices.Components.DQMDcsInfo_cfi import *
Expand Down Expand Up @@ -31,6 +32,9 @@
es_dqm_source_offline *
castorSources *
HcalDQMOfflineSequence )
eras.phase1Pixel.toReplaceWith(DQMOfflinePreDPG, DQMOfflinePreDPG.copyAndExclude([ # FIXME
siPixelOfflineDQM_source, # Pixel DQM needs to be updated for phase1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@makortel Do I uderstand correctly that the new Pixel DQM should/could be plugged in here?

I changed https://github.com/schneiml/cmssw/blob/phase1pixeldqm-histoman-refactoring/DQM/SiPixelCommon/python/SiPixelOfflineDQM_source_cff.py#L133 to introduce eras, which seems to be another alternative to me.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@schneiml Taking a look on your branch, I would say that

  • this is not a bad place to take out pixel DQM (it could be done also in SiPixelOfflineDQM_source_cff but this is more "blind" approach)
  • replacing phase0 DQM with phase1 DQM is best done in SiPixelOfflineDQM_source_cff as you did

Basically, if/after this PR gets integrated, for enabling the pixel DQM sequence you need to remove these three lines (in addition to the phase0->phase1 replacement you already have).

]))

DQMOfflineDPG = cms.Sequence( DQMOfflinePreDPG *
DQMMessageLogger )
Expand Down Expand Up @@ -60,6 +64,11 @@
dqmPhysics *
produceDenoms *
pfTauRunDQMValidation)
eras.phase1Pixel.toReplaceWith(DQMOfflinePrePOG, DQMOfflinePrePOG.copyAndExclude([ # FIXME
TrackingDQMSourceTier0, # Tracking DQM needs to be migrated for phase1
triggerOfflineDQMSource, # No HLT yet for 2017, so no need to run the DQM (avoiding excessive printouts)
pfTauRunDQMValidation, # Excessive printouts because 2017 doesn't have HLT yet
]))

DQMOfflinePOG = cms.Sequence( DQMOfflinePrePOG *
DQMMessageLogger )
Expand All @@ -71,6 +80,9 @@
HLTMonitoring *
dqmFastTimerServiceLuminosity *
DQMMessageLogger )
eras.phase1Pixel.toReplaceWith(DQMOffline, DQMOffline.copyAndExclude([
HLTMonitoring # No HLT yet for 2017, so no need to run the DQM (avoiding excessive printouts)
]))

DQMOfflineFakeHLT = cms.Sequence( DQMOffline )
DQMOfflineFakeHLT.remove( HLTMonitoring )
Expand Down Expand Up @@ -116,6 +128,9 @@
DQMOfflineTracking = cms.Sequence( TrackingDQMSourceTier0Common *
pvMonitor
)
eras.phase1Pixel.toReplaceWith(DQMOfflineTracking, DQMOfflineTracking.copyAndExclude([ # FIXME
TrackingDQMSourceTier0Common # Tracking DQM needs to be migrated for phase1
]))
DQMOfflineMuon = cms.Sequence( dtSources *
rpcTier0Source *
cscSources *
Expand Down
5 changes: 5 additions & 0 deletions DQMOffline/JetMET/python/jetMETDQMOfflineSource_cff.py
@@ -1,4 +1,5 @@
import FWCore.ParameterSet.Config as cms
from Configuration.StandardSequences.Eras import eras

from DQMOffline.JetMET.metDQMConfig_cff import *
from DQMOffline.JetMET.jetAnalyzer_cff import *
Expand Down Expand Up @@ -108,6 +109,10 @@
dqmCorrPfMetType1*pfMETT1*jetDQMAnalyzerSequence*HBHENoiseFilterResultProducer*
CSCTightHaloFilterDQM*CSCTightHalo2015FilterDQM*eeBadScFilterDQM*EcalDeadCellTriggerPrimitiveFilterDQM*EcalDeadCellBoundaryEnergyFilterDQM*HcalStripHaloFilterDQM
*METDQMAnalyzerSequence)
eras.phase1Pixel.toReplaceWith(jetMETDQMOfflineSource, jetMETDQMOfflineSource.copyAndExclude([ # FIXME
jetDQMAnalyzerSequence, # Excessive printouts because 2017 doesn't have HLT yet
METDQMAnalyzerSequence, # Excessive printouts because 2017 doesn't have HLT yet
]))

jetMETDQMOfflineRedoProductsMiniAOD = cms.Sequence(goodOfflinePrimaryVerticesDQMforMiniAOD)

Expand Down
4 changes: 4 additions & 0 deletions DQMOffline/Muon/python/muonAnalyzer_cff.py
@@ -1,4 +1,5 @@
import FWCore.ParameterSet.Config as cms
from Configuration.StandardSequences.Eras import eras

from DQMOffline.Muon.muonRecoOneHLT_cfi import *
from DQMOffline.Muon.muonEfficiencyAnalyzer_cfi import *
Expand All @@ -22,6 +23,9 @@
TightMuonEfficiencyAnalyzer*
muonPFsequence*
muonRecoOneHLT)
eras.phase1Pixel.toReplaceWith(muonAnalyzer, muonAnalyzer.copyAndExclude([ # FIXME
muonRecoOneHLT # Doesn't work because TriggerResults::HLT is missing (because HLT not yet being part of 2017 workflow)
]))

muonAnalyzer_noHLT = cms.Sequence(muonEnergyDepositAnalyzer*
muonSeedsAnalyzer*
Expand Down
3 changes: 3 additions & 0 deletions HLTriggerOffline/Common/python/HLTValidationHarvest_cff.py
@@ -1,3 +1,5 @@
from Configuration.StandardSequences.Eras import eras

from HLTriggerOffline.Tau.Validation.HLTTauPostValidation_cfi import *
from HLTriggerOffline.Muon.HLTMuonPostVal_cff import *
from HLTriggerOffline.Egamma.EgammaPostProcessor_cfi import *
Expand Down Expand Up @@ -35,6 +37,7 @@
+HLTSMPPostVal
+HltBTagPostVal
)
eras.phase1Pixel.toReplaceWith(hltpostvalidation, cms.Sequence()) # FIXME: No HLT yet for 2017, so no need to run the DQM (avoiding excessive printouts)

# fastsim customs
from Configuration.StandardSequences.Eras import eras
Expand Down
5 changes: 4 additions & 1 deletion HLTriggerOffline/Common/python/HLTValidation_cff.py
@@ -1,3 +1,5 @@
from Configuration.StandardSequences.Eras import eras

from Validation.RecoTrack.HLTmultiTrackValidator_cff import *
from Validation.RecoVertex.HLTmultiPVvalidator_cff import *
from HLTriggerOffline.Muon.HLTMuonVal_cff import *
Expand Down Expand Up @@ -31,6 +33,7 @@
+egammaSelectors
+ExoticaValidationProdSeq
)
eras.phase1Pixel.toReplaceWith(hltassociation, cms.Sequence()) # FIXME: No HLT yet for 2017, so no need to run the validation

hltvalidation = cms.Sequence(
HLTMuonVal
Expand All @@ -47,11 +50,11 @@
+SMPValidationSequence
+hltbtagValidationSequence
)
eras.phase1Pixel.toReplaceWith(hltvalidation, cms.Sequence()) # FIXME: No HLT yet for 2017, so no need to run the validation

# some hlt collections have no direct fastsim equivalent
# remove the dependent modules for now
# probably it would be rather easy to add or fake these collections
from Configuration.StandardSequences.Eras import eras
if eras.fastSim.isChosen():
hltassociation.remove(hltMultiTrackValidation)
hltassociation.remove(hltMultiPVValidation)
Expand Down
80 changes: 0 additions & 80 deletions SLHCUpgradeSimulations/Configuration/python/phase1TkCustoms.py
Expand Up @@ -130,38 +130,6 @@ def customise_Digi(process):

# DQM steps change
def customise_DQM(process,pileup):
# FIXME
#
# These should be added back once somebody checks that they work,
# and those that do not, get fixed
#
# The customizations are done here instead of in the central files
# with era because they are temporary

# Tracking DQM needs to be migrated for phase1
process.DQMOfflinePrePOG.remove(process.TrackingDQMSourceTier0)
process.DQMOfflineTracking.remove(process.TrackingDQMSourceTier0Common)

# Pixel DQM needs to be updated for phase1
process.DQMOfflinePreDPG.remove(process.siPixelOfflineDQM_source)

# Doesn't work because TriggerResults::HLT is missing
process.muonAnalyzer.remove(process.muonRecoOneHLT)

# Excessive printouts because 2017 doesn't have HLT yet
process.SiStripDQMTier0.remove(process.MonitorTrackResiduals)
process.SiStripDQMTier0MinBias.remove(process.MonitorTrackResiduals)
process.jetMETDQMOfflineSource.remove(process.jetDQMAnalyzerSequence)
process.jetMETDQMOfflineSource.remove(process.METDQMAnalyzerSequence)
process.dqmPhysics.remove(process.ewkMuDQM)
process.dqmPhysics.remove(process.ewkElecDQM)
process.dqmPhysics.remove(process.ewkMuLumiMonitorDQM)
process.DQMOfflinePrePOG.remove(process.pfTauRunDQMValidation)

# No HLT yet for 2017, so no need to run the DQM (avoiding excessive printouts)
process.DQMOffline.remove(process.HLTMonitoring)
process.DQMOfflinePrePOG.remove(process.triggerOfflineDQMSource)

# Ok, this customization does not work currently at all
# Need to be fixed before the tracking DQM can be enabled
return process
Expand Down Expand Up @@ -190,31 +158,6 @@ def customise_DQM(process,pileup):
return process

def customise_Validation(process):
# FIXME
#
# For starters, include only tracking validation
# The rest should be added back once somebody checks that they
# work, and those that do not, get fixed
#
# The customizations are done here instead of in the central files
# with era because they are temporary
# With era, would modify process.globalValidation

# Pixel validation needs to be migrated to phase1
process.trackingRecHitsValid.remove(process.PixelTrackingRecHitsValid)

# Excessive printouts because 2017 doesn't have HLT yet
process.globalValidation.remove(process.TauValNumeratorAndDenominatorRealData)
process.globalValidation.remove(process.TauValNumeratorAndDenominatorRealElectronsData)
process.globalValidation.remove(process.TauValNumeratorAndDenominatorRealMuonsData)
process.validation.remove(process.TauValNumeratorAndDenominatorRealData)
process.validation.remove(process.TauValNumeratorAndDenominatorRealElectronsData)
process.validation.remove(process.TauValNumeratorAndDenominatorRealMuonsData)

# No HLT yet for 2017, so no need to run the validation
process.hltassociation = cms.Sequence()
process.hltvalidation = cms.Sequence()

# these were migrated in #12359
if eras.phase1Pixel.isChosen():
return process
Expand Down Expand Up @@ -250,29 +193,6 @@ def customise_Validation_Trackingonly(process):
return process

def customise_harvesting(process):
# FIXME
#
# These should be added back once they get fixed
#
# The customizations are done here instead of in the central files
# with era because they are temporary

# Tracking DQM needs to be migrated for phase1
process.DQMHarvestTracking.remove(process.TrackingOfflineDQMClient)

# No HLT yet for 2017, so no need to run the DQM (avoiding excessive printouts)
process.DQMOffline_SecondStep.remove(process.HLTMonitoringClient)
process.DQMOffline_SecondStep_PrePOG.remove(process.hltOfflineDQMClient)
process.hltpostvalidation = cms.Sequence()
process.crt_dqmoffline.remove(process.dqmOfflineTriggerCert)

# Excessive printouts because 2017 doesn't have HLT yet
process.DQMOffline_SecondStep_PrePOG.remove(process.efficienciesRealData)
process.DQMOffline_SecondStep_PrePOG.remove(process.efficienciesRealElectronsData)
process.DQMOffline_SecondStep_PrePOG.remove(process.efficienciesRealMuonsData)
process.DQMOffline_SecondStep_PrePOG.remove(process.normalizePlotsRealMuonsData)
process.postValidation.remove(process.runTauEff)

# these were migrated in #12440
if eras.phase1Pixel.isChosen():
return process
Expand Down
4 changes: 4 additions & 0 deletions Validation/Configuration/python/postValidation_cff.py
@@ -1,4 +1,5 @@
import FWCore.ParameterSet.Config as cms
from Configuration.StandardSequences.Eras import eras

from Validation.RecoMuon.PostProcessor_cff import *
from Validation.RecoTrack.PostProcessorTracker_cfi import *
Expand Down Expand Up @@ -35,6 +36,9 @@
+ bTagCollectorSequenceMCbcl
+ METPostProcessor
)
eras.phase1Pixel.toReplaceWith(postValidation, postValidation.copyAndExclude([ # FIXME
runTauEff # Excessive printouts because 2017 doesn't have HLT yet
]))

postValidation_preprod = cms.Sequence(
recoMuonPostProcessors
Expand Down
7 changes: 7 additions & 0 deletions Validation/RecoTau/python/DQMMCValidation_cfi.py
@@ -1,3 +1,5 @@
from Configuration.StandardSequences.Eras import eras

from Validation.RecoTau.dataTypes.ValidateTausOnQCD_cff import *
from Validation.RecoTau.dataTypes.ValidateTausOnRealData_cff import *
from Validation.RecoTau.dataTypes.ValidateTausOnRealElectronsData_cff import *
Expand All @@ -17,6 +19,11 @@
TauValNumeratorAndDenominatorZMM+
TauValNumeratorAndDenominatorZTT
)
eras.phase1Pixel.toReplaceWith(pfTauRunDQMValidation, pfTauRunDQMValidation.copyAndExclude([ # FIXME
TauValNumeratorAndDenominatorRealData, # Excessive printouts because 2017 doesn't have HLT yet
TauValNumeratorAndDenominatorRealElectronsData, # Excessive printouts because 2017 doesn't have HLT yet
TauValNumeratorAndDenominatorRealMuonsData, # Excessive printouts because 2017 doesn't have HLT yet
]))

produceDenoms = cms.Sequence(
produceDenominatorQCD+
Expand Down
5 changes: 4 additions & 1 deletion Validation/RecoTrack/python/SiTrackingRecHitsValid_cff.py
@@ -1,7 +1,10 @@
import FWCore.ParameterSet.Config as cms
from Configuration.StandardSequences.Eras import eras

from RecoLocalTracker.SiStripRecHitConverter.StripCPE_cfi import *
from Validation.RecoTrack.SiPixelTrackingRecHitsValid_cfi import *
from Validation.RecoTrack.SiStripTrackingRecHitsValid_cfi import *
trackingRecHitsValid = cms.Sequence(PixelTrackingRecHitsValid*StripTrackingRecHitsValid)

eras.phase1Pixel.toReplaceWith(trackingRecHitsValid, trackingRecHitsValid.copyAndExclude([ # FIXME
PixelTrackingRecHitsValid # Pixel validation needs to be migrated to phase1
]))