diff --git a/RecoEcal/EgammaClusterProducers/python/particleFlowSuperClusterECAL_cfi.py b/RecoEcal/EgammaClusterProducers/python/particleFlowSuperClusterECAL_cfi.py index e15dda00ca50a..a16bb50e22573 100644 --- a/RecoEcal/EgammaClusterProducers/python/particleFlowSuperClusterECAL_cfi.py +++ b/RecoEcal/EgammaClusterProducers/python/particleFlowSuperClusterECAL_cfi.py @@ -28,3 +28,9 @@ thresh_PFClusterSeedBarrel = 0.5, thresh_PFClusterSeedEndcap = 0.5) +from Configuration.Eras.Era_Run3_2023_UPC_cff import Run3_2023_UPC +(egamma_lowPt_exclusive & Run3_2023_UPC).toModify(particleFlowSuperClusterECAL, regressionConfig = dict( + regressionKeyEB = 'pfscecal_ebCorrection_offline_v2', + uncertaintyKeyEB = 'pfscecal_ebUncertainty_offline_v2', + regressionKeyEE = 'pfscecal_eeCorrection_offline_v2', + uncertaintyKeyEE = 'pfscecal_eeUncertainty_offline_v2')) diff --git a/RecoEgamma/EgammaElectronProducers/python/lowPtGsfElectrons_cfi.py b/RecoEgamma/EgammaElectronProducers/python/lowPtGsfElectrons_cfi.py index ed420bdc39921..27a80fe92e1d3 100644 --- a/RecoEgamma/EgammaElectronProducers/python/lowPtGsfElectrons_cfi.py +++ b/RecoEgamma/EgammaElectronProducers/python/lowPtGsfElectrons_cfi.py @@ -39,6 +39,41 @@ ), ) +from RecoEgamma.EgammaTools.regressionModifier_cfi import regressionModifier103XLowPtPho +_lowPtRegressionModifierUPC = regressionModifier103XLowPtPho.clone( + eleRegs = dict( + ecalOnlyMean = dict( + ebLowEtForestName = ":lowPtElectron_eb_ecalOnly_1To20_0p2To2_mean", + ebHighEtForestName = ":lowPtElectron_eb_ecalOnly_1To20_0p2To2_mean", + eeLowEtForestName = ":lowPtElectron_ee_ecalOnly_1To20_0p2To2_mean", + eeHighEtForestName = ":lowPtElectron_ee_ecalOnly_1To20_0p2To2_mean", + ), + ecalOnlySigma = dict( + ebLowEtForestName = ":lowPtElectron_eb_ecalOnly_1To20_0p0002To0p5_sigma", + ebHighEtForestName = ":lowPtElectron_eb_ecalOnly_1To20_0p0002To0p5_sigma", + eeLowEtForestName = ":lowPtElectron_ee_ecalOnly_1To20_0p0002To0p5_sigma", + eeHighEtForestName = ":lowPtElectron_ee_ecalOnly_1To20_0p0002To0p5_sigma", + ), + epComb = dict( + ecalTrkRegressionConfig = dict( + ebLowEtForestName = ":lowPtElectron_eb_ecalTrk_1To20_0p2To2_mean", + ebHighEtForestName = ":lowPtElectron_eb_ecalTrk_1To20_0p2To2_mean", + eeLowEtForestName = ":lowPtElectron_ee_ecalTrk_1To20_0p2To2_mean", + eeHighEtForestName = ":lowPtElectron_ee_ecalTrk_1To20_0p2To2_mean", + ), + ecalTrkRegressionUncertConfig = dict( + ebLowEtForestName = ":lowPtElectron_eb_ecalTrk_1To20_0p0002To0p5_sigma", + ebHighEtForestName = ":lowPtElectron_eb_ecalTrk_1To20_0p0002To0p5_sigma", + eeLowEtForestName = ":lowPtElectron_ee_ecalTrk_1To20_0p0002To0p5_sigma", + eeHighEtForestName = ":lowPtElectron_ee_ecalTrk_1To20_0p0002To0p5_sigma", + ), + ) + ), +) +from Configuration.Eras.Era_Run3_2023_UPC_cff import Run3_2023_UPC +from Configuration.ProcessModifiers.egamma_lowPt_exclusive_cff import egamma_lowPt_exclusive +(egamma_lowPt_exclusive & Run3_2023_UPC).toReplaceWith(lowPtRegressionModifier,_lowPtRegressionModifierUPC) + from RecoEgamma.EgammaElectronProducers.lowPtGsfElectronFinalizer_cfi import lowPtGsfElectronFinalizer lowPtGsfElectrons = lowPtGsfElectronFinalizer.clone( previousGsfElectronsTag = "lowPtGsfElectronsPreRegression", diff --git a/RecoEgamma/EgammaTools/python/regressionModifier_cfi.py b/RecoEgamma/EgammaTools/python/regressionModifier_cfi.py index bcf66c37c06bf..b780871bb1e2e 100644 --- a/RecoEgamma/EgammaTools/python/regressionModifier_cfi.py +++ b/RecoEgamma/EgammaTools/python/regressionModifier_cfi.py @@ -266,5 +266,21 @@ from Configuration.Eras.Modifier_run3_egamma_cff import run3_egamma run3_egamma.toReplaceWith(regressionModifier,regressionModifierRun3) +from Configuration.Eras.Modifier_run3_egamma_2023_cff import run3_egamma_2023 +run3_egamma_2023.toModify(regressionModifier103XLowPtPho, + eleRegs = dict( + ecalOnlyMean = dict( + rangeMinHighEt = 0.2, + rangeMaxHighEt = 2.0 + ) + ), + phoRegs = dict( + ecalOnlyMean = dict( + rangeMinHighEt = 0.2, + rangeMaxHighEt = 2.0 + ) + ) +) + from Configuration.ProcessModifiers.egamma_lowPt_exclusive_cff import egamma_lowPt_exclusive egamma_lowPt_exclusive.toReplaceWith(regressionModifier,regressionModifier103XLowPtPho)