1 import FWCore.ParameterSet.Config
as cms
15 This is a container class to hold numerical cut values for either 16 the barrel or endcap set of cuts 22 full5x5SigmaIEtaIEtaCut,
74 This is a container class to hold numerical cut values for either 75 the barrel or endcap set of cuts 81 full5x5SigmaIEtaIEtaCut,
141 cutName = cms.string(
"MinPtCut"),
142 minPt = cms.double(35.0),
143 needsAdditionalProducts = cms.bool(
False),
144 isIgnored = cms.bool(
False)
150 cutName = cms.string(
"GsfEleSCEtaMultiRangeCut"),
151 useAbsEta = cms.bool(
True),
152 allowedEtaRanges = cms.VPSet(
153 cms.PSet( minEta = cms.double(0.0),
154 maxEta = cms.double(ebMax) ),
155 cms.PSet( minEta = cms.double(eeMin),
156 maxEta = cms.double(2.5) )
158 needsAdditionalProducts = cms.bool(
False),
159 isIgnored = cms.bool(
False)
165 cutName = cms.string(
'GsfEleDEtaInSeedCut'),
166 dEtaInSeedCutValueEB = cms.double( wpEB.dEtaInSeedCut ),
167 dEtaInSeedCutValueEE = cms.double( wpEE.dEtaInSeedCut ),
168 barrelCutOff = cms.double(ebCutOff),
169 needsAdditionalProducts = cms.bool(
False),
170 isIgnored = cms.bool(
False)
176 cutName = cms.string(
'GsfEleDPhiInCut'),
177 dPhiInCutValueEB = cms.double( wpEB.dPhiInCut ),
178 dPhiInCutValueEE = cms.double( wpEE.dPhiInCut ),
179 barrelCutOff = cms.double(ebCutOff),
180 needsAdditionalProducts = cms.bool(
False),
181 isIgnored = cms.bool(
False)
187 cutName = cms.string(
'GsfEleFull5x5SigmaIEtaIEtaCut'),
188 full5x5SigmaIEtaIEtaCutValueEB = cms.double( wpEB.full5x5SigmaIEtaIEtaCut ),
189 full5x5SigmaIEtaIEtaCutValueEE = cms.double( wpEE.full5x5SigmaIEtaIEtaCut ),
190 barrelCutOff = cms.double(ebCutOff),
191 needsAdditionalProducts = cms.bool(
False),
192 isIgnored = cms.bool(
False)
197 cutName = cms.string(
'GsfEleFull5x5SigmaIEtaIEtaWithSatCut'),
198 maxSigmaIEtaIEtaEB = cms.double( wpEB.full5x5SigmaIEtaIEtaCut ),
199 maxSigmaIEtaIEtaEE = cms.double( wpEE.full5x5SigmaIEtaIEtaCut ),
200 maxNrSatCrysIn5x5EB =cms.int32( 0 ),
201 maxNrSatCrysIn5x5EE =cms.int32( 0 ),
202 nrSatCrysValueMap = cms.InputTag(
"heepIDVarValueMaps",
"eleNrSaturateIn5x5"),
203 needsAdditionalProducts = cms.bool(
True),
205 isIgnored = cms.bool(
False)
210 cutName = cms.string(
'GsfEleFull5x5E2x5OverE5x5Cut'),
212 minE1x5OverE5x5EB = cms.double( wpEB.minE1x5OverE5x5Cut ),
213 minE1x5OverE5x5EE = cms.double( wpEE.minE1x5OverE5x5Cut ),
215 minE2x5OverE5x5EB = cms.double( wpEB.minE2x5OverE5x5Cut ),
216 minE2x5OverE5x5EE = cms.double( wpEE.minE2x5OverE5x5Cut ),
217 needsAdditionalProducts = cms.bool(
False),
218 isIgnored = cms.bool(
False)
223 cutName = cms.string(
'GsfEleFull5x5E2x5OverE5x5WithSatCut'),
225 minE1x5OverE5x5EB = cms.double( wpEB.minE1x5OverE5x5Cut ),
226 minE1x5OverE5x5EE = cms.double( wpEE.minE1x5OverE5x5Cut ),
228 minE2x5OverE5x5EB = cms.double( wpEB.minE2x5OverE5x5Cut ),
229 minE2x5OverE5x5EE = cms.double( wpEE.minE2x5OverE5x5Cut ),
230 maxNrSatCrysIn5x5EB =cms.int32( 0 ),
231 maxNrSatCrysIn5x5EE =cms.int32( 0 ),
232 nrSatCrysValueMap = cms.InputTag(
"heepIDVarValueMaps",
"eleNrSaturateIn5x5"),
233 needsAdditionalProducts = cms.bool(
True),
234 isIgnored = cms.bool(
False)
239 cutName = cms.string(
'GsfEleHadronicOverEMLinearCut'),
243 slopeTermEB = cms.double( wpEB.hOverESlopeTerm ),
244 slopeTermEE = cms.double( wpEE.hOverESlopeTerm ),
245 slopeStartEB = cms.double( wpEB.hOverESlopeStart ),
246 slopeStartEE = cms.double( wpEE.hOverESlopeStart ),
247 constTermEB = cms.double( wpEB.hOverEConstTerm ),
248 constTermEE = cms.double( wpEE.hOverEConstTerm ),
249 needsAdditionalProducts = cms.bool(
False),
250 isIgnored = cms.bool(
False)
256 cutName = cms.string(
'GsfEleTrkPtIsoCut'),
260 slopeTermEB = cms.double( wpEB.trkIsoSlopeTerm ),
261 slopeTermEE = cms.double( wpEE.trkIsoSlopeTerm ),
262 slopeStartEB = cms.double( wpEB.trkIsoSlopeStart ),
263 slopeStartEE = cms.double( wpEE.trkIsoSlopeStart ),
264 constTermEB = cms.double( wpEB.trkIsoConstTerm ),
265 constTermEE = cms.double( wpEE.trkIsoConstTerm ),
266 needsAdditionalProducts = cms.bool(
False),
267 isIgnored = cms.bool(
False)
272 cutName = cms.string(
'GsfEleTrkPtIsoRhoCut'),
276 slopeTermEB = cms.double( wpEB.trkIsoSlopeTerm ),
277 slopeTermEE = cms.double( wpEE.trkIsoSlopeTerm ),
278 slopeStartEB = cms.double( wpEB.trkIsoSlopeStart ),
279 slopeStartEE = cms.double( wpEE.trkIsoSlopeStart ),
280 constTermEB = cms.double( wpEB.trkIsoConstTerm ),
281 constTermEE = cms.double( wpEE.trkIsoConstTerm ),
282 rhoEtStartEB = cms.double( wpEB.trkIsoRhoCorrStart),
283 rhoEtStartEE = cms.double( wpEE.trkIsoRhoCorrStart),
284 rhoEAEB = cms.double( wpEB.trkIsoEffArea),
285 rhoEAEE = cms.double( wpEE.trkIsoEffArea),
286 rho = cms.InputTag(
"fixedGridRhoFastjetAll"),
287 needsAdditionalProducts = cms.bool(
True),
288 isIgnored = cms.bool(
False)
292 cutName = cms.string(
'GsfEleValueMapIsoRhoCut'),
296 slopeTermEB = cms.double( wpEB.trkIsoSlopeTerm ),
297 slopeTermEE = cms.double( wpEE.trkIsoSlopeTerm ),
298 slopeStartEB = cms.double( wpEB.trkIsoSlopeStart ),
299 slopeStartEE = cms.double( wpEE.trkIsoSlopeStart ),
300 constTermEB = cms.double( wpEB.trkIsoConstTerm ),
301 constTermEE = cms.double( wpEE.trkIsoConstTerm ),
303 rhoEtStartEB = cms.double( 999999.),
304 rhoEtStartEE = cms.double( 999999.),
305 rhoEAEB = cms.double( 0. ),
306 rhoEAEE = cms.double( 0. ),
307 rho = cms.InputTag(
""),
308 value = cms.InputTag(
"heepIDVarValueMaps",
"eleTrkPtIsoNoJetCore"),
309 needsAdditionalProducts = cms.bool(
True),
310 isIgnored = cms.bool(
False)
314 cutName = cms.string(
'GsfEleValueMapIsoRhoCut'),
318 slopeTermEB = cms.double( wpEB.trkIsoSlopeTerm ),
319 slopeTermEE = cms.double( wpEE.trkIsoSlopeTerm ),
320 slopeStartEB = cms.double( wpEB.trkIsoSlopeStart ),
321 slopeStartEE = cms.double( wpEE.trkIsoSlopeStart ),
322 constTermEB = cms.double( wpEB.trkIsoConstTerm ),
323 constTermEE = cms.double( wpEE.trkIsoConstTerm ),
325 rhoEtStartEB = cms.double( 999999.),
326 rhoEtStartEE = cms.double( 999999.),
327 rhoEAEB = cms.double( 0. ),
328 rhoEAEE = cms.double( 0. ),
329 rho = cms.InputTag(
""),
330 value = cms.InputTag(
"heepIDVarValueMaps",
"eleTrkPtIso"),
331 needsAdditionalProducts = cms.bool(
True),
332 isIgnored = cms.bool(
False)
337 cutName = cms.string(
'GsfEleEmHadD1IsoRhoCut'),
338 slopeTermEB = cms.double( wpEB.ehIsoSlopeTerm ),
339 slopeTermEE = cms.double( wpEE.ehIsoSlopeTerm ),
340 slopeStartEB = cms.double( wpEB.ehIsoSlopeStart ),
341 slopeStartEE = cms.double( wpEE.ehIsoSlopeStart ),
342 constTermEB = cms.double( wpEB.ehIsoConstTerm ),
343 constTermEE = cms.double( wpEE.ehIsoConstTerm ),
344 rhoConstant = cms.double( wpEB.effAreaForEHIso),
345 rho = cms.InputTag(
"fixedGridRhoFastjetAll"),
346 needsAdditionalProducts = cms.bool(
True),
347 isIgnored = cms.bool(
False)
353 cutName = cms.string(
'GsfEleDxyCut'),
354 dxyCutValueEB = cms.double( wpEB.dxyCut ),
355 dxyCutValueEE = cms.double( wpEE.dxyCut ),
356 vertexSrc = cms.InputTag(
"offlinePrimaryVertices"),
357 vertexSrcMiniAOD = cms.InputTag(
"offlineSlimmedPrimaryVertices"),
358 barrelCutOff = cms.double(ebCutOff),
359 needsAdditionalProducts = cms.bool(
True),
360 isIgnored = cms.bool(
False)
366 cutName = cms.string(
'GsfEleMissingHitsCut'),
367 maxMissingHitsEB = cms.uint32( wpEB.maxMissingHitsCut ),
368 maxMissingHitsEE = cms.uint32( wpEE.maxMissingHitsCut ),
369 barrelCutOff = cms.double(ebCutOff),
370 needsAdditionalProducts = cms.bool(
False),
371 isIgnored = cms.bool(
False)
375 cutName = cms.string(
'GsfEleEcalDrivenCut'),
376 ecalDrivenEB = cms.int32( wpEB.ecalDrivenCut ),
377 ecalDrivenEE = cms.int32( wpEE.ecalDrivenCut ),
378 barrelCutOff = cms.double(ebCutOff),
379 needsAdditionalProducts = cms.bool(
False),
380 isIgnored = cms.bool(
False)
389 This function configures the full cms.PSet for a VID ID and returns it. 390 The inputs: two objects of the type HEEP_WorkingPoint_V1, one 391 containing the cuts for the Barrel (EB) and the other one for the Endcap (EE). 393 parameterSet = cms.PSet(
394 idName = cms.string(
"heepElectronID-HEEPV51"),
414 This function configures the full cms.PSet for a VID ID and returns it. 415 The inputs: two objects of the type HEEP_WorkingPoint_V1, one 416 containing the cuts for the Barrel (EB) and the other one for the Endcap (EE). 418 parameterSet = cms.PSet(
419 idName = cms.string(
"heepElectronID-HEEPV60"),
440 This function configures the full cms.PSet for a VID ID and returns it. 441 The inputs: two objects of the type HEEP_WorkingPoint_V1, one 442 containing the cuts for the Barrel (EB) and the other one for the Endcap (EE). 444 parameterSet = cms.PSet(
445 idName = cms.string(idName),
466 This function configures the full cms.PSet for a VID ID and returns it. 467 The inputs: two objects of the type HEEP_WorkingPoint_V1, one 468 containing the cuts for the Barrel (EB) and the other one for the Endcap (EE). 470 parameterSet = cms.PSet(
471 idName = cms.string(idName),
491 This function configures the full cms.PSet for a VID ID and returns it. 492 The inputs: two objects of the type HEEP_WorkingPoint_V2, one 493 containing the cuts for the Barrel (EB) and the other one for the Endcap (EE). 495 parameterSet = cms.PSet(
496 idName = cms.string(
"heepElectronID-HEEPV61"),
517 seq.associate(newTask)
521 process.load(
"RecoEgamma.ElectronIdentification.heepIdVarValueMapProducer_cfi")
522 newTask.add(process.heepIDVarValueMaps)
524 if useMiniAOD==
False:
525 process.load(
"TrackingTools.TransientTrack.TransientTrackBuilder_cfi")
526 process.load(
"PhysicsTools.PatAlgos.slimming.primaryVertexAssociation_cfi")
527 process.load(
"PhysicsTools.PatAlgos.slimming.offlineSlimmedPrimaryVertices_cfi")
528 process.load(
"PhysicsTools.PatAlgos.slimming.packedPFCandidates_cfi")
530 process.packedCandsForTkIso = packedPFCandidates.clone()
531 process.packedCandsForTkIso.PuppiSrc=cms.InputTag(
"")
532 process.packedCandsForTkIso.PuppiNoLepSrc=cms.InputTag(
"")
534 process.load(
"PhysicsTools.PatAlgos.slimming.lostTracks_cfi")
536 process.lostTracksForTkIso = lostTracks.clone()
537 process.lostTracksForTkIso.packedPFCandidates =cms.InputTag(
"packedCandsForTkIso")
538 newTask.add(process.primaryVertexAssociation,
539 process.offlineSlimmedPrimaryVertices,
540 process.packedCandsForTkIso,
541 process.lostTracksForTkIso)