Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-11-19 23:20:16

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from RecoEgamma.EgammaTools.regressionModifier_cfi import regressionModifier106XUL
0004 
0005 lowPtRegressionModifier = regressionModifier106XUL.clone(
0006     modifierName = 'EGRegressionModifierV3',
0007     rhoTag = 'fixedGridRhoFastjetAll',
0008     eleRegs = dict(
0009         ecalOnlyMean = dict(
0010             lowEtHighEtBoundary = 20.,
0011             ebLowEtForestName = ":lowPtElectron_eb_ecalOnly_05To50_mean",
0012             ebHighEtForestName = ":lowPtElectron_eb_ecalOnly_05To50_mean",
0013             eeLowEtForestName = ":lowPtElectron_ee_ecalOnly_05To50_mean",
0014             eeHighEtForestName = ":lowPtElectron_ee_ecalOnly_05To50_mean",
0015             ),
0016         ecalOnlySigma = dict(
0017             lowEtHighEtBoundary = 20.,
0018             ebLowEtForestName = ":lowPtElectron_eb_ecalOnly_05To50_sigma",
0019             ebHighEtForestName = ":lowPtElectron_eb_ecalOnly_05To50_sigma",
0020             eeLowEtForestName = ":lowPtElectron_ee_ecalOnly_05To50_sigma",
0021             eeHighEtForestName = ":lowPtElectron_ee_ecalOnly_05To50_sigma",
0022             ),
0023         epComb = dict(
0024             ecalTrkRegressionConfig = dict(
0025                 lowEtHighEtBoundary = 20.,
0026                 ebLowEtForestName = ":lowPtElectron_eb_ecalTrk_05To50_mean",
0027                 ebHighEtForestName = ":lowPtElectron_eb_ecalTrk_05To50_mean",
0028                 eeLowEtForestName = ":lowPtElectron_ee_ecalTrk_05To50_mean",
0029                 eeHighEtForestName = ":lowPtElectron_ee_ecalTrk_05To50_mean",
0030                 ),
0031             ecalTrkRegressionUncertConfig = dict(
0032                 lowEtHighEtBoundary = 20.,
0033                 ebLowEtForestName = ":lowPtElectron_eb_ecalTrk_05To50_sigma",
0034                 ebHighEtForestName = ":lowPtElectron_eb_ecalTrk_05To50_sigma",
0035                 eeLowEtForestName = ":lowPtElectron_ee_ecalTrk_05To50_sigma",
0036                 eeHighEtForestName = ":lowPtElectron_ee_ecalTrk_05To50_sigma",
0037                 ),
0038         )
0039     ),
0040 )
0041 
0042 from RecoEgamma.EgammaTools.regressionModifier_cfi import regressionModifier103XLowPtPho
0043 _lowPtRegressionModifierUPC = regressionModifier103XLowPtPho.clone(
0044     eleRegs = dict(
0045         ecalOnlyMean = dict(
0046             ebLowEtForestName = ":lowPtElectron_eb_ecalOnly_1To20_0p2To2_mean",
0047             ebHighEtForestName = ":lowPtElectron_eb_ecalOnly_1To20_0p2To2_mean",
0048             eeLowEtForestName = ":lowPtElectron_ee_ecalOnly_1To20_0p2To2_mean",
0049             eeHighEtForestName = ":lowPtElectron_ee_ecalOnly_1To20_0p2To2_mean",
0050             ),
0051         ecalOnlySigma = dict(
0052             ebLowEtForestName = ":lowPtElectron_eb_ecalOnly_1To20_0p0002To0p5_sigma",
0053             ebHighEtForestName = ":lowPtElectron_eb_ecalOnly_1To20_0p0002To0p5_sigma",
0054             eeLowEtForestName = ":lowPtElectron_ee_ecalOnly_1To20_0p0002To0p5_sigma",
0055             eeHighEtForestName = ":lowPtElectron_ee_ecalOnly_1To20_0p0002To0p5_sigma",
0056             ),
0057         epComb = dict(
0058             ecalTrkRegressionConfig = dict(
0059                 ebLowEtForestName = ":lowPtElectron_eb_ecalTrk_1To20_0p2To2_mean",
0060                 ebHighEtForestName = ":lowPtElectron_eb_ecalTrk_1To20_0p2To2_mean",
0061                 eeLowEtForestName = ":lowPtElectron_ee_ecalTrk_1To20_0p2To2_mean",
0062                 eeHighEtForestName = ":lowPtElectron_ee_ecalTrk_1To20_0p2To2_mean",
0063                 ),
0064             ecalTrkRegressionUncertConfig = dict(
0065                 ebLowEtForestName = ":lowPtElectron_eb_ecalTrk_1To20_0p0002To0p5_sigma",
0066                 ebHighEtForestName = ":lowPtElectron_eb_ecalTrk_1To20_0p0002To0p5_sigma",
0067                 eeLowEtForestName = ":lowPtElectron_ee_ecalTrk_1To20_0p0002To0p5_sigma",
0068                 eeHighEtForestName = ":lowPtElectron_ee_ecalTrk_1To20_0p0002To0p5_sigma",
0069                 ),
0070         )
0071     ),
0072 )
0073 from Configuration.Eras.Era_Run3_2023_UPC_cff import Run3_2023_UPC
0074 from Configuration.ProcessModifiers.egamma_lowPt_exclusive_cff import egamma_lowPt_exclusive
0075 (egamma_lowPt_exclusive & Run3_2023_UPC).toReplaceWith(lowPtRegressionModifier,_lowPtRegressionModifierUPC)
0076 
0077 from RecoEgamma.EgammaElectronProducers.lowPtGsfElectronFinalizer_cfi import lowPtGsfElectronFinalizer
0078 lowPtGsfElectrons = lowPtGsfElectronFinalizer.clone(
0079     previousGsfElectronsTag = "lowPtGsfElectronsPreRegression",
0080     regressionConfig = lowPtRegressionModifier,
0081 )
0082 
0083 from Configuration.ProcessModifiers.run2_miniAOD_UL_cff import run2_miniAOD_UL
0084 run2_miniAOD_UL.toModify(lowPtGsfElectrons, previousGsfElectronsTag = "lowPtGsfElectrons::@skipCurrentProcess")