-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
60 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 0 additions & 45 deletions
45
RecoEgamma/EgammaElectronProducers/python/lowPtGsfElectronFinalizer_cfi.py
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
RecoEgamma/EgammaElectronProducers/python/lowPtGsfElectronsPreRegression_cfi.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from RecoEgamma.EgammaElectronProducers.gsfElectrons_cfi import ecalDrivenGsfElectrons | ||
|
||
lowPtGsfElectronsPreRegression = ecalDrivenGsfElectrons.clone(gsfElectronCoresTag = "lowPtGsfElectronCores") | ||
|
||
from Configuration.Eras.Modifier_fastSim_cff import fastSim | ||
fastSim.toModify(lowPtGsfElectronsPreRegression,ctfTracksTag = "generalTracksBeforeMixing") | ||
|
||
from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA | ||
pp_on_AA.toModify(lowPtGsfElectronsPreRegression.preselection, minSCEtBarrel = 15.0) | ||
pp_on_AA.toModify(lowPtGsfElectronsPreRegression.preselection, minSCEtEndcaps = 15.0) |
52 changes: 45 additions & 7 deletions
52
RecoEgamma/EgammaElectronProducers/python/lowPtGsfElectrons_cfi.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,48 @@ | ||
from RecoEgamma.EgammaElectronProducers.gsfElectrons_cfi import ecalDrivenGsfElectrons | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
lowPtGsfElectronsPreRegression = ecalDrivenGsfElectrons.clone(gsfElectronCoresTag = "lowPtGsfElectronCores") | ||
from RecoEgamma.EgammaTools.regressionModifier_cfi import regressionModifier106XUL | ||
|
||
from Configuration.Eras.Modifier_fastSim_cff import fastSim | ||
fastSim.toModify(lowPtGsfElectronsPreRegression,ctfTracksTag = "generalTracksBeforeMixing") | ||
_lowPtRegressionModifier = regressionModifier106XUL.clone( | ||
modifierName = 'EGRegressionModifierV3', | ||
rhoTag = 'fixedGridRhoFastjetAll', | ||
eleRegs = dict( | ||
ecalOnlyMean = dict( | ||
lowEtHighEtBoundary = 20., | ||
ebLowEtForestName = ":lowPtElectron_eb_ecalOnly_05To50_mean", | ||
ebHighEtForestName = ":lowPtElectron_eb_ecalOnly_05To50_mean", | ||
eeLowEtForestName = ":lowPtElectron_ee_ecalOnly_05To50_mean", | ||
eeHighEtForestName = ":lowPtElectron_ee_ecalOnly_05To50_mean", | ||
), | ||
ecalOnlySigma = dict( | ||
lowEtHighEtBoundary = 20., | ||
ebLowEtForestName = ":lowPtElectron_eb_ecalOnly_05To50_sigma", | ||
ebHighEtForestName = ":lowPtElectron_eb_ecalOnly_05To50_sigma", | ||
eeLowEtForestName = ":lowPtElectron_ee_ecalOnly_05To50_sigma", | ||
eeHighEtForestName = ":lowPtElectron_ee_ecalOnly_05To50_sigma", | ||
), | ||
epComb = dict( | ||
ecalTrkRegressionConfig = dict( | ||
lowEtHighEtBoundary = 20., | ||
ebLowEtForestName = ":lowPtElectron_eb_ecalTrk_05To50_mean", | ||
ebHighEtForestName = ":lowPtElectron_eb_ecalTrk_05To50_mean", | ||
eeLowEtForestName = ":lowPtElectron_ee_ecalTrk_05To50_mean", | ||
eeHighEtForestName = ":lowPtElectron_ee_ecalTrk_05To50_mean", | ||
), | ||
ecalTrkRegressionUncertConfig = dict( | ||
lowEtHighEtBoundary = 20., | ||
ebLowEtForestName = ":lowPtElectron_eb_ecalTrk_05To50_sigma", | ||
ebHighEtForestName = ":lowPtElectron_eb_ecalTrk_05To50_sigma", | ||
eeLowEtForestName = ":lowPtElectron_ee_ecalTrk_05To50_sigma", | ||
eeHighEtForestName = ":lowPtElectron_ee_ecalTrk_05To50_sigma", | ||
), | ||
) | ||
), | ||
) | ||
|
||
from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA | ||
pp_on_AA.toModify(lowPtGsfElectronsPreRegression.preselection, minSCEtBarrel = 15.0) | ||
pp_on_AA.toModify(lowPtGsfElectronsPreRegression.preselection, minSCEtEndcaps = 15.0) | ||
lowPtGsfElectrons = cms.EDProducer("LowPtGsfElectronFinalizer", | ||
previousGsfElectronsTag = cms.InputTag("lowPtGsfElectronsPreRegression"), | ||
regressionConfig = _lowPtRegressionModifier, | ||
) | ||
|
||
from Configuration.ProcessModifiers.run2_miniAOD_UL_cff import run2_miniAOD_UL | ||
run2_miniAOD_UL.toModify(lowPtGsfElectrons, previousGsfElectronsTag = "lowPtGsfElectrons::@skipCurrentProcess") |