CMS 3D CMS Logo

lowPtGsfElectrons_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from RecoEgamma.EgammaTools.regressionModifier_cfi import regressionModifier106XUL
4 
5 lowPtRegressionModifier = regressionModifier106XUL.clone(
6  modifierName = 'EGRegressionModifierV3',
7  rhoTag = 'fixedGridRhoFastjetAll',
8  eleRegs = dict(
9  ecalOnlyMean = dict(
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",
15  ),
16  ecalOnlySigma = dict(
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",
22  ),
23  epComb = dict(
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",
30  ),
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",
37  ),
38  )
39  ),
40 )
41 
42 from RecoEgamma.EgammaTools.regressionModifier_cfi import regressionModifier103XLowPtPho
43 _lowPtRegressionModifierUPC = regressionModifier103XLowPtPho.clone(
44  eleRegs = dict(
45  ecalOnlyMean = dict(
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",
50  ),
51  ecalOnlySigma = dict(
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",
56  ),
57  epComb = dict(
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",
63  ),
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",
69  ),
70  )
71  ),
72 )
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)
76 
77 from RecoEgamma.EgammaElectronProducers.lowPtGsfElectronFinalizer_cfi import lowPtGsfElectronFinalizer
78 lowPtGsfElectrons = lowPtGsfElectronFinalizer.clone(
79  previousGsfElectronsTag = "lowPtGsfElectronsPreRegression",
80  regressionConfig = lowPtRegressionModifier,
81 )
82 
83 from Configuration.ProcessModifiers.run2_miniAOD_UL_cff import run2_miniAOD_UL
84 run2_miniAOD_UL.toModify(lowPtGsfElectrons, previousGsfElectronsTag = "lowPtGsfElectrons::@skipCurrentProcess")