Skip to content

Commit

Permalink
Renaming squence
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio Sanchez Cruz committed May 27, 2021
1 parent d541f6e commit 321f2ae
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions PhysicsTools/NanoAOD/python/electrons_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,14 +507,14 @@ def _get_bitmapVIDForEle_docstring(modules,WorkingPoints):
resolveByMatchQuality = cms.bool(True), # False = just match input in order; True = pick lowest deltaR pair first
)

electronOldMCTable = cms.EDProducer("CandMCMatchTableProducer",
src = electronTable.src,
mcMap = cms.InputTag("electronsMCMatchForTable"),
objName = electronTable.name,
objType = electronTable.name, #cms.string("Electron"),
branchName = cms.string("genPart"),
docString = cms.string("MC matching to status==1 electrons or photons"),
)
# electronOldMCTable = cms.EDProducer("CandMCMatchTableProducer",
# src = electronTable.src,
# mcMap = cms.InputTag("electronsMCMatchForTable"),
# objName = electronTable.name,
# objType = electronTable.name, #cms.string("Electron"),
# branchName = cms.string("genPart"),
# docString = cms.string("MC matching to status==1 electrons or photons"),
# )

electronMCTable = cms.EDProducer("CandMCMatchTableProducer",
src = electronTable.src,
Expand All @@ -531,8 +531,14 @@ def _get_bitmapVIDForEle_docstring(modules,WorkingPoints):

electronSequence = cms.Sequence(bitmapVIDForEle + bitmapVIDForEleHEEP + isoForEle + ptRatioRelForEle + seedGainEle + slimmedElectronsWithUserData + finalElectrons)
electronTables = cms.Sequence (electronMVATTH + electronTable)
electronMCold = cms.Sequence(electronsMCMatchForTable + electronOldMCTable)
electronMCold = cms.Sequence(electronsMCMatchForTable + electronMCTable)
electronMC = cms.Sequence(particleLevelForMatching + tautaggerForMatching + matchingElecPhoton + electronsMCMatchForTable + electronsMCMatchForTableAlt + electronMCTable)
( run2_nanoAOD_106Xv1 & ~run2_nanoAOD_devel).toModify( electronMCTable,
mcMapDressedLep=None,
mcMap = cms.InputTag("electronsMCMatchForTable"),
mapTauAnc=None,
objType=electronTable.name,
genparticles=None)
( run2_nanoAOD_106Xv1 & ~run2_nanoAOD_devel).toReplaceWith(electronMC, electronMCold)

#for NANO from reminAOD, no need to run slimmedElectronsUpdated, other modules of electron sequence will run on slimmedElectrons
Expand Down

0 comments on commit 321f2ae

Please sign in to comment.