1 import FWCore.ParameterSet.Config
as cms
3 particleFlowTmp = cms.EDProducer(
"PFProducer",
6 blocks = cms.InputTag(
"particleFlowBlock"),
9 muons = cms.InputTag(
"muons1stStep"),
10 postMuonCleaning = cms.bool(
True),
13 vertexCollection = cms.InputTag(
"offlinePrimaryVertices"),
14 useVerticesForNeutral = cms.bool(
True),
17 algoType = cms.uint32(0),
20 verbose = cms.untracked.bool(
False),
21 debug = cms.untracked.bool(
False),
24 useHO = cms.bool(
True),
27 usePFElectrons = cms.bool(
False),
28 pf_electron_output_col=cms.string(
'electrons'),
29 pf_electronID_mvaWeightFile = cms.string(
'RecoParticleFlow/PFProducer/data/MVAnalysis_BDT.weights_PfElectrons23Jan_IntToFloat.txt'),
30 pf_electron_mvaCut = cms.double(-0.1),
33 usePFPhotons = cms.bool(
False),
34 usePhotonReg=cms.bool(
False),
35 useRegressionFromDB=cms.bool(
True),
36 pf_convID_mvaWeightFile = cms.string(
'RecoParticleFlow/PFProducer/data/MVAnalysis_BDT.weights_pfConversionAug0411.txt'),
37 pf_conv_mvaCut=cms.double(0.0),
38 pf_locC_mvaWeightFile=cms.string(
'RecoParticleFlow/PFProducer/data/TMVARegression_BDTG_PFClusterLCorr_14Dec2011.root'),
39 pf_GlobC_mvaWeightFile=cms.string(
'RecoParticleFlow/PFProducer/data/TMVARegression_BDTG_PFGlobalCorr_14Dec2011.root'),
40 pf_Res_mvaWeightFile=cms.string(
'RecoParticleFlow/PFProducer/data/TMVARegression_BDTG_PFRes_14Dec2011.root'),
41 X0_Map=cms.string(
'RecoParticleFlow/PFProducer/data/allX0histos.root'),
42 sumPtTrackIsoForPhoton=cms.double(2.0),
43 sumPtTrackIsoSlopeForPhoton=cms.double(0.001),
45 useEGammaFilters = cms.bool(
True),
46 useProtectionsForJetMET = cms.bool(
True),
48 electron_iso_pt = cms.double(10.0),
49 electron_iso_mva_barrel = cms.double( -0.1875),
50 electron_iso_mva_endcap = cms.double( -0.1075),
51 electron_iso_combIso_barrel = cms.double(10.0),
52 electron_iso_combIso_endcap = cms.double(10.0),
53 electron_noniso_mvaCut = cms.double(-0.1),
54 electron_missinghits = cms.uint32(1),
55 isolatedElectronID_mvaWeightFile = cms.string(
'RecoEgamma/ElectronIdentification/data/TMVA_BDTSimpleCat_17Feb2011.weights.xml'),
58 electron_protectionsForJetMET = cms.PSet(
59 maxNtracks = cms.double(3.0),
60 maxHcalE = cms.double(10.0),
61 maxTrackPOverEele = cms.double(1.0),
62 maxE = cms.double(50.0),
63 maxEleHcalEOverEcalE = cms.double(0.1),
64 maxEcalEOverPRes = cms.double(0.2),
65 maxEeleOverPoutRes = cms.double(0.5),
66 maxHcalEOverP = cms.double(1.0),
67 maxHcalEOverEcalE = cms.double(0.1),
68 maxEcalEOverP_1 = cms.double(0.5),
69 maxEcalEOverP_2 = cms.double(0.2),
70 maxEeleOverPout = cms.double(0.2),
71 maxDPhiIN = cms.double(0.1)
73 electron_protectionsForBadHcal = cms.PSet(
74 enableProtections = cms.bool(
False),
75 full5x5_sigmaIetaIeta = cms.vdouble(0.0106, 0.0387),
76 eInvPInv = cms.vdouble(0.184, 0.0721),
77 dEta = cms.vdouble(0.0032*2, 0.00632*2),
78 dPhi = cms.vdouble(0.0547, 0.0394),
81 photon_MinEt = cms.double(10.),
82 photon_combIso = cms.double(10.),
83 photon_HoE = cms.double(0.05),
84 photon_SigmaiEtaiEta_barrel = cms.double(0.0125),
85 photon_SigmaiEtaiEta_endcap = cms.double(0.034),
86 photon_protectionsForBadHcal = cms.PSet(
87 enableProtections = cms.bool(
False),
88 solidConeTrkIsoOffset = cms.double(10.),
89 solidConeTrkIsoSlope = cms.double(0.3),
93 photon_protectionsForJetMET = cms.PSet(
94 sumPtTrackIso = cms.double(4.0),
95 sumPtTrackIsoSlope = cms.double(0.001)
97 PFEGammaCandidates = cms.InputTag(
"particleFlowEGamma"),
98 GedElectronValueMap = cms.InputTag(
"gedGsfElectronsTmp"),
99 GedPhotonValueMap = cms.InputTag(
"gedPhotonsTmp",
"valMapPFEgammaCandToPhoton"),
104 pf_electronID_crackCorrection = cms.bool(
False),
105 usePFSCEleCalib = cms.bool(
True),
107 calibPFSCEle_Fbrem_barrel = cms.vdouble(0.6, 6,
108 -0.0255975, 0.0576727, 0.975442, -0.000546394, 1.26147,
110 -0.02025, 0.04537, 0.9728, -0.0008962, 1.172),
111 calibPFSCEle_Fbrem_endcap = cms.vdouble(0.9, 6.5,
112 -0.0692932, 0.101776, 0.995338, -0.00236548, 0.874998,
114 -0.0750184, 0.147000, 0.923165, 0.000474665, 1.10782),
115 calibPFSCEle_barrel = cms.vdouble(1.004, -1.536, 22.88, -1.467,
116 0.3555, 0.6227, 14.65, 2051,
118 0.9932, -0.5444, 0, 0.5438,
119 0.7109, 7.645, 0.2904, 0),
120 calibPFSCEle_endcap = cms.vdouble(1.153, -16.5975, 5.668,
121 -0.1772, 16.22, 7.326,
122 0.0483, -4.068, 9.406),
127 useEGammaSupercluster = cms.bool(
True),
128 sumEtEcalIsoForEgammaSC_barrel = cms.double(1.),
129 sumEtEcalIsoForEgammaSC_endcap = cms.double(2.),
130 coneEcalIsoForEgammaSC = cms.double(0.3),
131 sumPtTrackIsoForEgammaSC_barrel = cms.double(4.),
132 sumPtTrackIsoForEgammaSC_endcap = cms.double(4.),
133 nTrackIsoForEgammaSC = cms.uint32(2),
134 coneTrackIsoForEgammaSC = cms.double(0.3),
135 useEGammaElectrons = cms.bool(
True),
136 egammaElectrons = cms.InputTag(
'mvaElectrons'),
141 rejectTracks_Bad = cms.bool(
True),
142 rejectTracks_Step45 = cms.bool(
True),
144 usePFNuclearInteractions = cms.bool(
True),
145 usePFConversions = cms.bool(
True),
146 usePFDecays = cms.bool(
False),
148 dptRel_DispVtx = cms.double(10.),
150 iCfgCandConnector = cms.PSet(
152 bCorrect = cms.bool(
True),
153 bCalibPrimary = cms.bool(
True),
154 dptRel_PrimaryTrack = cms.double(10.),
155 dptRel_MergedTrack = cms.double(5.0),
156 ptErrorSecondary = cms.double(1.0),
157 nuclCalibFactors = cms.vdouble(0.8, 0.15, 0.5, 0.5, 0.05)
164 muon_HCAL = cms.vdouble(3.0,3.0),
165 muon_ECAL = cms.vdouble(0.5,0.5),
166 muon_HO = cms.vdouble(0.9,0.9),
169 maxDPtOPt = cms.double(1.),
170 minTrackerHits = cms.int32(8),
171 minPixelHits = cms.int32(1),
172 trackQuality = cms.string(
'highPurity'),
173 dzPV = cms.double(0.2),
174 ptErrorScale = cms.double(8.),
175 minPtForPostCleaning = cms.double(20.),
176 eventFactorForCosmics =cms.double(10.),
177 metSignificanceForCleaning = cms.double(3.),
178 metSignificanceForRejection = cms.double(4.),
179 metFactorForCleaning = cms.double(4.),
180 eventFractionForCleaning =cms.double(0.5),
181 eventFractionForRejection = cms.double(0.8),
182 metFactorForRejection =cms.double(4.),
183 metFactorForHighEta = cms.double(25.),
184 ptFactorForHighEta = cms.double(2.),
185 metFactorForFakes = cms.double(4.),
186 minMomentumForPunchThrough = cms.double(100.),
187 minEnergyForPunchThrough = cms.double(100.),
188 punchThroughFactor = cms.double(3.),
189 punchThroughMETFactor = cms.double(4.),
190 cosmicRejectionDistance = cms.double(1.),
194 nsigma_TRACK = cms.double(1.0),
197 pt_Error = cms.double(1.0),
199 factors_45 = cms.vdouble(10.,100.),
202 goodTrackDeadHcal_ptErrRel = cms.double(0.2),
203 goodTrackDeadHcal_chi2n = cms.double(5),
204 goodTrackDeadHcal_layers = cms.uint32(4),
205 goodTrackDeadHcal_validFr = cms.double(0.5),
206 goodTrackDeadHcal_dxy = cms.double(0.5),
208 goodPixelTrackDeadHcal_minEta = cms.double(2.3),
209 goodPixelTrackDeadHcal_maxPt = cms.double(50.),
210 goodPixelTrackDeadHcal_ptErrRel = cms.double(1.0),
211 goodPixelTrackDeadHcal_chi2n = cms.double(2),
212 goodPixelTrackDeadHcal_maxLost3Hit = cms.int32(0),
213 goodPixelTrackDeadHcal_maxLost4Hit = cms.int32(1),
214 goodPixelTrackDeadHcal_dxy = cms.double(0.02),
215 goodPixelTrackDeadHcal_dz = cms.double(0.05),
219 postHFCleaning = cms.bool(
False),
221 minHFCleaningPt = cms.double(5.),
223 maxSignificance = cms.double(2.5),
225 minSignificance = cms.double(2.5),
227 minSignificanceReduction = cms.double(1.4),
230 maxDeltaPhiPt = cms.double(7.0),
233 minDeltaMet = cms.double(0.4),
236 cleanedHF = cms.VInputTag(
237 cms.InputTag(
"particleFlowRecHitHF",
"Cleaned"),
238 cms.InputTag(
"particleFlowClusterHF",
"Cleaned")
242 pf_nsigma_ECAL = cms.double(0.0),
243 pf_nsigma_HCAL = cms.double(1.0),
246 useCalibrationsFromDB = cms.bool(
True),
247 calibrationsLabel = cms.string(
''),
250 calibHF_use = cms.bool(
False),
251 calibHF_eta_step = cms.vdouble(0.0,2.90,3.00,3.20,4.20,4.40,4.60,4.80,5.20,5.40),
256 calibHF_a_EMonly = cms.vdouble(0.96945,0.96701,0.76309,0.82268,0.87583,0.89718,0.98674,1.4681,1.4580,1.4580),
257 calibHF_b_HADonly = cms.vdouble(1.27541,0.85361,0.86333,0.89091,0.94348,0.94348,0.94370,1.0034,1.0444,1.0444),
258 calibHF_a_EMHAD = cms.vdouble(1.42215,1.00496,0.68961,0.81656,0.98504,0.98504,1.00802,1.0593,1.4576,1.4576),
259 calibHF_b_EMHAD = cms.vdouble(1.27541,0.85361,0.86333,0.89091,0.94348,0.94348,0.94370,1.0034,1.0444,1.0444)
276 from Configuration.Eras.Modifier_pf_badHcalMitigation_cff
import pf_badHcalMitigation
277 pf_badHcalMitigation.toModify(particleFlowTmp,
278 electron_protectionsForBadHcal =
dict(enableProtections =
True),
279 photon_protectionsForBadHcal =
dict(enableProtections =
True))