1 import FWCore.ParameterSet.Config
as cms
5 lowPtRegressionModifier = regressionModifier106XUL.clone(
6 modifierName =
'EGRegressionModifierV3',
7 rhoTag =
'fixedGridRhoFastjetAll',
10 lowEtHighEtBoundary = 20.,
11 ebLowEtForestName =
":lowPtElectron_eb_ecalOnly_05To50_mean",
12 ebHighEtForestName =
":lowPtElectron_eb_ecalOnly_05To50_mean",
13 eeLowEtForestName =
":lowPtElectron_ee_ecalOnly_05To50_mean",
14 eeHighEtForestName =
":lowPtElectron_ee_ecalOnly_05To50_mean",
17 lowEtHighEtBoundary = 20.,
18 ebLowEtForestName =
":lowPtElectron_eb_ecalOnly_05To50_sigma",
19 ebHighEtForestName =
":lowPtElectron_eb_ecalOnly_05To50_sigma",
20 eeLowEtForestName =
":lowPtElectron_ee_ecalOnly_05To50_sigma",
21 eeHighEtForestName =
":lowPtElectron_ee_ecalOnly_05To50_sigma",
24 ecalTrkRegressionConfig = dict(
25 lowEtHighEtBoundary = 20.,
26 ebLowEtForestName =
":lowPtElectron_eb_ecalTrk_05To50_mean",
27 ebHighEtForestName =
":lowPtElectron_eb_ecalTrk_05To50_mean",
28 eeLowEtForestName =
":lowPtElectron_ee_ecalTrk_05To50_mean",
29 eeHighEtForestName =
":lowPtElectron_ee_ecalTrk_05To50_mean",
31 ecalTrkRegressionUncertConfig = dict(
32 lowEtHighEtBoundary = 20.,
33 ebLowEtForestName =
":lowPtElectron_eb_ecalTrk_05To50_sigma",
34 ebHighEtForestName =
":lowPtElectron_eb_ecalTrk_05To50_sigma",
35 eeLowEtForestName =
":lowPtElectron_ee_ecalTrk_05To50_sigma",
36 eeHighEtForestName =
":lowPtElectron_ee_ecalTrk_05To50_sigma",
43 _lowPtRegressionModifierUPC = regressionModifier103XLowPtPho.clone(
46 ebLowEtForestName =
":lowPtElectron_eb_ecalOnly_1To20_0p2To2_mean",
47 ebHighEtForestName =
":lowPtElectron_eb_ecalOnly_1To20_0p2To2_mean",
48 eeLowEtForestName =
":lowPtElectron_ee_ecalOnly_1To20_0p2To2_mean",
49 eeHighEtForestName =
":lowPtElectron_ee_ecalOnly_1To20_0p2To2_mean",
52 ebLowEtForestName =
":lowPtElectron_eb_ecalOnly_1To20_0p0002To0p5_sigma",
53 ebHighEtForestName =
":lowPtElectron_eb_ecalOnly_1To20_0p0002To0p5_sigma",
54 eeLowEtForestName =
":lowPtElectron_ee_ecalOnly_1To20_0p0002To0p5_sigma",
55 eeHighEtForestName =
":lowPtElectron_ee_ecalOnly_1To20_0p0002To0p5_sigma",
58 ecalTrkRegressionConfig = dict(
59 ebLowEtForestName =
":lowPtElectron_eb_ecalTrk_1To20_0p2To2_mean",
60 ebHighEtForestName =
":lowPtElectron_eb_ecalTrk_1To20_0p2To2_mean",
61 eeLowEtForestName =
":lowPtElectron_ee_ecalTrk_1To20_0p2To2_mean",
62 eeHighEtForestName =
":lowPtElectron_ee_ecalTrk_1To20_0p2To2_mean",
64 ecalTrkRegressionUncertConfig = dict(
65 ebLowEtForestName =
":lowPtElectron_eb_ecalTrk_1To20_0p0002To0p5_sigma",
66 ebHighEtForestName =
":lowPtElectron_eb_ecalTrk_1To20_0p0002To0p5_sigma",
67 eeLowEtForestName =
":lowPtElectron_ee_ecalTrk_1To20_0p0002To0p5_sigma",
68 eeHighEtForestName =
":lowPtElectron_ee_ecalTrk_1To20_0p0002To0p5_sigma",
73 from Configuration.Eras.Era_Run3_2023_UPC_cff
import Run3_2023_UPC
74 from Configuration.ProcessModifiers.egamma_lowPt_exclusive_cff
import egamma_lowPt_exclusive
75 (egamma_lowPt_exclusive & Run3_2023_UPC).toReplaceWith(lowPtRegressionModifier,_lowPtRegressionModifierUPC)
77 from RecoEgamma.EgammaElectronProducers.lowPtGsfElectronFinalizer_cfi
import lowPtGsfElectronFinalizer
78 lowPtGsfElectrons = lowPtGsfElectronFinalizer.clone(
79 previousGsfElectronsTag =
"lowPtGsfElectronsPreRegression",
80 regressionConfig = lowPtRegressionModifier,
83 from Configuration.ProcessModifiers.run2_miniAOD_UL_cff
import run2_miniAOD_UL
84 run2_miniAOD_UL.toModify(lowPtGsfElectrons, previousGsfElectronsTag =
"lowPtGsfElectrons::@skipCurrentProcess")