Skip to content

Commit

Permalink
Turn off jet clustering in particlelevel for Nano
Browse files Browse the repository at this point in the history
Fix electron matching
  • Loading branch information
kdlong committed Nov 28, 2021
1 parent 6aeeab8 commit e9addd3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion PhysicsTools/NanoAOD/python/electrons_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ def _get_bitmapVIDForEle_docstring(modules,WorkingPoints):
matchingElecPhoton = cms.EDProducer("GenJetGenPartMerger",
srcJet =cms.InputTag("particleLevel:leptons"),
srcPart=cms.InputTag("particleLevel:photons"),
cut = "pt > 3",
cut = cms.string("pt > 3"),
hasTauAnc=cms.InputTag("tautaggerForMatching"),
)

Expand Down
12 changes: 6 additions & 6 deletions PhysicsTools/NanoAOD/python/lowPtElectrons_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,13 @@
# electronTable (MC)
################################################################################

# Depends on tautaggerForMatching being run in electrons_cff
matchingLowPtElecPhoton = cms.EDProducer(
"GenJetGenPartMerger",
srcJet =cms.InputTag("particleLevelForMatchingLowPt:leptons"),
srcPart=cms.InputTag("particleLevelForMatchingLowPt:photons"),
hasTauAnc=cms.InputTag("tautaggerForMatchingLowPt"),
srcJet =cms.InputTag("particleLevel:leptons"),
srcPart=cms.InputTag("particleLevel:photons"),
cut = cms.string(""),
hasTauAnc=cms.InputTag("tautaggerForMatching"),
)

lowPtElectronsMCMatchForTableAlt = cms.EDProducer(
Expand Down Expand Up @@ -183,9 +185,7 @@
+finalLowPtElectrons)
lowPtElectronTables = cms.Sequence(lowPtElectronTable)
lowPtElectronMC = cms.Sequence(
particleLevelForMatchingLowPt
+tautaggerForMatchingLowPt
+matchingLowPtElecPhoton
matchingLowPtElecPhoton
+lowPtElectronsMCMatchForTable
+lowPtElectronsMCMatchForTableAlt
+lowPtElectronMCTable)
Expand Down
1 change: 1 addition & 0 deletions PhysicsTools/NanoAOD/python/particlelevel_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
particleLevel = cms.EDProducer("ParticleLevelProducer",
src = cms.InputTag("genParticles2HepMC:unsmeared"),

doJetClustering = cms.bool(False), # Not needed as Rivet jets aren't used currently
usePromptFinalStates = cms.bool(True), # for leptons, photons, neutrinos
excludePromptLeptonsFromJetClustering = cms.bool(False),
excludeNeutrinosFromJetClustering = cms.bool(True),
Expand Down

0 comments on commit e9addd3

Please sign in to comment.