CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
particleFlow_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 #Geometry
4 # include used for track reconstruction
5 # note that tracking is redone since we need updated hits and they
6 # are not stored in the event!
10 
11 particleFlowTmp = particleFlow.clone()
12 
13 ## temporary for 12_1; EtaExtendedEles do not enter PF because ID/regression of EEEs are not ready yet
14 ## In 12_2, we expect to have EEE's ID/regression, then this switch can flip to True
15 particleFlowTmp.PFEGammaFiltersParameters.allowEEEinPF = cms.bool(False)
16 
17 # Thresholds for e/gamma PFID DNN
18 # Thresholds for electron: Sig_isolated+Sig_nonIsolated
19 particleFlowTmp.PFEGammaFiltersParameters.electronDnnThresholds = cms.PSet(
20  electronDnnHighPtBarrelThr = cms.double(0.068),
21  electronDnnHighPtEndcapThr = cms.double(0.056),
22  electronDnnLowPtThr = cms.double(0.075)
23  )
24 # Thresholds for electron: Bkg_nonIsolated
25 particleFlowTmp.PFEGammaFiltersParameters.electronDnnBkgThresholds = cms.PSet(
26  electronDnnBkgHighPtBarrelThr = cms.double(0.8),
27  electronDnnBkgHighPtEndcapThr = cms.double(0.75),
28  electronDnnBkgLowPtThr = cms.double(0.75)
29  )
30 # Thresholds for photons
31 particleFlowTmp.PFEGammaFiltersParameters.photonDnnThresholds = cms.PSet(
32  photonDnnBarrelThr = cms.double(0.22),
33  photonDnnEndcapThr = cms.double(0.35)
34 )
35 
36 from Configuration.Eras.Modifier_pf_badHcalMitigationOff_cff import pf_badHcalMitigationOff
37 pf_badHcalMitigationOff.toModify(particleFlowTmp.PFEGammaFiltersParameters,
38  electron_protectionsForBadHcal = dict(enableProtections = False),
39  photon_protectionsForBadHcal = dict(enableProtections = False))
40 
41 from Configuration.ProcessModifiers.egamma_lowPt_exclusive_cff import egamma_lowPt_exclusive
42 egamma_lowPt_exclusive.toModify(particleFlowTmp.PFEGammaFiltersParameters,photon_MinEt = 1.)
43 
44 # Activate Egamma PFID with DNN for Run3
45 from Configuration.Eras.Modifier_run3_common_cff import run3_common
46 run3_common.toModify(particleFlowTmp.PFEGammaFiltersParameters,
47  useElePFidDnn = True,
48  usePhotonPFidDnn = True
49 )