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 needsAdditionalProducts = cms.bool(
False),
204 isIgnored = cms.bool(
False)
209 cutName = cms.string(
'GsfEleFull5x5E2x5OverE5x5Cut'),
211 minE1x5OverE5x5EB = cms.double( wpEB.minE1x5OverE5x5Cut ),
212 minE1x5OverE5x5EE = cms.double( wpEE.minE1x5OverE5x5Cut ),
214 minE2x5OverE5x5EB = cms.double( wpEB.minE2x5OverE5x5Cut ),
215 minE2x5OverE5x5EE = cms.double( wpEE.minE2x5OverE5x5Cut ),
216 needsAdditionalProducts = cms.bool(
False),
217 isIgnored = cms.bool(
False)
222 cutName = cms.string(
'GsfEleFull5x5E2x5OverE5x5WithSatCut'),
224 minE1x5OverE5x5EB = cms.double( wpEB.minE1x5OverE5x5Cut ),
225 minE1x5OverE5x5EE = cms.double( wpEE.minE1x5OverE5x5Cut ),
227 minE2x5OverE5x5EB = cms.double( wpEB.minE2x5OverE5x5Cut ),
228 minE2x5OverE5x5EE = cms.double( wpEE.minE2x5OverE5x5Cut ),
229 maxNrSatCrysIn5x5EB =cms.int32( 0 ),
230 maxNrSatCrysIn5x5EE =cms.int32( 0 ),
231 needsAdditionalProducts = cms.bool(
False),
232 isIgnored = cms.bool(
False)
237 cutName = cms.string(
'GsfEleHadronicOverEMLinearCut'),
241 slopeTermEB = cms.double( wpEB.hOverESlopeTerm ),
242 slopeTermEE = cms.double( wpEE.hOverESlopeTerm ),
243 slopeStartEB = cms.double( wpEB.hOverESlopeStart ),
244 slopeStartEE = cms.double( wpEE.hOverESlopeStart ),
245 constTermEB = cms.double( wpEB.hOverEConstTerm ),
246 constTermEE = cms.double( wpEE.hOverEConstTerm ),
247 needsAdditionalProducts = cms.bool(
False),
248 isIgnored = cms.bool(
False)
254 cutName = cms.string(
'GsfEleTrkPtIsoCut'),
258 slopeTermEB = cms.double( wpEB.trkIsoSlopeTerm ),
259 slopeTermEE = cms.double( wpEE.trkIsoSlopeTerm ),
260 slopeStartEB = cms.double( wpEB.trkIsoSlopeStart ),
261 slopeStartEE = cms.double( wpEE.trkIsoSlopeStart ),
262 constTermEB = cms.double( wpEB.trkIsoConstTerm ),
263 constTermEE = cms.double( wpEE.trkIsoConstTerm ),
264 needsAdditionalProducts = cms.bool(
False),
265 isIgnored = cms.bool(
False)
270 cutName = cms.string(
'GsfEleTrkPtIsoRhoCut'),
274 slopeTermEB = cms.double( wpEB.trkIsoSlopeTerm ),
275 slopeTermEE = cms.double( wpEE.trkIsoSlopeTerm ),
276 slopeStartEB = cms.double( wpEB.trkIsoSlopeStart ),
277 slopeStartEE = cms.double( wpEE.trkIsoSlopeStart ),
278 constTermEB = cms.double( wpEB.trkIsoConstTerm ),
279 constTermEE = cms.double( wpEE.trkIsoConstTerm ),
280 rhoEtStartEB = cms.double( wpEB.trkIsoRhoCorrStart),
281 rhoEtStartEE = cms.double( wpEE.trkIsoRhoCorrStart),
282 rhoEAEB = cms.double( wpEB.trkIsoEffArea),
283 rhoEAEE = cms.double( wpEE.trkIsoEffArea),
284 rho = cms.InputTag(
"fixedGridRhoFastjetAll"),
285 needsAdditionalProducts = cms.bool(
True),
286 isIgnored = cms.bool(
False)
290 cutName = cms.string(
'GsfEleValueMapIsoRhoCut'),
294 slopeTermEB = cms.double( wpEB.trkIsoSlopeTerm ),
295 slopeTermEE = cms.double( wpEE.trkIsoSlopeTerm ),
296 slopeStartEB = cms.double( wpEB.trkIsoSlopeStart ),
297 slopeStartEE = cms.double( wpEE.trkIsoSlopeStart ),
298 constTermEB = cms.double( wpEB.trkIsoConstTerm ),
299 constTermEE = cms.double( wpEE.trkIsoConstTerm ),
301 rhoEtStartEB = cms.double( 999999.),
302 rhoEtStartEE = cms.double( 999999.),
303 rhoEAEB = cms.double( 0. ),
304 rhoEAEE = cms.double( 0. ),
305 rho = cms.InputTag(
""),
306 value = cms.InputTag(
"heepIDVarValueMaps",
"eleTrkPtIsoNoJetCore"),
307 needsAdditionalProducts = cms.bool(
True),
308 isIgnored = cms.bool(
False)
312 cutName = cms.string(
'GsfEleValueMapIsoRhoCut'),
316 slopeTermEB = cms.double( wpEB.trkIsoSlopeTerm ),
317 slopeTermEE = cms.double( wpEE.trkIsoSlopeTerm ),
318 slopeStartEB = cms.double( wpEB.trkIsoSlopeStart ),
319 slopeStartEE = cms.double( wpEE.trkIsoSlopeStart ),
320 constTermEB = cms.double( wpEB.trkIsoConstTerm ),
321 constTermEE = cms.double( wpEE.trkIsoConstTerm ),
323 rhoEtStartEB = cms.double( 999999.),
324 rhoEtStartEE = cms.double( 999999.),
325 rhoEAEB = cms.double( 0. ),
326 rhoEAEE = cms.double( 0. ),
327 rho = cms.InputTag(
""),
328 value = cms.InputTag(
"heepIDVarValueMaps",
"eleTrkPtIso"),
329 needsAdditionalProducts = cms.bool(
True),
330 isIgnored = cms.bool(
False)
335 cutName = cms.string(
'GsfEleEmHadD1IsoRhoCut'),
336 slopeTermEB = cms.double( wpEB.ehIsoSlopeTerm ),
337 slopeTermEE = cms.double( wpEE.ehIsoSlopeTerm ),
338 slopeStartEB = cms.double( wpEB.ehIsoSlopeStart ),
339 slopeStartEE = cms.double( wpEE.ehIsoSlopeStart ),
340 constTermEB = cms.double( wpEB.ehIsoConstTerm ),
341 constTermEE = cms.double( wpEE.ehIsoConstTerm ),
342 rhoConstant = cms.double( wpEB.effAreaForEHIso),
343 rho = cms.InputTag(
"fixedGridRhoFastjetAll"),
344 needsAdditionalProducts = cms.bool(
True),
345 isIgnored = cms.bool(
False)
351 cutName = cms.string(
'GsfEleDxyCut'),
352 dxyCutValueEB = cms.double( wpEB.dxyCut ),
353 dxyCutValueEE = cms.double( wpEE.dxyCut ),
354 vertexSrc = cms.InputTag(
"offlinePrimaryVertices"),
355 vertexSrcMiniAOD = cms.InputTag(
"offlineSlimmedPrimaryVertices"),
356 barrelCutOff = cms.double(ebCutOff),
357 needsAdditionalProducts = cms.bool(
True),
358 isIgnored = cms.bool(
False)
364 cutName = cms.string(
'GsfEleMissingHitsCut'),
365 maxMissingHitsEB = cms.uint32( wpEB.maxMissingHitsCut ),
366 maxMissingHitsEE = cms.uint32( wpEE.maxMissingHitsCut ),
367 barrelCutOff = cms.double(ebCutOff),
368 needsAdditionalProducts = cms.bool(
False),
369 isIgnored = cms.bool(
False)
373 cutName = cms.string(
'GsfEleEcalDrivenCut'),
374 ecalDrivenEB = cms.int32( wpEB.ecalDrivenCut ),
375 ecalDrivenEE = cms.int32( wpEE.ecalDrivenCut ),
376 barrelCutOff = cms.double(ebCutOff),
377 needsAdditionalProducts = cms.bool(
False),
378 isIgnored = cms.bool(
False)
387 This function configures the full cms.PSet for a VID ID and returns it. 388 The inputs: two objects of the type HEEP_WorkingPoint_V1, one 389 containing the cuts for the Barrel (EB) and the other one for the Endcap (EE). 391 parameterSet = cms.PSet(
392 idName = cms.string(
"heepElectronID-HEEPV51"),
412 This function configures the full cms.PSet for a VID ID and returns it. 413 The inputs: two objects of the type HEEP_WorkingPoint_V1, one 414 containing the cuts for the Barrel (EB) and the other one for the Endcap (EE). 416 parameterSet = cms.PSet(
417 idName = cms.string(
"heepElectronID-HEEPV60"),
438 This function configures the full cms.PSet for a VID ID and returns it. 439 The inputs: two objects of the type HEEP_WorkingPoint_V1, one 440 containing the cuts for the Barrel (EB) and the other one for the Endcap (EE). 442 parameterSet = cms.PSet(
443 idName = cms.string(idName),
464 This function configures the full cms.PSet for a VID ID and returns it. 465 The inputs: two objects of the type HEEP_WorkingPoint_V1, one 466 containing the cuts for the Barrel (EB) and the other one for the Endcap (EE). 468 parameterSet = cms.PSet(
469 idName = cms.string(idName),
489 This function configures the full cms.PSet for a VID ID and returns it. 490 The inputs: two objects of the type HEEP_WorkingPoint_V2, one 491 containing the cuts for the Barrel (EB) and the other one for the Endcap (EE). 493 parameterSet = cms.PSet(
494 idName = cms.string(
"heepElectronID-HEEPV61"),
515 seq.associate(newTask)
519 process.load(
"RecoEgamma.ElectronIdentification.heepIdVarValueMapProducer_cfi")
520 newTask.add(process.heepIDVarValueMaps)
522 if useMiniAOD==
False:
523 process.load(
"TrackingTools.TransientTrack.TransientTrackBuilder_cfi")
524 process.load(
"PhysicsTools.PatAlgos.slimming.primaryVertexAssociation_cfi")
525 process.load(
"PhysicsTools.PatAlgos.slimming.offlineSlimmedPrimaryVertices_cfi")
526 process.load(
"PhysicsTools.PatAlgos.slimming.packedPFCandidates_cfi")
528 process.packedCandsForTkIso = packedPFCandidates.clone()
529 process.packedCandsForTkIso.PuppiSrc=cms.InputTag(
"")
530 process.packedCandsForTkIso.PuppiNoLepSrc=cms.InputTag(
"")
532 process.load(
"PhysicsTools.PatAlgos.slimming.lostTracks_cfi")
534 process.lostTracksForTkIso = lostTracks.clone()
535 process.lostTracksForTkIso.packedPFCandidates =cms.InputTag(
"packedCandsForTkIso")
536 newTask.add(process.primaryVertexAssociation,
537 process.offlineSlimmedPrimaryVertices,
538 process.packedCandsForTkIso,
539 process.lostTracksForTkIso)