CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions | Variables
heepElectronID_tools Namespace Reference

Classes

class  HEEP_WorkingPoint_V1
 
class  HEEP_WorkingPoint_V2
 

Functions

def addHEEPProducersToSeq
 
def configureHEEPElectronID_V51
 
def configureHEEPElectronID_V60
 
def configureHEEPElectronID_V60_80XAOD
 
def configureHEEPElectronID_V61
 
def configureHEEPElectronID_V70
 
def psetGsfEleDEtaInSeedCut
 
def psetGsfEleDPhiInCut
 
def psetGsfEleDxyCut
 
def psetGsfEleEcalDrivenCut
 
def psetGsfEleEmHadD1IsoRhoCut
 
def psetGsfEleFull5x5E2x5OverE5x5Cut
 
def psetGsfEleFull5x5E2x5OverE5x5WithSatCut
 
def psetGsfEleFull5x5SigmaIEtaIEtaCut
 
def psetGsfEleFull5x5SigmaIEtaIEtaWithSatCut
 
def psetGsfEleHadronicOverEMLinearCut
 
def psetGsfEleMissingHitsCut
 
def psetGsfEleSCEtaMultiRangeCut
 
def psetGsfEleTrkPtFall16IsoCut
 
def psetGsfEleTrkPtIsoCut
 
def psetGsfEleTrkPtIsoRhoCut
 
def psetGsfEleTrkPtNoJetCoreIsoCut
 
def psetMinPtCut
 

Variables

float ebCutOff = 1.479
 
float ebMax = 1.4442
 
float eeMin = 1.566
 

Function Documentation

def heepElectronID_tools.addHEEPProducersToSeq (   process,
  seq,
  insertIndex,
  useMiniAOD 
)

Definition at line 514 of file heepElectronID_tools.py.

Referenced by vid_id_tools.setupVIDElectronSelection().

515 def addHEEPProducersToSeq(process,seq,insertIndex,useMiniAOD):
516  process.load("RecoEgamma.ElectronIdentification.heepIdVarValueMapProducer_cfi")
517 
518  seq.insert(insertIndex,process.heepIDVarValueMaps)
519 
520  if useMiniAOD==False:
521  process.load("TrackingTools.TransientTrack.TransientTrackBuilder_cfi")
522  process.load("PhysicsTools.PatAlgos.slimming.primaryVertexAssociation_cfi")
523  process.load("PhysicsTools.PatAlgos.slimming.offlineSlimmedPrimaryVertices_cfi")
524  process.load("PhysicsTools.PatAlgos.slimming.packedPFCandidates_cfi")
525  from PhysicsTools.PatAlgos.slimming.packedPFCandidates_cfi import packedPFCandidates
526  process.packedCandsForTkIso = packedPFCandidates.clone()
527  process.packedCandsForTkIso.PuppiSrc=cms.InputTag("")
528  process.packedCandsForTkIso.PuppiNoLepSrc=cms.InputTag("")
529 
530  process.load("PhysicsTools.PatAlgos.slimming.lostTracks_cfi")
531  from PhysicsTools.PatAlgos.slimming.lostTracks_cfi import lostTracks
532  process.lostTracksForTkIso = lostTracks.clone()
533  process.lostTracksForTkIso.packedPFCandidates =cms.InputTag("packedCandsForTkIso")
534  seq.insert(insertIndex,process.primaryVertexAssociation)
535  seq.insert(insertIndex+1,process.offlineSlimmedPrimaryVertices)
536  seq.insert(insertIndex+2,process.packedCandsForTkIso)
537  seq.insert(insertIndex+3,process.lostTracksForTkIso)
def heepElectronID_tools.configureHEEPElectronID_V51 (   wpEB,
  wpEE 
)
This function configures the full cms.PSet for a VID ID and returns it.
The inputs: two objects of the type HEEP_WorkingPoint_V1, one
containing the cuts for the Barrel (EB) and the other one for the Endcap (EE).

Definition at line 387 of file heepElectronID_tools.py.

References psetGsfEleDEtaInSeedCut(), psetGsfEleDPhiInCut(), psetGsfEleDxyCut(), psetGsfEleEcalDrivenCut(), psetGsfEleEmHadD1IsoRhoCut(), psetGsfEleFull5x5E2x5OverE5x5Cut(), psetGsfEleFull5x5SigmaIEtaIEtaCut(), psetGsfEleHadronicOverEMLinearCut(), psetGsfEleMissingHitsCut(), psetGsfEleSCEtaMultiRangeCut(), psetGsfEleTrkPtIsoCut(), and psetMinPtCut().

