CMS 3D CMS Logo

lowPtGsfElectronID_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from RecoEgamma.EgammaElectronProducers.defaultLowPtGsfElectronID_cfi import defaultLowPtGsfElectronID
4 
5 lowPtGsfElectronID = defaultLowPtGsfElectronID.clone(
6  ModelNames = cms.vstring(['']),
7  ModelWeights = cms.vstring([
8  'RecoEgamma/ElectronIdentification/data/LowPtElectrons/RunII_Autumn18_LowPtElectrons_mva_id.xml.gz',
9  ]),
10  ModelThresholds = cms.vdouble([-10.])
11  )
12 
13 from Configuration.ProcessModifiers.run2_miniAOD_UL_cff import run2_miniAOD_UL
14 from Configuration.Eras.Modifier_run2_miniAOD_devel_cff import run2_miniAOD_devel
15 from Configuration.Eras.Modifier_bParking_cff import bParking
16 run2_miniAOD_UL.toModify(
17  lowPtGsfElectronID,
18  rho = "fixedGridRhoFastjetAll",
19  ModelWeights = ["RecoEgamma/ElectronIdentification/data/LowPtElectrons/LowPtElectrons_ID_2020Sept15.root"],
20  ModelThresholds = [-99.],
21  Version = "V1",
22 )
23 run2_miniAOD_devel.toModify(
24  lowPtGsfElectronID,
25  ModelWeights = ["RecoEgamma/ElectronIdentification/data/LowPtElectrons/LowPtElectrons_ID_2020Nov28.root"],
26 )
27 (bParking & run2_miniAOD_UL).toModify(
28  lowPtGsfElectronID,
29  ModelWeights = ["RecoEgamma/ElectronIdentification/data/LowPtElectrons/LowPtElectrons_ID_2021May17.root"],
30 )
31 
32 from Configuration.Eras.Modifier_fastSim_cff import fastSim
33 from Configuration.ProcessModifiers.run2_miniAOD_UL_cff import run2_miniAOD_UL
35 (fastSim & (run2_miniAOD_UL | run2_nanoAOD_106Xv2)).toModify(
36  lowPtGsfElectronID,
37  useGsfToTrack = True,
38 )