Skip to content

Commit

Permalink
Update the egamma regression for 2023 UPC PbPb
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre Govinda Stahl Leiton committed Nov 2, 2024
1 parent ee08414 commit 2258ac8
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
35 changes: 35 additions & 0 deletions RecoEgamma/EgammaElectronProducers/python/lowPtGsfElectrons_cfi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
16 changes: 16 additions & 0 deletions RecoEgamma/EgammaTools/python/regressionModifier_cfi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 2258ac8

Please sign in to comment.