1 import FWCore.ParameterSet.Config
as cms
10 photons = cms.EDProducer(
"GEDPhotonProducer",
11 photonProducer = cms.InputTag(
"photonCore"),
12 reconstructionStep = cms.string(
"tmp"),
13 outputPhotonCollection = cms.string(
""),
14 pfEgammaCandidates = cms.InputTag(
""),
15 valueMapPhotons = cms.string(
""),
17 regressionWeightsFromDB = cms.bool(
True),
18 energyRegressionWeightsFileLocation = cms.string(
'/afs/cern.ch/user/b/bendavid/cmspublic/regweights/gbrph.root'),
19 energyRegressionWeightsDBLocation = cms.string(
'wgbrph'),
20 superClusterEnergyCorrFunction = cms.string(
"EcalClusterEnergyCorrection"),
21 superClusterEnergyErrorFunction = cms.string(
"EcalClusterEnergyUncertainty"),
22 superClusterCrackEnergyCorrFunction = cms.string(
"EcalClusterCrackCorrection"),
23 photonEcalEnergyCorrFunction = cms.string(
"EcalClusterEnergyCorrectionObjectSpecific"),
25 candidateP4type = cms.string(
"fromEcalEnergy"),
26 isolationSumsCalculatorSet = cms.PSet(isolationSumsCalculator),
27 mipVariableSet = cms.PSet(mipVariable),
28 usePrimaryVertex = cms.bool(
True),
29 primaryVertexProducer = cms.InputTag(
'offlinePrimaryVerticesWithBS'),
30 posCalc_t0_endcPresh = cms.double(3.6),
31 posCalc_logweight = cms.bool(
True),
32 posCalc_w0 = cms.double(4.2),
33 hbheInstance = cms.string(
''),
34 posCalc_t0_endc = cms.double(6.3),
35 barrelEcalHits = cms.InputTag(
"ecalRecHit",
"EcalRecHitsEB"),
36 hbheModule = cms.string(
'hbhereco'),
37 endcapEcalHits = cms.InputTag(
"ecalRecHit",
"EcalRecHitsEE"),
38 preshowerHits = cms.InputTag(
"ecalPreshowerRecHit",
"EcalRecHitsES"),
39 hcalTowers = cms.InputTag(
"towerMaker"),
40 runMIPTagger = cms.bool(
True),
41 highEt = cms.double(100.),
42 minR9Barrel = cms.double(0.94),
43 minR9Endcap = cms.double(0.95),
44 multThresEB = cms.double(1.00),
45 multThresEE = cms.double(1.25),
46 hOverEConeSize = cms.double(0.15),
47 posCalc_x0 = cms.double(0.89),
48 posCalc_t0_barl = cms.double(7.7),
49 minSCEtBarrel = cms.double(10.0),
50 minSCEtEndcap = cms.double(10.0),
51 maxHoverEBarrel = cms.double(0.5),
52 maxHoverEEndcap = cms.double(0.5),
53 ecalRecHitSumEtOffsetBarrel = cms.double(999999999),
54 ecalRecHitSumEtSlopeBarrel = cms.double(0.),
55 ecalRecHitSumEtOffsetEndcap = cms.double(999999999),
56 ecalRecHitSumEtSlopeEndcap = cms.double(0.),
57 hcalTowerSumEtOffsetBarrel = cms.double(999999999),
58 hcalTowerSumEtSlopeBarrel = cms.double(0.),
59 hcalTowerSumEtOffsetEndcap = cms.double(999999999),
60 hcalTowerSumEtSlopeEndcap = cms.double(0.),
61 nTrackSolidConeBarrel =cms.double(999999999),
62 nTrackSolidConeEndcap =cms.double(999999999),
63 nTrackHollowConeBarrel =cms.double(999999999),
64 nTrackHollowConeEndcap =cms.double(999999999),
65 trackPtSumSolidConeBarrel =cms.double(999999999),
66 trackPtSumSolidConeEndcap =cms.double(999999999),
67 trackPtSumHollowConeBarrel =cms.double(999999999),
68 trackPtSumHollowConeEndcap =cms.double(999999999),
69 sigmaIetaIetaCutBarrel=cms.double(999999999),
70 sigmaIetaIetaCutEndcap=cms.double(999999999),
71 posCalcParameters = cms.PSet( T0_barl = cms.double(7.4),
72 T0_endc = cms.double(6.3),
73 T0_endcPresh = cms.double(3.6),
74 LogWeighted = cms.bool(
True),
79 RecHitFlagToBeExcludedEB = cleanedHybridSuperClusters.RecHitFlagToBeExcluded,
80 RecHitSeverityToBeExcludedEB = cleanedHybridSuperClusters.RecHitSeverityToBeExcluded,
81 RecHitFlagToBeExcludedEE = multi5x5BasicClustersCleaned.RecHitFlagToBeExcluded,
82 RecHitSeverityToBeExcludedEE = cleanedHybridSuperClusters.RecHitSeverityToBeExcluded,
83 checkHcalStatus = cms.bool(
True),
86 photonsFromMultiCl = photons.clone(
87 photonProducer =
'photonCoreFromMultiCl'
90 islandPhotons = cms.EDProducer(
"PhotonProducer",
91 photonCoreProducer = cms.InputTag(
"islandPhotonCore"),
92 regressionWeightsFromDB = cms.bool(
True),
93 energyRegressionWeightsFileLocation = cms.string(
'/afs/cern.ch/user/b/bendavid/cmspublic/regweights/gbrph.root'),
94 energyRegressionWeightsDBLocation = cms.string(
'wgbrph'),
95 superClusterEnergyCorrFunction = cms.string(
"EcalClusterEnergyCorrection"),
96 superClusterEnergyErrorFunction = cms.string(
"EcalClusterEnergyUncertainty"),
97 superClusterCrackEnergyCorrFunction = cms.string(
"EcalClusterCrackCorrection"),
98 photonEcalEnergyCorrFunction = cms.string(
"EcalClusterEnergyCorrectionObjectSpecific"),
99 candidateP4type = cms.string(
"fromEcalEnergy"),
100 isolationSumsCalculatorSet = cms.PSet(isolationSumsCalculator),
101 mipVariableSet = cms.PSet(mipVariable),
102 usePrimaryVertex = cms.bool(
True),
103 primaryVertexProducer = cms.InputTag(
'offlinePrimaryVerticesWithBS'),
104 posCalc_t0_endcPresh = cms.double(3.6),
105 posCalc_logweight = cms.bool(
True),
106 posCalc_w0 = cms.double(4.2),
107 hbheInstance = cms.string(
''),
108 posCalc_t0_endc = cms.double(6.3),
109 barrelEcalHits = cms.InputTag(
"ecalRecHit",
"EcalRecHitsEB"),
110 hbheModule = cms.string(
'hbhereco'),
111 endcapEcalHits = cms.InputTag(
"ecalRecHit",
"EcalRecHitsEE"),
112 hcalTowers = cms.InputTag(
"towerMaker"),
113 runMIPTagger = cms.bool(
True),
114 highEt = cms.double(100.),
115 minR9Barrel = cms.double(10.0),
116 minR9Endcap = cms.double(10.0),
117 hOverEConeSize = cms.double(0.15),
118 posCalc_x0 = cms.double(0.89),
119 posCalc_t0_barl = cms.double(7.7),
120 minSCEtBarrel = cms.double(5.0),
121 minSCEtEndcap = cms.double(15.0),
122 maxHoverEBarrel = cms.double(0.99),
123 maxHoverEEndcap = cms.double(0.5),
124 ecalRecHitSumEtOffsetBarrel = cms.double(999999999),
125 ecalRecHitSumEtSlopeBarrel = cms.double(0.),
126 ecalRecHitSumEtOffsetEndcap = cms.double(999999999),
127 ecalRecHitSumEtSlopeEndcap = cms.double(0.),
128 hcalTowerSumEtOffsetBarrel = cms.double(999999999),
129 hcalTowerSumEtSlopeBarrel = cms.double(0.),
130 hcalTowerSumEtOffsetEndcap = cms.double(999999999),
131 hcalTowerSumEtSlopeEndcap = cms.double(0.),
132 nTrackSolidConeBarrel =cms.double(999999999),
133 nTrackSolidConeEndcap =cms.double(999999999),
134 nTrackHollowConeBarrel =cms.double(999999999),
135 nTrackHollowConeEndcap =cms.double(999999999),
136 trackPtSumSolidConeBarrel =cms.double(999999999),
137 trackPtSumSolidConeEndcap =cms.double(999999999),
138 trackPtSumHollowConeBarrel =cms.double(999999999),
139 trackPtSumHollowConeEndcap =cms.double(999999999),
140 sigmaIetaIetaCutBarrel=cms.double(999999999),
141 sigmaIetaIetaCutEndcap=cms.double(999999999),
142 posCalcParameters = cms.PSet( T0_barl = cms.double(7.4),
143 T0_endc = cms.double(6.3),
144 T0_endcPresh = cms.double(3.6),
145 LogWeighted = cms.bool(
True),
146 W0 = cms.double(4.2),
147 X0 = cms.double(0.89)
150 RecHitFlagToBeExcludedEB = cleanedHybridSuperClusters.RecHitFlagToBeExcluded,
151 RecHitSeverityToBeExcludedEB = cleanedHybridSuperClusters.RecHitSeverityToBeExcluded,
152 RecHitFlagToBeExcludedEE = multi5x5BasicClustersCleaned.RecHitFlagToBeExcluded,
153 RecHitSeverityToBeExcludedEE = cleanedHybridSuperClusters.RecHitSeverityToBeExcluded,
156 from Configuration.ProcessModifiers.egamma_lowPt_exclusive_cff
import egamma_lowPt_exclusive
157 egamma_lowPt_exclusive.toModify(photons,