Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the egamma regression for 2023 UPC PbPb rereco #46562

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)