388 def configureHEEPElectronID_V51(wpEB, wpEE):
389  """
390  This function configures the full cms.PSet for a VID ID and returns it.
391  The inputs: two objects of the type HEEP_WorkingPoint_V1, one
392  containing the cuts for the Barrel (EB) and the other one for the Endcap (EE).
393  """
394  parameterSet = cms.PSet(
395  idName = cms.string("heepElectronID-HEEPV51"),
396  cutFlow = cms.VPSet(
397  psetMinPtCut(), #0
399  psetGsfEleDEtaInSeedCut(wpEB,wpEE), #2
400  psetGsfEleDPhiInCut(wpEB,wpEE), #3
401  psetGsfEleFull5x5SigmaIEtaIEtaCut(wpEB,wpEE), #4
402  psetGsfEleFull5x5E2x5OverE5x5Cut(wpEB,wpEE), #5
403  psetGsfEleHadronicOverEMLinearCut(wpEB,wpEE), #6
404  psetGsfEleTrkPtIsoCut(wpEB,wpEE), #7
405  psetGsfEleEmHadD1IsoRhoCut(wpEB,wpEE), #8
406  psetGsfEleDxyCut(wpEB,wpEE), #9
407  psetGsfEleMissingHitsCut(wpEB,wpEE), #10,
408  psetGsfEleEcalDrivenCut(wpEB,wpEE) #11
409  )
410  )
411  return parameterSet
def heepElectronID_tools.configureHEEPElectronID_V60 (   wpEB,
  wpEE 
)
This function configures the full cms.PSet for a VID ID and returns it.
The inputs: two objects of the type HEEP_WorkingPoint_V1, one
containing the cuts for the Barrel (EB) and the other one for the Endcap (EE).

Definition at line 412 of file heepElectronID_tools.py.

References psetGsfEleDEtaInSeedCut(), psetGsfEleDPhiInCut(), psetGsfEleDxyCut(), psetGsfEleEcalDrivenCut(), psetGsfEleEmHadD1IsoRhoCut(), psetGsfEleFull5x5E2x5OverE5x5Cut(), psetGsfEleFull5x5SigmaIEtaIEtaCut(), psetGsfEleHadronicOverEMLinearCut(), psetGsfEleMissingHitsCut(), psetGsfEleSCEtaMultiRangeCut(), psetGsfEleTrkPtIsoCut(), and psetMinPtCut().

413 def configureHEEPElectronID_V60(wpEB, wpEE):
414  """
415  This function configures the full cms.PSet for a VID ID and returns it.
416  The inputs: two objects of the type HEEP_WorkingPoint_V1, one
417  containing the cuts for the Barrel (EB) and the other one for the Endcap (EE).
418  """
419  parameterSet = cms.PSet(
420  idName = cms.string("heepElectronID-HEEPV60"),
421  cutFlow = cms.VPSet(
422  psetMinPtCut(), #0
424  psetGsfEleDEtaInSeedCut(wpEB,wpEE), #2
425  psetGsfEleDPhiInCut(wpEB,wpEE), #3
426  psetGsfEleFull5x5SigmaIEtaIEtaCut(wpEB,wpEE), #4
427  psetGsfEleFull5x5E2x5OverE5x5Cut(wpEB,wpEE), #5
428  psetGsfEleHadronicOverEMLinearCut(wpEB,wpEE), #6
429  psetGsfEleTrkPtIsoCut(wpEB,wpEE), #7
430  psetGsfEleEmHadD1IsoRhoCut(wpEB,wpEE), #8
431  psetGsfEleDxyCut(wpEB,wpEE), #9
432  psetGsfEleMissingHitsCut(wpEB,wpEE), #10,
433  psetGsfEleEcalDrivenCut(wpEB,wpEE) #11
434  )
435  )
436  return parameterSet
437 
def heepElectronID_tools.configureHEEPElectronID_V60_80XAOD (   idName,
  wpEB,
  wpEE 
)
This function configures the full cms.PSet for a VID ID and returns it.
The inputs: two objects of the type HEEP_WorkingPoint_V1, one
containing the cuts for the Barrel (EB) and the other one for the Endcap (EE).

Definition at line 464 of file heepElectronID_tools.py.

