1 import FWCore.ParameterSet.Config
as cms
12 from RecoEgamma.EgammaIsolationAlgos.egammaHBHERecHitThreshold_cff
import egammaHBHERecHit
14 from RecoEgamma.EgammaIsolationAlgos.egammaEcalPFClusterIsolationProducerRecoPhoton_cfi
import egammaEcalPFClusterIsolationProducerRecoPhoton
15 from RecoEgamma.EgammaIsolationAlgos.egammaHcalPFClusterIsolationProducerRecoPhoton_cfi
import egammaHcalPFClusterIsolationProducerRecoPhoton
20 gedPhotons = cms.EDProducer(
"GEDPhotonProducer",
21 photonProducer = cms.InputTag(
"gedPhotonsTmp"),
22 reconstructionStep = cms.string(
"tmp"),
24 regressionWeightsFromDB = cms.bool(
True),
25 energyRegressionWeightsFileLocation = cms.string(
'/afs/cern.ch/user/b/bendavid/cmspublic/regweights/gbrph.root'),
26 energyRegressionWeightsDBLocation = cms.string(
'wgbrph'),
28 useRegression = cms.bool(
True),
29 regressionConfig = regressionModifier.clone(),
30 superClusterEnergyCorrFunction = cms.string(
"EcalClusterEnergyCorrection"),
31 superClusterEnergyErrorFunction = cms.string(
"EcalClusterEnergyUncertainty"),
32 superClusterCrackEnergyCorrFunction = cms.string(
"EcalClusterCrackCorrection"),
33 photonEcalEnergyCorrFunction = cms.string(
"EcalClusterEnergyCorrectionObjectSpecific"),
34 pfEgammaCandidates = cms.InputTag(
"particleFlowEGamma"),
35 pfCandidates = cms.InputTag(
"particleFlowTmp"),
36 outputPhotonCollection = cms.string(
""),
37 valueMapPhotons = cms.string(
"valMapPFEgammaCandToPhoton"),
39 candidateP4type = cms.string(
"fromRefinedSCRegression"),
40 isolationSumsCalculatorSet = cms.PSet(isolationSumsCalculator),
41 PFIsolationCalculatorSet = cms.PSet(pfIsolationCalculator),
42 mipVariableSet = cms.PSet(mipVariable),
43 mvaBasedHaloVariableSet = cms.PSet(mvaHaloVariable),
44 usePrimaryVertex = cms.bool(
True),
45 primaryVertexProducer = cms.InputTag(
'offlinePrimaryVerticesWithBS'),
46 posCalc_t0_endcPresh = cms.double(3.6),
47 posCalc_logweight = cms.bool(
True),
48 posCalc_w0 = cms.double(4.2),
49 hbheInstance = cms.string(
''),
50 posCalc_t0_endc = cms.double(6.3),
51 barrelEcalHits = cms.InputTag(
"ecalRecHit",
"EcalRecHitsEB"),
52 hbheModule = cms.string(
'hbhereco'),
53 endcapEcalHits = cms.InputTag(
"ecalRecHit",
"EcalRecHitsEE"),
54 preshowerHits = cms.InputTag(
"ecalPreshowerRecHit",
"EcalRecHitsES"),
55 runMIPTagger = cms.bool(
True),
56 runMVABasedHaloTagger = cms.bool(
True),
57 highEt = cms.double(100.),
58 minR9Barrel = cms.double(0.94),
59 minR9Endcap = cms.double(0.95),
60 multThresEB = cms.double(1.00),
61 multThresEE = cms.double(1.25),
62 hOverEConeSize = cms.double(0.15),
63 hbheRecHits = egammaHBHERecHit.hbheRecHits,
64 recHitEThresholdHB = egammaHBHERecHit.recHitEThresholdHB,
65 recHitEThresholdHE = egammaHBHERecHit.recHitEThresholdHE,
66 usePFThresholdsFromDB = egammaHBHERecHit.usePFThresholdsFromDB,
67 maxHcalRecHitSeverity = egammaHBHERecHit.maxHcalRecHitSeverity,
68 hcalRun2EffDepth = cms.bool(
False),
69 posCalc_x0 = cms.double(0.89),
70 posCalc_t0_barl = cms.double(7.7),
71 minSCEtBarrel = cms.double(10.0),
72 minSCEtEndcap = cms.double(10.0),
73 maxHoverEBarrel = cms.double(0.5),
74 maxHoverEEndcap = cms.double(0.5),
75 ecalRecHitSumEtOffsetBarrel = cms.double(999999999),
76 ecalRecHitSumEtSlopeBarrel = cms.double(0.),
77 ecalRecHitSumEtOffsetEndcap = cms.double(999999999),
78 ecalRecHitSumEtSlopeEndcap = cms.double(0.),
79 hcalRecHitSumEtOffsetBarrel = cms.double(999999999),
80 hcalRecHitSumEtSlopeBarrel = cms.double(0.),
81 hcalRecHitSumEtOffsetEndcap = cms.double(999999999),
82 hcalRecHitSumEtSlopeEndcap = cms.double(0.),
83 nTrackSolidConeBarrel =cms.double(999999999),
84 nTrackSolidConeEndcap =cms.double(999999999),
85 nTrackHollowConeBarrel =cms.double(999999999),
86 nTrackHollowConeEndcap =cms.double(999999999),
87 trackPtSumSolidConeBarrel =cms.double(999999999),
88 trackPtSumSolidConeEndcap =cms.double(999999999),
89 trackPtSumHollowConeBarrel =cms.double(999999999),
90 trackPtSumHollowConeEndcap =cms.double(999999999),
91 sigmaIetaIetaCutBarrel=cms.double(999999999),
92 sigmaIetaIetaCutEndcap=cms.double(999999999),
93 posCalcParameters = cms.PSet( T0_barl = cms.double(7.4),
94 T0_endc = cms.double(6.3),
95 T0_endcPresh = cms.double(3.6),
96 LogWeighted = cms.bool(
True),
101 RecHitFlagToBeExcludedEB = cleanedHybridSuperClusters.RecHitFlagToBeExcluded,
102 RecHitSeverityToBeExcludedEB = cleanedHybridSuperClusters.RecHitSeverityToBeExcluded,
103 RecHitFlagToBeExcludedEE = multi5x5BasicClustersCleaned.RecHitFlagToBeExcluded,
104 RecHitSeverityToBeExcludedEE = cleanedHybridSuperClusters.RecHitSeverityToBeExcluded,
105 checkHcalStatus = cms.bool(
True),
106 PhotonDNNPFid = cms.PSet(
107 enabled = cms.bool(
False),
108 inputTensorName = cms.string(
"FirstLayer_input"),
109 outputTensorName = cms.string(
"sequential/FinalLayer/Sigmoid"),
110 modelsFiles = cms.vstring(
111 'RecoEgamma/PhotonIdentification/data/Photon_PFID_dnn/v1/EB/EB_modelDNN.pb',
112 'RecoEgamma/PhotonIdentification/data/Photon_PFID_dnn/v1/EE/EE_modelDNN.pb'),
113 scalersFiles = cms.vstring(
114 'RecoEgamma/PhotonIdentification/data/Photon_PFID_dnn/v1/EB/EB_scaler.txt',
115 'RecoEgamma/PhotonIdentification/data/Photon_PFID_dnn/v1/EE/EE_scaler.txt' 117 outputDim = cms.vuint32(1,1),
118 useEBModelInGap = cms.bool(
True)
121 pfECALClusIsolCfg = cms.PSet(
122 pfClusterProducer = egammaEcalPFClusterIsolationProducerRecoPhoton.pfClusterProducer,
123 drMax = egammaEcalPFClusterIsolationProducerRecoPhoton.drMax,
124 drVetoBarrel = egammaEcalPFClusterIsolationProducerRecoPhoton.drVetoBarrel,
125 drVetoEndcap = egammaEcalPFClusterIsolationProducerRecoPhoton.drVetoEndcap,
126 etaStripBarrel = egammaEcalPFClusterIsolationProducerRecoPhoton.etaStripBarrel,
127 etaStripEndcap = egammaEcalPFClusterIsolationProducerRecoPhoton.etaStripEndcap,
128 energyBarrel = egammaEcalPFClusterIsolationProducerRecoPhoton.energyBarrel,
129 energyEndcap = egammaEcalPFClusterIsolationProducerRecoPhoton.energyEndcap
132 pfHCALClusIsolCfg = cms.PSet(
134 pfClusterProducerHCAL = egammaHcalPFClusterIsolationProducerRecoPhoton.pfClusterProducerHCAL,
135 useHF = egammaHcalPFClusterIsolationProducerRecoPhoton.useHF,
136 pfClusterProducerHFEM = egammaHcalPFClusterIsolationProducerRecoPhoton.pfClusterProducerHFEM,
137 pfClusterProducerHFHAD = egammaHcalPFClusterIsolationProducerRecoPhoton.pfClusterProducerHFHAD,
138 drMax = egammaHcalPFClusterIsolationProducerRecoPhoton.drMax,
139 drVetoBarrel = egammaHcalPFClusterIsolationProducerRecoPhoton.drVetoBarrel,
140 drVetoEndcap = egammaHcalPFClusterIsolationProducerRecoPhoton.drVetoEndcap,
141 etaStripBarrel = egammaHcalPFClusterIsolationProducerRecoPhoton.etaStripBarrel,
142 etaStripEndcap = egammaHcalPFClusterIsolationProducerRecoPhoton.etaStripEndcap,
143 energyBarrel = egammaHcalPFClusterIsolationProducerRecoPhoton.energyBarrel,
144 energyEndcap = egammaHcalPFClusterIsolationProducerRecoPhoton.energyEndcap,
145 useEt = egammaHcalPFClusterIsolationProducerRecoPhoton.useEt,