Skip to content

Commit

Permalink
Merge pull request #45794 from nurfikri89/from141X2024_08232300_rever…
Browse files Browse the repository at this point in the history
…tBTagDQM

Revert changes made in BTV DQM with #45577
  • Loading branch information
cmsbuild authored Aug 26, 2024
2 parents 3ad0e57 + c1866ba commit 79a93e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 26 deletions.
4 changes: 2 additions & 2 deletions DQMOffline/RecoB/python/bTagCommon_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@
cms.PSet(
bTagTrackIPAnalysisBlock,
type = cms.string('CandIP'),
label = cms.InputTag("pfImpactParameterTagInfosPuppi"),
label = cms.InputTag("pfImpactParameterTagInfos"),
folder = cms.string("IPTag")
),

cms.PSet(
bTagProbabilityAnalysisBlock,
label = cms.InputTag("pfJetProbabilityBJetTagsPuppi"),
label = cms.InputTag("pfJetProbabilityBJetTags"),
folder = cms.string("JP")
),

Expand Down
26 changes: 2 additions & 24 deletions DQMOffline/RecoB/python/dqmAnalyzer_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
from PhysicsTools.JetMCAlgos.HadronAndPartonSelector_cfi import selectedHadronsAndPartons
from PhysicsTools.JetMCAlgos.AK4PFJetsMCFlavourInfos_cfi import ak4JetFlavourInfos
myak4JetFlavourInfos = ak4JetFlavourInfos.clone(
jets = "ak4PFJetsPuppi",
weights = cms.InputTag("puppi"),
jets = "ak4PFJetsCHS",
partons = "selectedHadronsAndPartons:algorithmicPartons",
hadronFlavourHasPriority = True
)
Expand All @@ -36,7 +35,7 @@
#do reco gen - reco matching
from PhysicsTools.PatAlgos.mcMatchLayer0.jetMatch_cfi import patJetGenJetMatch
newpatJetGenJetMatch = patJetGenJetMatch.clone(
src = "ak4PFJetsPuppi",
src = "ak4PFJetsCHS",
matched = "ak4GenJetsForPUid",
maxDeltaR = 0.25,
resolveAmbiguities = True
Expand All @@ -62,27 +61,6 @@
doJEC=False
)

from Configuration.Eras.Modifier_fastSim_cff import fastSim
fastSim.toModify(myak4JetFlavourInfos,
jets = "ak4PFJetsCHS",
weights = None
).toModify(newpatJetGenJetMatch,
src = "ak4PFJetsCHS",
).toModify(bTagValidation.tagConfig[0],
label = "pfImpactParameterTagInfos"
).toModify(bTagValidation.tagConfig[1],
label = "pfJetProbabilityBJetTags"
)

from Configuration.Eras.Modifier_pp_on_PbPb_run3_cff import pp_on_PbPb_run3
pp_on_PbPb_run3.toModify(newpatJetGenJetMatch,
src = "akCs4PFJets",
).toModify(bTagValidation.tagConfig[0],
label = "pfImpactParameterTagInfos"
).toModify(bTagValidation.tagConfig[1],
label = "pfJetProbabilityBJetTags"
)

#to run on fullsim in the validation sequence, all histograms produced in the dqmoffline sequence
bTagValidationNoall = bTagValidation.clone(flavPlots="bcl")
bTagPlotsMCbcl = cms.Sequence(bTagValidationNoall)

0 comments on commit 79a93e0

Please sign in to comment.