References psetGsfEleDEtaInSeedCut(), psetGsfEleDPhiInCut(), psetGsfEleDxyCut(), psetGsfEleEcalDrivenCut(), psetGsfEleEmHadD1IsoRhoCut(), psetGsfEleFull5x5E2x5OverE5x5WithSatCut(), psetGsfEleFull5x5SigmaIEtaIEtaWithSatCut(), psetGsfEleHadronicOverEMLinearCut(), psetGsfEleMissingHitsCut(), psetGsfEleSCEtaMultiRangeCut(), psetGsfEleTrkPtNoJetCoreIsoCut(), and psetMinPtCut().

465 def configureHEEPElectronID_V60_80XAOD(idName, wpEB, wpEE):
466  """
467  This function configures the full cms.PSet for a VID ID and returns it.
468  The inputs: two objects of the type HEEP_WorkingPoint_V1, one
469  containing the cuts for the Barrel (EB) and the other one for the Endcap (EE).
470  """
471  parameterSet = cms.PSet(
472  idName = cms.string(idName),
473  cutFlow = cms.VPSet(
474  psetMinPtCut(), #0
476  psetGsfEleDEtaInSeedCut(wpEB,wpEE), #2
477  psetGsfEleDPhiInCut(wpEB,wpEE), #3
480  psetGsfEleHadronicOverEMLinearCut(wpEB,wpEE), #6
481  psetGsfEleTrkPtNoJetCoreIsoCut(wpEB,wpEE), #7
482  psetGsfEleEmHadD1IsoRhoCut(wpEB,wpEE), #8
483  psetGsfEleDxyCut(wpEB,wpEE), #9
484  psetGsfEleMissingHitsCut(wpEB,wpEE), #10,
485  psetGsfEleEcalDrivenCut(wpEB,wpEE) #11
486  )
487  )
488  return parameterSet
def heepElectronID_tools.configureHEEPElectronID_V61 (   wpEB,
  wpEE 
)
This function configures the full cms.PSet for a VID ID and returns it.
The inputs: two objects of the type HEEP_WorkingPoint_V2, one
containing the cuts for the Barrel (EB) and the other one for the Endcap (EE).

Definition at line 489 of file heepElectronID_tools.py.

References psetGsfEleDEtaInSeedCut(), psetGsfEleDPhiInCut(), psetGsfEleDxyCut(), psetGsfEleEcalDrivenCut(), psetGsfEleEmHadD1IsoRhoCut(), psetGsfEleFull5x5E2x5OverE5x5Cut(), psetGsfEleFull5x5SigmaIEtaIEtaCut(), psetGsfEleHadronicOverEMLinearCut(), psetGsfEleMissingHitsCut(), psetGsfEleSCEtaMultiRangeCut(), psetGsfEleTrkPtIsoRhoCut(), and psetMinPtCut().

490 def configureHEEPElectronID_V61(wpEB, wpEE):
491  """
492  This function configures the full cms.PSet for a VID ID and returns it.
493  The inputs: two objects of the type HEEP_WorkingPoint_V2, one
494  containing the cuts for the Barrel (EB) and the other one for the Endcap (EE).
495  """
496  parameterSet = cms.PSet(
497  idName = cms.string("heepElectronID-HEEPV61"),
498  cutFlow = cms.VPSet(
499  psetMinPtCut(), #0
501  psetGsfEleDEtaInSeedCut(wpEB,wpEE), #2
502  psetGsfEleDPhiInCut(wpEB,wpEE), #3
503  psetGsfEleFull5x5SigmaIEtaIEtaCut(wpEB,wpEE), #4
504  psetGsfEleFull5x5E2x5OverE5x5Cut(wpEB,wpEE), #5
505  psetGsfEleHadronicOverEMLinearCut(wpEB,wpEE), #6
506  psetGsfEleTrkPtIsoRhoCut(wpEB,wpEE), #7
507  psetGsfEleEmHadD1IsoRhoCut(wpEB,wpEE), #8
508  psetGsfEleDxyCut(wpEB,wpEE), #9
509  psetGsfEleMissingHitsCut(wpEB,wpEE), #10,
510  psetGsfEleEcalDrivenCut(wpEB,wpEE) #11
511  )
512  )
513  return parameterSet
def heepElectronID_tools.configureHEEPElectronID_V70 (   idName,
  wpEB,
  wpEE 
)
This function configures the full cms.PSet for a VID ID and returns it.
The inputs: two objects of the type HEEP_WorkingPoint_V1, one
containing the cuts for the Barrel (EB) and the other one for the Endcap (EE).

Definition at line 438 of file heepElectronID_tools.py.

