1 import FWCore.ParameterSet.Config
as cms
12 gedPhotonsTmp = RecoEgamma.EgammaPhotonProducers.gedPhotons_cfi.gedPhotons.clone(
13 photonProducer =
"gedPhotonCore",
14 candidateP4type =
"fromEcalEnergy",
15 outputPhotonCollection =
"",
16 reconstructionStep =
"tmp",
19 modelsFiles = [
"RecoEgamma/PhotonIdentification/data/Photon_PFID_dnn/Run3Summer21_120X/EB/barrel_modelDNN.pb",
20 "RecoEgamma/PhotonIdentification/data/Photon_PFID_dnn/Run3Summer21_120X/EE/endcap_modelDNN.pb"],
22 "RecoEgamma/PhotonIdentification/data/Photon_PFID_dnn/Run3Summer21_120X/EB/barrel_scaler.txt",
23 "RecoEgamma/PhotonIdentification/data/Photon_PFID_dnn/Run3Summer21_120X/EE/endcap_scaler.txt"]
26 del gedPhotonsTmp.regressionConfig
28 gedPhotonTaskTmp = cms.Task(gedPhotonCore, gedPhotonsTmp)
29 gedPhotonSequenceTmp = cms.Sequence(gedPhotonTaskTmp)
31 gedPhotons = RecoEgamma.EgammaPhotonProducers.gedPhotons_cfi.gedPhotons.clone(
32 photonProducer =
"gedPhotonsTmp",
33 outputPhotonCollection =
"",
34 reconstructionStep =
"final",
35 pfECALClusIsolation = cms.InputTag(
"photonEcalPFClusterIsolationProducer"),
36 pfHCALClusIsolation = cms.InputTag(
"photonHcalPFClusterIsolationProducer"),
38 chargedHadronIso = cms.InputTag(
"photonIDValueMaps",
"phoChargedIsolation"),
39 neutralHadronIso = cms.InputTag(
"photonIDValueMaps",
"phoNeutralHadronIsolation"),
40 photonIso = cms.InputTag(
"photonIDValueMaps",
"phoPhotonIsolation"),
41 chargedHadronWorstVtxIso = cms.InputTag(
"photonIDValueMaps",
"phoWorstChargedIsolation"),
42 chargedHadronWorstVtxGeomVetoIso = cms.InputTag(
"photonIDValueMaps",
"phoWorstChargedIsolationConeVeto"),
43 chargedHadronPFPVIso = cms.InputTag(
"egmPhotonIsolationCITK:h+-DR030-"),
46 gedPhotonTask = cms.Task(gedPhotons)
47 gedPhotonSequence = cms.Sequence(gedPhotonTask)
49 from Configuration.ProcessModifiers.egamma_lowPt_exclusive_cff
import egamma_lowPt_exclusive
50 egamma_lowPt_exclusive.toModify(gedPhotons,
53 egamma_lowPt_exclusive.toModify(gedPhotonsTmp,
59 from Configuration.Eras.Modifier_run3_common_cff
import run3_common
60 run3_common.toModify(gedPhotonsTmp.PhotonDNNPFid,