Skip to content

Commit

Permalink
Merge pull request #38799 from elusian/heavyFlavorDQMFixes_12_4
Browse files Browse the repository at this point in the history
[12_4_X] HeavyFlavor DQM fixes
  • Loading branch information
cmsbuild committed Jul 22, 2022
2 parents ee2946c + dc82e73 commit f59f8d9
Show file tree
Hide file tree
Showing 4 changed files with 674 additions and 389 deletions.
21 changes: 21 additions & 0 deletions DQM/Physics/python/customiseHeavyFlavorDQMForMiniAOD.py
@@ -0,0 +1,21 @@
import FWCore.ParameterSet.Config as cms

def customiseHeavyFlavorDQMForMiniAOD(process):
if hasattr(process, "bphWriteSpecificDecayForDQM"):
process.bphWriteSpecificDecayForDQM.pVertexLabel = cms.string('offlineSlimmedPrimaryVertices')

process.bphWriteSpecificDecayForDQM.pcCandsLabel = cms.string('packedPFCandidates')
process.bphWriteSpecificDecayForDQM.pfCandsLabel = cms.string('')

process.bphWriteSpecificDecayForDQM.patMuonLabel = cms.string('slimmedMuons')

process.bphWriteSpecificDecayForDQM.kSCandsLabel = cms.string('slimmedKshortVertices')
process.bphWriteSpecificDecayForDQM.k0CandsLabel = cms.string('')

process.bphWriteSpecificDecayForDQM.lSCandsLabel = cms.string('slimmedLambdaVertices')
process.bphWriteSpecificDecayForDQM.l0CandsLabel = cms.string('')

if hasattr(process, "heavyFlavorDQM"):
process.heavyFlavorDQM.pvCollection = cms.InputTag('offlineSlimmedPrimaryVertices')

return process
5 changes: 3 additions & 2 deletions DQM/Physics/python/heavyFlavorDQMFirstStep_cff.py
Expand Up @@ -4,7 +4,7 @@
from DQM.Physics.vertexSelectForHeavyFlavorDQM_cfi import recoSelectForHeavyFlavorDQM

bphWriteSpecificDecayForDQM = cms.EDProducer('BPHWriteSpecificDecay',
pVertexLabel = cms.string('offlineSlimmedPrimaryVertices'),
pVertexLabel = cms.string('offlinePrimaryVertices'),
pfCandsLabel = cms.string('particleFlow'),
patMuonLabel = cms.string('selectedPatMuons'),
k0CandsLabel = cms.string('generalV0Candidates:Kshort'),
Expand All @@ -28,7 +28,8 @@
)

heavyFlavorDQM = HeavyFlavorDQMAnalyzer.clone(
pvCollection = cms.InputTag('offlineSlimmedPrimaryVertices'),
pvCollection = cms.InputTag('offlinePrimaryVertices'),
beamSpot = cms.InputTag('offlineBeamSpot'),
OniaToMuMuCands = cms.InputTag('bphWriteSpecificDecayForDQM:OniaToMuMuCands'),
Kx0ToKPiCands = cms.InputTag('bphWriteSpecificDecayForDQM:Kx0ToKPiCands'),
PhiToKKCands = cms.InputTag('bphWriteSpecificDecayForDQM:PhiToKKCands'),
Expand Down

0 comments on commit f59f8d9

Please sign in to comment.