References psetGsfEleDEtaInSeedCut(), psetGsfEleDPhiInCut(), psetGsfEleDxyCut(), psetGsfEleEcalDrivenCut(), psetGsfEleEmHadD1IsoRhoCut(), psetGsfEleFull5x5E2x5OverE5x5WithSatCut(), psetGsfEleFull5x5SigmaIEtaIEtaWithSatCut(), psetGsfEleHadronicOverEMLinearCut(), psetGsfEleMissingHitsCut(), psetGsfEleSCEtaMultiRangeCut(), psetGsfEleTrkPtFall16IsoCut(), and psetMinPtCut().

439 def configureHEEPElectronID_V70(idName, wpEB, wpEE):
440  """
441  This function configures the full cms.PSet for a VID ID and returns it.
442  The inputs: two objects of the type HEEP_WorkingPoint_V1, one
443  containing the cuts for the Barrel (EB) and the other one for the Endcap (EE).
444  """
445  parameterSet = cms.PSet(
446  idName = cms.string(idName),
447  cutFlow = cms.VPSet(
448  psetMinPtCut(), #0
450  psetGsfEleDEtaInSeedCut(wpEB,wpEE), #2
451  psetGsfEleDPhiInCut(wpEB,wpEE), #3
454  psetGsfEleHadronicOverEMLinearCut(wpEB,wpEE), #6
455  psetGsfEleTrkPtFall16IsoCut(wpEB,wpEE), #7
456  psetGsfEleEmHadD1IsoRhoCut(wpEB,wpEE), #8
457  psetGsfEleDxyCut(wpEB,wpEE), #9
458  psetGsfEleMissingHitsCut(wpEB,wpEE), #10,
459  psetGsfEleEcalDrivenCut(wpEB,wpEE) #11
460  )
461  )
462  return parameterSet
463 
def heepElectronID_tools.psetGsfEleDEtaInSeedCut (   wpEB,
  wpEE 
)

Definition at line 163 of file heepElectronID_tools.py.

Referenced by configureHEEPElectronID_V51(), configureHEEPElectronID_V60(), configureHEEPElectronID_V60_80XAOD(), configureHEEPElectronID_V61(), and configureHEEPElectronID_V70().

164 def psetGsfEleDEtaInSeedCut(wpEB, wpEE):
165  return cms.PSet(
166  cutName = cms.string('GsfEleDEtaInSeedCut'),
167  dEtaInSeedCutValueEB = cms.double( wpEB.dEtaInSeedCut ),
168  dEtaInSeedCutValueEE = cms.double( wpEE.dEtaInSeedCut ),
169  barrelCutOff = cms.double(ebCutOff),
170  needsAdditionalProducts = cms.bool(False),
171  isIgnored = cms.bool(False)
172  )
173 
# Configure the cut on the dPhiIn
def heepElectronID_tools.psetGsfEleDPhiInCut (   wpEB,
  wpEE 
)

Definition at line 174 of file heepElectronID_tools.py.

Referenced by configureHEEPElectronID_V51(), configureHEEPElectronID_V60(), configureHEEPElectronID_V60_80XAOD(), configureHEEPElectronID_V61(), and configureHEEPElectronID_V70().

175 def psetGsfEleDPhiInCut(wpEB, wpEE):
176  return cms.PSet(
177  cutName = cms.string('GsfEleDPhiInCut'),
178  dPhiInCutValueEB = cms.double( wpEB.dPhiInCut ),
179  dPhiInCutValueEE = cms.double( wpEE.dPhiInCut ),
180  barrelCutOff = cms.double(ebCutOff),
181  needsAdditionalProducts = cms.bool(False),
182  isIgnored = cms.bool(False)
183  )
184 
# Confugure the full 5x5 sigmaIEtaIEta cut
def heepElectronID_tools.psetGsfEleDxyCut (   wpEB,
  wpEE 
)

Definition at line 351 of file heepElectronID_tools.py.

Referenced by configureHEEPElectronID_V51(), configureHEEPElectronID_V60(), configureHEEPElectronID_V60_80XAOD(), configureHEEPElectronID_V61(), and configureHEEPElectronID_V70().

352 def psetGsfEleDxyCut(wpEB, wpEE):
353  return cms.PSet(
354  cutName = cms.string('GsfEleDxyCut'),
355  dxyCutValueEB = cms.double( wpEB.dxyCut ),
356  dxyCutValueEE = cms.double( wpEE.dxyCut ),
357  vertexSrc = cms.InputTag("offlinePrimaryVertices"),
358  vertexSrcMiniAOD = cms.InputTag("offlineSlimmedPrimaryVertices"),
359  barrelCutOff = cms.double(ebCutOff),
360  needsAdditionalProducts = cms.bool(True),
361  isIgnored = cms.bool(False)
362  )
363 
# Configure the cut on missing hits
def heepElectronID_tools.psetGsfEleEcalDrivenCut (   wpEB,
  wpEE 
)

