Skip to content

Commit

Permalink
Schedule IDProducer if bParking era specified
Browse files Browse the repository at this point in the history
  • Loading branch information
bainbrid committed Aug 24, 2020
1 parent 621e19d commit 28acbe6
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,24 @@
embedTrack = cms.bool(True),
)

# Rerun IDProducer on pat::Electrons if bParking era specified
from RecoEgamma.EgammaElectronProducers.lowPtGsfElectronID_cfi import *
from Configuration.Eras.Modifier_bParking_cff import bParking
bParking.toModify(lowPtGsfElectronID,
electrons='patLowPtElectrons',
rho='fixedGridRhoFastjetAll')

makePatLowPtElectronsTask = cms.Task(
lowPtElectronMatch,
patLowPtElectrons
)

makePatLowPtElectrons = cms.Sequence(makePatLowPtElectronsTask)
# Schedule IDProducer if bParking era specified
_makePatLowPtElectronsTask = makePatLowPtElectronsTask.copy()
_makePatLowPtElectronsTask.add(lowPtGsfElectronID)
bParking.toReplaceWith(makePatLowPtElectronsTask,_makePatLowPtElectronsTask)

makePatLowPtElectrons = cms.Sequence(makePatLowPtElectronsTask)

# Modifiers
from Configuration.Eras.Modifier_fastSim_cff import fastSim
Expand Down

0 comments on commit 28acbe6

Please sign in to comment.