CMS 3D CMS Logo

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 # Thresholds for e/gamma PFID DNN
14 # Thresholds for electron: Sig_isolated+Sig_nonIsolated
15 particleFlowTmp.PFEGammaFiltersParameters.electronDnnThresholds = cms.PSet(
16  electronDnnHighPtBarrelThr = cms.double(0.068),
17  electronDnnHighPtEndcapThr = cms.double(0.056),
18  electronDnnLowPtThr = cms.double(0.075),
19  electronDnnExtEta1Thr = cms.double(0.113604),
20  electronDnnExtEta2Thr = cms.double(0.118044)
21  )
22 # Thresholds for electron: Bkg_nonIsolated
23 particleFlowTmp.PFEGammaFiltersParameters.electronDnnBkgThresholds = cms.PSet(
24  electronDnnBkgHighPtBarrelThr = cms.double(0.8),
25  electronDnnBkgHighPtEndcapThr = cms.double(0.75),
26  electronDnnBkgLowPtThr = cms.double(0.75),
27  electronDnnBkgExtEta1Thr = cms.double(0.7),
28  electronDnnBkgExtEta2Thr = cms.double(0.85)
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 )