Definition at line 373 of file heepElectronID_tools.py.

Referenced by configureHEEPElectronID_V51(), configureHEEPElectronID_V60(), configureHEEPElectronID_V60_80XAOD(), configureHEEPElectronID_V61(), and configureHEEPElectronID_V70().

374 def psetGsfEleEcalDrivenCut(wpEB, wpEE):
375  return cms.PSet(
376  cutName = cms.string('GsfEleEcalDrivenCut'),
377  ecalDrivenEB = cms.int32( wpEB.ecalDrivenCut ),
378  ecalDrivenEE = cms.int32( wpEE.ecalDrivenCut ),
379  barrelCutOff = cms.double(ebCutOff),
380  needsAdditionalProducts = cms.bool(False),
381  isIgnored = cms.bool(False)
382  )
383 
384 # ==============================================================
385 # Define the complete cut sets
386 # ==============================================================
def heepElectronID_tools.psetGsfEleEmHadD1IsoRhoCut (   wpEB,
  wpEE 
)

Definition at line 335 of file heepElectronID_tools.py.

Referenced by configureHEEPElectronID_V51(), configureHEEPElectronID_V60(), configureHEEPElectronID_V60_80XAOD(), configureHEEPElectronID_V61(), and configureHEEPElectronID_V70().

336 def psetGsfEleEmHadD1IsoRhoCut(wpEB, wpEE):
337  return cms.PSet(
338  cutName = cms.string('GsfEleEmHadD1IsoRhoCut'),
339  slopeTermEB = cms.double( wpEB.ehIsoSlopeTerm ),
340  slopeTermEE = cms.double( wpEE.ehIsoSlopeTerm ),
341  slopeStartEB = cms.double( wpEB.ehIsoSlopeStart ),
342  slopeStartEE = cms.double( wpEE.ehIsoSlopeStart ),
343  constTermEB = cms.double( wpEB.ehIsoConstTerm ),
344  constTermEE = cms.double( wpEE.ehIsoConstTerm ),
345  rhoConstant = cms.double( wpEB.effAreaForEHIso), # expected to be the same for EB and EE
346  rho = cms.InputTag("fixedGridRhoFastjetAll"),
347  needsAdditionalProducts = cms.bool(True),
348  isIgnored = cms.bool(False)
349  )
350 
# Configure the dxy cut
def heepElectronID_tools.psetGsfEleFull5x5E2x5OverE5x5Cut (   wpEB,
  wpEE 
)

Definition at line 208 of file heepElectronID_tools.py.

Referenced by configureHEEPElectronID_V51(), configureHEEPElectronID_V60(), and configureHEEPElectronID_V61().

209 def psetGsfEleFull5x5E2x5OverE5x5Cut(wpEB, wpEE):
210  return cms.PSet(
211  cutName = cms.string('GsfEleFull5x5E2x5OverE5x5Cut'),
212  # E1x5 / E5x5
213  minE1x5OverE5x5EB = cms.double( wpEB.minE1x5OverE5x5Cut ),
214  minE1x5OverE5x5EE = cms.double( wpEE.minE1x5OverE5x5Cut ),
215  # E2x5 / E5x5
216  minE2x5OverE5x5EB = cms.double( wpEB.minE2x5OverE5x5Cut ),
217  minE2x5OverE5x5EE = cms.double( wpEE.minE2x5OverE5x5Cut ),
218  needsAdditionalProducts = cms.bool(False),
219  isIgnored = cms.bool(False)
220  )
# Configure XxX shower shape cuts
def heepElectronID_tools.psetGsfEleFull5x5E2x5OverE5x5WithSatCut (   wpEB,
  wpEE 
)

Definition at line 221 of file heepElectronID_tools.py.

Referenced by configureHEEPElectronID_V60_80XAOD(), and configureHEEPElectronID_V70().

