CMS 3D CMS Logo

lowPtGsfElectrons_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 from RecoEgamma.EgammaElectronProducers.lowPtGsfElectronsPreRegression_cfi import lowPtGsfElectronsPreRegression
3 
4 lowPtGsfElectrons = lowPtGsfElectronsPreRegression.clone()
5 
6 ################################################################################
7 # LowPtGsfElectronProducer above is run by default in RECO
8 # LowPtGsfElectronFinalizer below is scheduled for run2_miniAOD_UL
9 
10 from RecoEgamma.EgammaTools.regressionModifier_cfi import regressionModifier106XUL
11 lowPtRegressionModifier = regressionModifier106XUL.clone(
12  modifierName = 'EGRegressionModifierV3',
13  rhoTag = 'fixedGridRhoFastjetAll',
14  eleRegs = dict(
15  ecalOnlyMean = dict(
16  lowEtHighEtBoundary = 20.,
17  ebLowEtForestName = "lowPtElectron_eb_ecalOnly_05To50_mean",
18  ebHighEtForestName = "lowPtElectron_eb_ecalOnly_05To50_mean",
19  eeLowEtForestName = "lowPtElectron_ee_ecalOnly_05To50_mean",
20  eeHighEtForestName = "lowPtElectron_ee_ecalOnly_05To50_mean",
21  ),
22  ecalOnlySigma = dict(
23  lowEtHighEtBoundary = 20.,
24  ebLowEtForestName = "lowPtElectron_eb_ecalOnly_05To50_sigma",
25  ebHighEtForestName = "lowPtElectron_eb_ecalOnly_05To50_sigma",
26  eeLowEtForestName = "lowPtElectron_ee_ecalOnly_05To50_sigma",
27  eeHighEtForestName = "lowPtElectron_ee_ecalOnly_05To50_sigma",
28  ),
29  epComb = dict(
30  ecalTrkRegressionConfig = dict(
31  lowEtHighEtBoundary = 20.,
32  ebLowEtForestName = "lowPtElectron_eb_ecalTrk_05To50_mean",
33  ebHighEtForestName = "lowPtElectron_eb_ecalTrk_05To50_mean",
34  eeLowEtForestName = "lowPtElectron_ee_ecalTrk_05To50_mean",
35  eeHighEtForestName = "lowPtElectron_ee_ecalTrk_05To50_mean",
36  ),
37  ecalTrkRegressionUncertConfig = dict(
38  lowEtHighEtBoundary = 20.,
39  ebLowEtForestName = "lowPtElectron_eb_ecalTrk_05To50_sigma",
40  ebHighEtForestName = "lowPtElectron_eb_ecalTrk_05To50_sigma",
41  eeLowEtForestName = "lowPtElectron_ee_ecalTrk_05To50_sigma",
42  eeHighEtForestName = "lowPtElectron_ee_ecalTrk_05To50_sigma",
43  ),
44  )
45  ),
46 )
47 
48 from RecoEgamma.EgammaElectronProducers.lowPtGsfElectronFinalizer_cfi import lowPtGsfElectronFinalizer
49 _lowPtGsfElectrons = lowPtGsfElectronFinalizer.clone(
50  previousGsfElectronsTag = "lowPtGsfElectrons::@skipCurrentProcess",
51  regressionConfig = lowPtRegressionModifier,
52 )
53 
54 from Configuration.ProcessModifiers.run2_miniAOD_UL_cff import run2_miniAOD_UL
55 run2_miniAOD_UL.toReplaceWith(lowPtGsfElectrons,_lowPtGsfElectrons)