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 maxHcalRecHitSeverity = egammaHBHERecHit.maxHcalRecHitSeverity,
67 hcalRun2EffDepth = cms.bool(
False),
68 posCalc_x0 = cms.double(0.89),
69 posCalc_t0_barl = cms.double(7.7),
70 minSCEtBarrel = cms.double(10.0),
71 minSCEtEndcap = cms.double(10.0),
72 maxHoverEBarrel = cms.double(0.5),
73 maxHoverEEndcap = cms.double(0.5),
74 ecalRecHitSumEtOffsetBarrel = cms.double(999999999),
75 ecalRecHitSumEtSlopeBarrel = cms.double(0.),
76 ecalRecHitSumEtOffsetEndcap = cms.double(999999999),
77 ecalRecHitSumEtSlopeEndcap = cms.double(0.),
78 hcalRecHitSumEtOffsetBarrel = cms.double(999999999),
79 hcalRecHitSumEtSlopeBarrel = cms.double(0.),
80 hcalRecHitSumEtOffsetEndcap = cms.double(999999999),
81 hcalRecHitSumEtSlopeEndcap = cms.double(0.),
82 nTrackSolidConeBarrel =cms.double(999999999),
83 nTrackSolidConeEndcap =cms.double(999999999),
84 nTrackHollowConeBarrel =cms.double(999999999),
85 nTrackHollowConeEndcap =cms.double(999999999),
86 trackPtSumSolidConeBarrel =cms.double(999999999),
87 trackPtSumSolidConeEndcap =cms.double(999999999),
88 trackPtSumHollowConeBarrel =cms.double(999999999),
89 trackPtSumHollowConeEndcap =cms.double(999999999),
90 sigmaIetaIetaCutBarrel=cms.double(999999999),
91 sigmaIetaIetaCutEndcap=cms.double(999999999),
92 posCalcParameters = cms.PSet( T0_barl = cms.double(7.4),
93 T0_endc = cms.double(6.3),
94 T0_endcPresh = cms.double(3.6),
95 LogWeighted = cms.bool(
True),
100 RecHitFlagToBeExcludedEB = cleanedHybridSuperClusters.RecHitFlagToBeExcluded,
101 RecHitSeverityToBeExcludedEB = cleanedHybridSuperClusters.RecHitSeverityToBeExcluded,
102 RecHitFlagToBeExcludedEE = multi5x5BasicClustersCleaned.RecHitFlagToBeExcluded,
103 RecHitSeverityToBeExcludedEE = cleanedHybridSuperClusters.RecHitSeverityToBeExcluded,
104 checkHcalStatus = cms.bool(
True),
105 PhotonDNNPFid = cms.PSet(
106 enabled = cms.bool(
False),
107 inputTensorName = cms.string(
"FirstLayer_input"),
108 outputTensorName = cms.string(
"sequential/FinalLayer/Sigmoid"),
109 modelsFiles = cms.vstring(
110 'RecoEgamma/PhotonIdentification/data/Photon_PFID_dnn/v1/EB/EB_modelDNN.pb',
111 'RecoEgamma/PhotonIdentification/data/Photon_PFID_dnn/v1/EE/EE_modelDNN.pb'),
112 scalersFiles = cms.vstring(
113 'RecoEgamma/PhotonIdentification/data/Photon_PFID_dnn/v1/EB/EB_scaler.txt',
114 'RecoEgamma/PhotonIdentification/data/Photon_PFID_dnn/v1/EE/EE_scaler.txt' 116 outputDim = cms.vuint32(1,1),
117 useEBModelInGap = cms.bool(
True)
120 pfECALClusIsolCfg = cms.PSet(
121 pfClusterProducer = egammaEcalPFClusterIsolationProducerRecoPhoton.pfClusterProducer,
122 drMax = egammaEcalPFClusterIsolationProducerRecoPhoton.drMax,
123 drVetoBarrel = egammaEcalPFClusterIsolationProducerRecoPhoton.drVetoBarrel,
124 drVetoEndcap = egammaEcalPFClusterIsolationProducerRecoPhoton.drVetoEndcap,
125 etaStripBarrel = egammaEcalPFClusterIsolationProducerRecoPhoton.etaStripBarrel,
126 etaStripEndcap = egammaEcalPFClusterIsolationProducerRecoPhoton.etaStripEndcap,
127 energyBarrel = egammaEcalPFClusterIsolationProducerRecoPhoton.energyBarrel,
128 energyEndcap = egammaEcalPFClusterIsolationProducerRecoPhoton.energyEndcap
131 pfHCALClusIsolCfg = cms.PSet(
133 pfClusterProducerHCAL = egammaHcalPFClusterIsolationProducerRecoPhoton.pfClusterProducerHCAL,
134 useHF = egammaHcalPFClusterIsolationProducerRecoPhoton.useHF,
135 pfClusterProducerHFEM = egammaHcalPFClusterIsolationProducerRecoPhoton.pfClusterProducerHFEM,
136 pfClusterProducerHFHAD = egammaHcalPFClusterIsolationProducerRecoPhoton.pfClusterProducerHFHAD,
137 drMax = egammaHcalPFClusterIsolationProducerRecoPhoton.drMax,
138 drVetoBarrel = egammaHcalPFClusterIsolationProducerRecoPhoton.drVetoBarrel,
139 drVetoEndcap = egammaHcalPFClusterIsolationProducerRecoPhoton.drVetoEndcap,
140 etaStripBarrel = egammaHcalPFClusterIsolationProducerRecoPhoton.etaStripBarrel,
141 etaStripEndcap = egammaHcalPFClusterIsolationProducerRecoPhoton.etaStripEndcap,
142 energyBarrel = egammaHcalPFClusterIsolationProducerRecoPhoton.energyBarrel,
143 energyEndcap = egammaHcalPFClusterIsolationProducerRecoPhoton.energyEndcap,
144 useEt = egammaHcalPFClusterIsolationProducerRecoPhoton.useEt,