223  return cms.PSet(
224  cutName = cms.string('GsfEleFull5x5E2x5OverE5x5WithSatCut'),
225  # E1x5 / E5x5
226  minE1x5OverE5x5EB = cms.double( wpEB.minE1x5OverE5x5Cut ),
227  minE1x5OverE5x5EE = cms.double( wpEE.minE1x5OverE5x5Cut ),
228  # E2x5 / E5x5
229  minE2x5OverE5x5EB = cms.double( wpEB.minE2x5OverE5x5Cut ),
230  minE2x5OverE5x5EE = cms.double( wpEE.minE2x5OverE5x5Cut ),
231  maxNrSatCrysIn5x5EB =cms.int32( 0 ),
232  maxNrSatCrysIn5x5EE =cms.int32( 0 ),
233  nrSatCrysValueMap = cms.InputTag("heepIDVarValueMaps","eleNrSaturateIn5x5"),
234  needsAdditionalProducts = cms.bool(True),
235  isIgnored = cms.bool(False)
236  )
# Configure the cut of E/H
def heepElectronID_tools.psetGsfEleFull5x5SigmaIEtaIEtaCut (   wpEB,
  wpEE 
)

Definition at line 185 of file heepElectronID_tools.py.

Referenced by configureHEEPElectronID_V51(), configureHEEPElectronID_V60(), and configureHEEPElectronID_V61().

186 def psetGsfEleFull5x5SigmaIEtaIEtaCut(wpEB, wpEE):
187  return cms.PSet(
188  cutName = cms.string('GsfEleFull5x5SigmaIEtaIEtaCut'),
189  full5x5SigmaIEtaIEtaCutValueEB = cms.double( wpEB.full5x5SigmaIEtaIEtaCut ),
190  full5x5SigmaIEtaIEtaCutValueEE = cms.double( wpEE.full5x5SigmaIEtaIEtaCut ),
191  barrelCutOff = cms.double(ebCutOff),
192  needsAdditionalProducts = cms.bool(False),
193  isIgnored = cms.bool(False)
194  )
def heepElectronID_tools.psetGsfEleFull5x5SigmaIEtaIEtaWithSatCut (   wpEB,
  wpEE 
)

Definition at line 195 of file heepElectronID_tools.py.

Referenced by configureHEEPElectronID_V60_80XAOD(), and configureHEEPElectronID_V70().

197  return cms.PSet(
198  cutName = cms.string('GsfEleFull5x5SigmaIEtaIEtaWithSatCut'),
199  maxSigmaIEtaIEtaEB = cms.double( wpEB.full5x5SigmaIEtaIEtaCut ),
200  maxSigmaIEtaIEtaEE = cms.double( wpEE.full5x5SigmaIEtaIEtaCut ),
201  maxNrSatCrysIn5x5EB =cms.int32( 0 ),
202  maxNrSatCrysIn5x5EE =cms.int32( 0 ),
203  nrSatCrysValueMap = cms.InputTag("heepIDVarValueMaps","eleNrSaturateIn5x5"),
204  needsAdditionalProducts = cms.bool(True),
205 
206  isIgnored = cms.bool(False)
207  )
# Configure XxX shower shape cuts
def heepElectronID_tools.psetGsfEleHadronicOverEMLinearCut (   wpEB,
  wpEE 
)

Definition at line 237 of file heepElectronID_tools.py.

Referenced by configureHEEPElectronID_V51(), configureHEEPElectronID_V60(), configureHEEPElectronID_V60_80XAOD(), configureHEEPElectronID_V61(), and configureHEEPElectronID_V70().

238 def psetGsfEleHadronicOverEMLinearCut(wpEB, wpEE) :
239  return cms.PSet(
240  cutName = cms.string('GsfEleHadronicOverEMLinearCut'),
241  # Three constants for the GsfEleHadronicOverEMLinearCut
242  # cut = constTerm if value < slopeStart
243  # cut = slopeTerm * (value - slopeStart) + constTerm if value >= slopeStart
244  slopeTermEB = cms.double( wpEB.hOverESlopeTerm ),
245  slopeTermEE = cms.double( wpEE.hOverESlopeTerm ),
246  slopeStartEB = cms.double( wpEB.hOverESlopeStart ),
247  slopeStartEE = cms.double( wpEE.hOverESlopeStart ),
248  constTermEB = cms.double( wpEB.hOverEConstTerm ),
249  constTermEE = cms.double( wpEE.hOverEConstTerm ),
250  needsAdditionalProducts = cms.bool(False),
251  isIgnored = cms.bool(False)
252  )
253 
# Configure the cut on the tracker isolation
def heepElectronID_tools.psetGsfEleMissingHitsCut (   wpEB,
  wpEE 
)

Definition at line 364 of file heepElectronID_tools.py.

Referenced by configureHEEPElectronID_V51(), configureHEEPElectronID_V60(), configureHEEPElectronID_V60_80XAOD(), configureHEEPElectronID_V61(), and configureHEEPElectronID_V70().

