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 hOverEConeSize = cms.double(0.15),
45 posCalc_x0 = cms.double(0.89),
46 posCalc_t0_barl = cms.double(7.7),
47 minSCEtBarrel = cms.double(10.0),
48 minSCEtEndcap = cms.double(10.0),
49 maxHoverEBarrel = cms.double(0.5),
50 maxHoverEEndcap = cms.double(0.5),
51 ecalRecHitSumEtOffsetBarrel = cms.double(999999999),
52 ecalRecHitSumEtSlopeBarrel = cms.double(0.),
53 ecalRecHitSumEtOffsetEndcap = cms.double(999999999),
54 ecalRecHitSumEtSlopeEndcap = cms.double(0.),
55 hcalTowerSumEtOffsetBarrel = cms.double(999999999),
56 hcalTowerSumEtSlopeBarrel = cms.double(0.),
57 hcalTowerSumEtOffsetEndcap = cms.double(999999999),
58 hcalTowerSumEtSlopeEndcap = cms.double(0.),
59 nTrackSolidConeBarrel =cms.double(999999999),
60 nTrackSolidConeEndcap =cms.double(999999999),
61 nTrackHollowConeBarrel =cms.double(999999999),
62 nTrackHollowConeEndcap =cms.double(999999999),
63 trackPtSumSolidConeBarrel =cms.double(999999999),
64 trackPtSumSolidConeEndcap =cms.double(999999999),
65 trackPtSumHollowConeBarrel =cms.double(999999999),
66 trackPtSumHollowConeEndcap =cms.double(999999999),
67 sigmaIetaIetaCutBarrel=cms.double(999999999),
68 sigmaIetaIetaCutEndcap=cms.double(999999999),
69 posCalcParameters = cms.PSet( T0_barl = cms.double(7.4),
70 T0_endc = cms.double(6.3),
71 T0_endcPresh = cms.double(3.6),
72 LogWeighted = cms.bool(
True),
77 RecHitFlagToBeExcludedEB = cleanedHybridSuperClusters.RecHitFlagToBeExcluded,
78 RecHitSeverityToBeExcludedEB = cleanedHybridSuperClusters.RecHitSeverityToBeExcluded,
79 RecHitFlagToBeExcludedEE = multi5x5BasicClustersCleaned.RecHitFlagToBeExcluded,
80 RecHitSeverityToBeExcludedEE = cleanedHybridSuperClusters.RecHitSeverityToBeExcluded,
81 checkHcalStatus = cms.bool(
True),
84 photonsFromMultiCl = photons.clone(
85 photonProducer =
'photonCoreFromMultiCl'
88 islandPhotons = cms.EDProducer(
"PhotonProducer",
89 photonCoreProducer = cms.InputTag(
"islandPhotonCore"),
90 regressionWeightsFromDB = cms.bool(
True),
91 energyRegressionWeightsFileLocation = cms.string(
'/afs/cern.ch/user/b/bendavid/cmspublic/regweights/gbrph.root'),
92 energyRegressionWeightsDBLocation = cms.string(
'wgbrph'),
93 superClusterEnergyCorrFunction = cms.string(
"EcalClusterEnergyCorrection"),
94 superClusterEnergyErrorFunction = cms.string(
"EcalClusterEnergyUncertainty"),
95 superClusterCrackEnergyCorrFunction = cms.string(
"EcalClusterCrackCorrection"),
96 photonEcalEnergyCorrFunction = cms.string(
"EcalClusterEnergyCorrectionObjectSpecific"),
97 candidateP4type = cms.string(
"fromEcalEnergy"),
98 isolationSumsCalculatorSet = cms.PSet(isolationSumsCalculator),
99 mipVariableSet = cms.PSet(mipVariable),
100 usePrimaryVertex = cms.bool(
True),
101 primaryVertexProducer = cms.InputTag(
'offlinePrimaryVerticesWithBS'),
102 posCalc_t0_endcPresh = cms.double(3.6),
103 posCalc_logweight = cms.bool(
True),
104 posCalc_w0 = cms.double(4.2),
105 hbheInstance = cms.string(
''),
106 posCalc_t0_endc = cms.double(6.3),
107 barrelEcalHits = cms.InputTag(
"ecalRecHit",
"EcalRecHitsEB"),
108 hbheModule = cms.string(
'hbhereco'),
109 endcapEcalHits = cms.InputTag(
"ecalRecHit",
"EcalRecHitsEE"),
110 hcalTowers = cms.InputTag(
"towerMaker"),
111 runMIPTagger = cms.bool(
True),
112 highEt = cms.double(100.),
113 minR9Barrel = cms.double(10.0),
114 minR9Endcap = cms.double(10.0),
115 hOverEConeSize = cms.double(0.15),
116 posCalc_x0 = cms.double(0.89),
117 posCalc_t0_barl = cms.double(7.7),
118 minSCEtBarrel = cms.double(5.0),
119 minSCEtEndcap = cms.double(15.0),
120 maxHoverEBarrel = cms.double(0.99),
121 maxHoverEEndcap = cms.double(0.5),
122 ecalRecHitSumEtOffsetBarrel = cms.double(999999999),
123 ecalRecHitSumEtSlopeBarrel = cms.double(0.),
124 ecalRecHitSumEtOffsetEndcap = cms.double(999999999),
125 ecalRecHitSumEtSlopeEndcap = cms.double(0.),
126 hcalTowerSumEtOffsetBarrel = cms.double(999999999),
127 hcalTowerSumEtSlopeBarrel = cms.double(0.),
128 hcalTowerSumEtOffsetEndcap = cms.double(999999999),
129 hcalTowerSumEtSlopeEndcap = cms.double(0.),
130 nTrackSolidConeBarrel =cms.double(999999999),
131 nTrackSolidConeEndcap =cms.double(999999999),
132 nTrackHollowConeBarrel =cms.double(999999999),
133 nTrackHollowConeEndcap =cms.double(999999999),
134 trackPtSumSolidConeBarrel =cms.double(999999999),
135 trackPtSumSolidConeEndcap =cms.double(999999999),
136 trackPtSumHollowConeBarrel =cms.double(999999999),
137 trackPtSumHollowConeEndcap =cms.double(999999999),
138 sigmaIetaIetaCutBarrel=cms.double(999999999),
139 sigmaIetaIetaCutEndcap=cms.double(999999999),
140 posCalcParameters = cms.PSet( T0_barl = cms.double(7.4),
141 T0_endc = cms.double(6.3),
142 T0_endcPresh = cms.double(3.6),
143 LogWeighted = cms.bool(
True),
144 W0 = cms.double(4.2),
145 X0 = cms.double(0.89)
148 RecHitFlagToBeExcludedEB = cleanedHybridSuperClusters.RecHitFlagToBeExcluded,
149 RecHitSeverityToBeExcludedEB = cleanedHybridSuperClusters.RecHitSeverityToBeExcluded,
150 RecHitFlagToBeExcludedEE = multi5x5BasicClustersCleaned.RecHitFlagToBeExcluded,
151 RecHitSeverityToBeExcludedEE = cleanedHybridSuperClusters.RecHitSeverityToBeExcluded,
154 from Configuration.ProcessModifiers.egamma_lowPt_exclusive_cff
import egamma_lowPt_exclusive
155 egamma_lowPt_exclusive.toModify(photons,