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

loose indirect dependency on obsolete stage-1 L1T records in DQMOffline/JetMET #37310

Merged
merged 1 commit into from Mar 23, 2022
Merged
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
30 changes: 30 additions & 0 deletions DQMOffline/JetMET/python/metDQMConfig_cfi.py
Expand Up @@ -55,6 +55,10 @@
hltPaths = cms.vstring( 'HLT_PFJet450_v*' ),
andOrHlt = cms.bool( True ),
errorReplyHlt = cms.bool( False ),
stage2 = cms.bool(False),
l1tAlgBlkInputTag = cms.InputTag("gtStage2Digis"),
l1tExtBlkInputTag = cms.InputTag("gtStage2Digis"),
ReadPrescalesFromFile = cms.bool(False),
),
cms.PSet(label = cms.string('lowPtJet'),
andOr = cms.bool( False ), #True -> OR #Comment this line to turn OFF
Expand All @@ -64,6 +68,10 @@
hltPaths = cms.vstring( 'HLT_PFJet80_v*' ),
andOrHlt = cms.bool( True ),
errorReplyHlt = cms.bool( True ),
stage2 = cms.bool(False),
l1tAlgBlkInputTag = cms.InputTag("gtStage2Digis"),
l1tExtBlkInputTag = cms.InputTag("gtStage2Digis"),
ReadPrescalesFromFile = cms.bool(False),
),
cms.PSet(label = cms.string('zeroBias'),
andOr = cms.bool( False ), #True -> OR #Comment this line to turn OFF
Expand All @@ -73,6 +81,10 @@
hltPaths = cms.vstring( 'HLT_ZeroBias_v*' ),
andOrHlt = cms.bool( True ),
errorReplyHlt = cms.bool( False ),
stage2 = cms.bool(False),
l1tAlgBlkInputTag = cms.InputTag("gtStage2Digis"),
l1tExtBlkInputTag = cms.InputTag("gtStage2Digis"),
ReadPrescalesFromFile = cms.bool(False),
),
cms.PSet(label = cms.string('highMET'),
andOr = cms.bool( False ), #True -> OR #Comment this line to turn OFF
Expand All @@ -82,6 +94,10 @@
hltPaths = cms.vstring( 'HLT_MET250_v*' ),
andOrHlt = cms.bool( True ),
errorReplyHlt = cms.bool( False ),
stage2 = cms.bool(False),
l1tAlgBlkInputTag = cms.InputTag("gtStage2Digis"),
l1tExtBlkInputTag = cms.InputTag("gtStage2Digis"),
ReadPrescalesFromFile = cms.bool(False),
),
#cms.PSet(label = cms.string('singleEle'),
# andOr = cms.bool( False ), #True -> OR #Comment this line to turn OFF
Expand All @@ -100,6 +116,10 @@
hltPaths = cms.vstring( 'HLT_IsoMu24_eta2p1_v*', 'HLT_IsoMu27_v*'),
andOrHlt = cms.bool( True ),
errorReplyHlt = cms.bool( False ),
stage2 = cms.bool(False),
l1tAlgBlkInputTag = cms.InputTag("gtStage2Digis"),
l1tExtBlkInputTag = cms.InputTag("gtStage2Digis"),
ReadPrescalesFromFile = cms.bool(False),
)
),

Expand Down Expand Up @@ -132,6 +152,16 @@
),
)

#
# Make changes if using the Stage 2 trigger
#
from Configuration.Eras.Modifier_stage2L1Trigger_cff import stage2L1Trigger
stage2L1Trigger.toModify(caloMetDQMAnalyzer,
triggerSelectedSubFolders = {i: dict(stage2 = True,
l1tAlgBlkInputTag = "gtStage2Digis",
l1tExtBlkInputTag = "gtStage2Digis",
ReadPrescalesFromFile = True) for i in range(0, len(caloMetDQMAnalyzer.triggerSelectedSubFolders))})

pfMetDQMAnalyzer = caloMetDQMAnalyzer.clone(
METType = 'pf',
METCollectionLabel = "pfMet",
Expand Down