365 def psetGsfEleMissingHitsCut(wpEB, wpEE):
366  return cms.PSet(
367  cutName = cms.string('GsfEleMissingHitsCut'),
368  maxMissingHitsEB = cms.uint32( wpEB.maxMissingHitsCut ),
369  maxMissingHitsEE = cms.uint32( wpEE.maxMissingHitsCut ),
370  barrelCutOff = cms.double(ebCutOff),
371  needsAdditionalProducts = cms.bool(False),
372  isIgnored = cms.bool(False)
)
def heepElectronID_tools.psetGsfEleSCEtaMultiRangeCut ( )

Definition at line 148 of file heepElectronID_tools.py.

Referenced by configureHEEPElectronID_V51(), configureHEEPElectronID_V60(), configureHEEPElectronID_V60_80XAOD(), configureHEEPElectronID_V61(), and configureHEEPElectronID_V70().

150  return cms.PSet(
151  cutName = cms.string("GsfEleSCEtaMultiRangeCut"),
152  useAbsEta = cms.bool(True),
153  allowedEtaRanges = cms.VPSet(
154  cms.PSet( minEta = cms.double(0.0),
155  maxEta = cms.double(ebMax) ),
156  cms.PSet( minEta = cms.double(eeMin),
157  maxEta = cms.double(2.5) )
158  ),
159  needsAdditionalProducts = cms.bool(False),
160  isIgnored = cms.bool(False)
161  )
162 
# Configure the cut on the dEtaIn for the seed
def heepElectronID_tools.psetGsfEleTrkPtFall16IsoCut (   wpEB,
  wpEE 
)

Definition at line 312 of file heepElectronID_tools.py.

Referenced by configureHEEPElectronID_V70().

313 def psetGsfEleTrkPtFall16IsoCut(wpEB, wpEE):
314  return cms.PSet(
315  cutName = cms.string('GsfEleValueMapIsoRhoCut'),
316  # Three constants for the GsfEleTrkPtIsoCut
317  # cut = constTerm if value < slopeStart
318  # cut = slopeTerm * (value - slopeStart) + constTerm if value >= slopeStart
319  slopeTermEB = cms.double( wpEB.trkIsoSlopeTerm ),
320  slopeTermEE = cms.double( wpEE.trkIsoSlopeTerm ),
321  slopeStartEB = cms.double( wpEB.trkIsoSlopeStart ),
322  slopeStartEE = cms.double( wpEE.trkIsoSlopeStart ),
323  constTermEB = cms.double( wpEB.trkIsoConstTerm ),
324  constTermEE = cms.double( wpEE.trkIsoConstTerm ),
325  #no rho so we zero it out, if the input tag is empty, its ignored anyways
326  rhoEtStartEB = cms.double( 999999.),
327  rhoEtStartEE = cms.double( 999999.),
328  rhoEAEB = cms.double( 0. ),
329  rhoEAEE = cms.double( 0. ),
330  rho = cms.InputTag(""),
331  value = cms.InputTag("heepIDVarValueMaps","eleTrkPtIso"),
332  needsAdditionalProducts = cms.bool(True),
333  isIgnored = cms.bool(False)
334  )
# Configure the cut on the EM + Had_depth_1 isolation with rho correction
def heepElectronID_tools.psetGsfEleTrkPtIsoCut (   wpEB,
  wpEE 
)

Definition at line 254 of file heepElectronID_tools.py.

Referenced by configureHEEPElectronID_V51(), and configureHEEPElectronID_V60().

255 def psetGsfEleTrkPtIsoCut(wpEB, wpEE):
256  return cms.PSet(
257  cutName = cms.string('GsfEleTrkPtIsoCut'),
258  # Three constants for the GsfEleTrkPtIsoCut
259  # cut = constTerm if value < slopeStart
260  # cut = slopeTerm * (value - slopeStart) + constTerm if value >= slopeStart
261  slopeTermEB = cms.double( wpEB.trkIsoSlopeTerm ),
262  slopeTermEE = cms.double( wpEE.trkIsoSlopeTerm ),
263  slopeStartEB = cms.double( wpEB.trkIsoSlopeStart ),
264  slopeStartEE = cms.double( wpEE.trkIsoSlopeStart ),
265  constTermEB = cms.double( wpEB.trkIsoConstTerm ),
266  constTermEE = cms.double( wpEE.trkIsoConstTerm ),
267  needsAdditionalProducts = cms.bool(False),
268  isIgnored = cms.bool(False)
269  )
# Configure the cut on the tracker isolation with a rho correction (hack for 76X)
def heepElectronID_tools.psetGsfEleTrkPtIsoRhoCut (   wpEB,
  wpEE 
)

Definition at line 270 of file heepElectronID_tools.py.

Referenced by configureHEEPElectronID_V61().

271 def psetGsfEleTrkPtIsoRhoCut(wpEB, wpEE):
272  return cms.PSet(
273  cutName = cms.string('GsfEleTrkPtIsoRhoCut'),
274  # Three constants for the GsfEleTrkPtIsoCut
275  # cut = constTerm if value < slopeStart
276  # cut = slopeTerm * (value - slopeStart) + constTerm if value >= slopeStart
277  slopeTermEB = cms.double( wpEB.trkIsoSlopeTerm ),
278  slopeTermEE = cms.double( wpEE.trkIsoSlopeTerm ),
279  slopeStartEB = cms.double( wpEB.trkIsoSlopeStart ),
280  slopeStartEE = cms.double( wpEE.trkIsoSlopeStart ),
281  constTermEB = cms.double( wpEB.trkIsoConstTerm ),
282  constTermEE = cms.double( wpEE.trkIsoConstTerm ),
283  rhoEtStartEB = cms.double( wpEB.trkIsoRhoCorrStart),
284  rhoEtStartEE = cms.double( wpEE.trkIsoRhoCorrStart),
285  rhoEAEB = cms.double( wpEB.trkIsoEffArea),
286  rhoEAEE = cms.double( wpEE.trkIsoEffArea),
287  rho = cms.InputTag("fixedGridRhoFastjetAll"),
288  needsAdditionalProducts = cms.bool(True),
289  isIgnored = cms.bool(False)
)
def heepElectronID_tools.psetGsfEleTrkPtNoJetCoreIsoCut (   wpEB,
  wpEE 
)

Definition at line 290 of file heepElectronID_tools.py.

Referenced by configureHEEPElectronID_V60_80XAOD().

291 def psetGsfEleTrkPtNoJetCoreIsoCut(wpEB, wpEE):
292  return cms.PSet(
293  cutName = cms.string('GsfEleValueMapIsoRhoCut'),
294  # Three constants for the GsfEleTrkPtIsoCut
295  # cut = constTerm if value < slopeStart
296  # cut = slopeTerm * (value - slopeStart) + constTerm if value >= slopeStart
297  slopeTermEB = cms.double( wpEB.trkIsoSlopeTerm ),
298  slopeTermEE = cms.double( wpEE.trkIsoSlopeTerm ),
299  slopeStartEB = cms.double( wpEB.trkIsoSlopeStart ),
300  slopeStartEE = cms.double( wpEE.trkIsoSlopeStart ),
301  constTermEB = cms.double( wpEB.trkIsoConstTerm ),
302  constTermEE = cms.double( wpEE.trkIsoConstTerm ),
303  #no rho so we zero it out, if the input tag is empty, its ignored anyways
304  rhoEtStartEB = cms.double( 999999.),
305  rhoEtStartEE = cms.double( 999999.),
306  rhoEAEB = cms.double( 0. ),
307  rhoEAEE = cms.double( 0. ),
308  rho = cms.InputTag(""),
309  value = cms.InputTag("heepIDVarValueMaps","eleTrkPtIsoNoJetCore"),
310  needsAdditionalProducts = cms.bool(True),
311  isIgnored = cms.bool(False)
)
def heepElectronID_tools.psetMinPtCut ( )

Definition at line 139 of file heepElectronID_tools.py.

Referenced by configureHEEPElectronID_V51(), configureHEEPElectronID_V60(), configureHEEPElectronID_V60_80XAOD(), configureHEEPElectronID_V61(), and configureHEEPElectronID_V70().

140 def psetMinPtCut():
141  return cms.PSet(
142  cutName = cms.string("MinPtCut"),
143  minPt = cms.double(35.0),
144  needsAdditionalProducts = cms.bool(False),
145  isIgnored = cms.bool(False)
146  )
147 
# Take all particles in the eta ranges 0-ebMax and eeMin-2.5

Variable Documentation

float heepElectronID_tools.ebCutOff = 1.479

Definition at line 6 of file heepElectronID_tools.py.

float heepElectronID_tools.ebMax = 1.4442

Definition at line 4 of file heepElectronID_tools.py.

float heepElectronID_tools.eeMin = 1.566

Definition at line 5 of file heepElectronID_tools.py.