CMS 3D CMS Logo

Classes | Functions | Variables
heepElectronID_tools Namespace Reference

Classes

class  HEEP_WorkingPoint_V1
 
class  HEEP_WorkingPoint_V2
 

Functions

def addHEEPProducersToSeq (process, seq, useMiniAOD, task=None)
 
def addHEEPVMProducerToSeq (process, seq, useMiniAOD, task=None)
 
def configureHEEPElectronID_V51 (wpEB, wpEE)
 
def configureHEEPElectronID_V60 (wpEB, wpEE)
 
def configureHEEPElectronID_V60_80XAOD (idName, wpEB, wpEE)
 
def configureHEEPElectronID_V61 (wpEB, wpEE)
 
def configureHEEPElectronID_V70 (idName, wpEB, wpEE)
 
def configureHEEPElectronID_V71 (idName, wpEB, wpEE, minEt)
 
def psetGsfEleDEtaInSeedCut (wpEB, wpEE)
 
def psetGsfEleDPhiInCut (wpEB, wpEE)
 
def psetGsfEleDxyCut (wpEB, wpEE)
 
def psetGsfEleEcalDrivenCut (wpEB, wpEE)
 
def psetGsfEleEmHadD1IsoRhoCut (wpEB, wpEE, energyType="EcalTrk")
 
def psetGsfEleFull5x5E2x5OverE5x5Cut (wpEB, wpEE)
 
def psetGsfEleFull5x5E2x5OverE5x5WithSatCut (wpEB, wpEE)
 
def psetGsfEleFull5x5SigmaIEtaIEtaCut (wpEB, wpEE)
 
def psetGsfEleFull5x5SigmaIEtaIEtaWithSatCut (wpEB, wpEE)
 
def psetGsfEleHadronicOverEMLinearCut (wpEB, wpEE)
 
def psetGsfEleMissingHitsCut (wpEB, wpEE)
 
def psetGsfEleSCEtaMultiRangeCut ()
 
def psetGsfEleTrkPtFall16IsoCut (wpEB, wpEE)
 
def psetGsfEleTrkPtIsoCut (wpEB, wpEE, useHEEPIso=False)
 
def psetGsfEleTrkPtIsoRhoCut (wpEB, wpEE)
 
def psetGsfEleTrkPtNoJetCoreIsoCut (wpEB, wpEE)
 
def psetMinEcalEtCut (cutValue=5.)
 
def psetMinPtCut (cutValue=35.)
 

Variables

 ebCutOff
 
 ebMax
 
 eeMin
 

Function Documentation

def heepElectronID_tools.addHEEPProducersToSeq (   process,
  seq,
  useMiniAOD,
  task = None 
)
currently no additional products are needed to run the HEEP ID so this 
function simply remains as a placeholder

Definition at line 576 of file heepElectronID_tools.py.

Referenced by vid_id_tools.setupVIDElectronSelection().

576 def addHEEPProducersToSeq(process,seq,useMiniAOD, task=None):
577  '''currently no additional products are needed to run the HEEP ID so this
578  function simply remains as a placeholder
579  '''
580  return
581 
def addHEEPProducersToSeq(process, seq, useMiniAOD, task=None)
def heepElectronID_tools.addHEEPVMProducerToSeq (   process,
  seq,
  useMiniAOD,
  task = None 
)

Definition at line 548 of file heepElectronID_tools.py.

548 def addHEEPVMProducerToSeq(process,seq,useMiniAOD, task=None):
549  newTask = cms.Task()
550  seq.associate(newTask)
551  if task is not None:
552  task.add(newTask)
553 
554  process.load("RecoEgamma.ElectronIdentification.heepIdVarValueMapProducer_cfi")
555  newTask.add(process.heepIDVarValueMaps)
556 
557  if useMiniAOD==False:
558  process.load("TrackingTools.TransientTrack.TransientTrackBuilder_cfi")
559  process.load("PhysicsTools.PatAlgos.slimming.primaryVertexAssociation_cfi")
560  process.load("PhysicsTools.PatAlgos.slimming.offlineSlimmedPrimaryVertices_cfi")
561  process.load("PhysicsTools.PatAlgos.slimming.packedPFCandidates_cfi")
562  from PhysicsTools.PatAlgos.slimming.packedPFCandidates_cfi import packedPFCandidates
563  process.packedCandsForTkIso = packedPFCandidates.clone()
564  process.packedCandsForTkIso.PuppiSrc=cms.InputTag("")
565  process.packedCandsForTkIso.PuppiNoLepSrc=cms.InputTag("")
566 
567  process.load("PhysicsTools.PatAlgos.slimming.lostTracks_cfi")
568  from PhysicsTools.PatAlgos.slimming.lostTracks_cfi import lostTracks
569  process.lostTracksForTkIso = lostTracks.clone()
570  process.lostTracksForTkIso.packedPFCandidates =cms.InputTag("packedCandsForTkIso")
571  newTask.add(process.primaryVertexAssociation,
572  process.offlineSlimmedPrimaryVertices,
573  process.packedCandsForTkIso,
574  process.lostTracksForTkIso)
575 
def addHEEPVMProducerToSeq(process, seq, useMiniAOD, task=None)
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 396 of file heepElectronID_tools.py.

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

397  """
398  This function configures the full cms.PSet for a VID ID and returns it.
399  The inputs: two objects of the type HEEP_WorkingPoint_V1, one
400  containing the cuts for the Barrel (EB) and the other one for the Endcap (EE).
401  """
402  parameterSet = cms.PSet(
403  idName = cms.string("heepElectronID-HEEPV51"),
404  cutFlow = cms.VPSet(
405  psetMinPtCut(cutValue=35.), #0
407  psetGsfEleDEtaInSeedCut(wpEB,wpEE), #2
408  psetGsfEleDPhiInCut(wpEB,wpEE), #3
409  psetGsfEleFull5x5SigmaIEtaIEtaCut(wpEB,wpEE), #4
410  psetGsfEleFull5x5E2x5OverE5x5Cut(wpEB,wpEE), #5
411  psetGsfEleHadronicOverEMLinearCut(wpEB,wpEE), #6
412  psetGsfEleTrkPtIsoCut(wpEB,wpEE), #7
413  psetGsfEleEmHadD1IsoRhoCut(wpEB,wpEE), #8
414  psetGsfEleDxyCut(wpEB,wpEE), #9
415  psetGsfEleMissingHitsCut(wpEB,wpEE), #10,
416  psetGsfEleEcalDrivenCut(wpEB,wpEE) #11
417  )
418  )
419  return parameterSet
420 
def psetGsfEleMissingHitsCut(wpEB, wpEE)
def psetGsfEleFull5x5E2x5OverE5x5Cut(wpEB, wpEE)
def psetGsfEleDxyCut(wpEB, wpEE)
def psetMinPtCut(cutValue=35.)
def psetGsfEleEcalDrivenCut(wpEB, wpEE)
def psetGsfEleEmHadD1IsoRhoCut(wpEB, wpEE, energyType="EcalTrk")
def psetGsfEleFull5x5SigmaIEtaIEtaCut(wpEB, wpEE)
def psetGsfEleHadronicOverEMLinearCut(wpEB, wpEE)
def psetGsfEleTrkPtIsoCut(wpEB, wpEE, useHEEPIso=False)
def psetGsfEleDEtaInSeedCut(wpEB, wpEE)
def psetGsfEleDPhiInCut(wpEB, wpEE)
def configureHEEPElectronID_V51(wpEB, wpEE)
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 421 of file heepElectronID_tools.py.

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

422  """
423  This function configures the full cms.PSet for a VID ID and returns it.
424  The inputs: two objects of the type HEEP_WorkingPoint_V1, one
425  containing the cuts for the Barrel (EB) and the other one for the Endcap (EE).
426  """
427  parameterSet = cms.PSet(
428  idName = cms.string("heepElectronID-HEEPV60"),
429  cutFlow = cms.VPSet(
430  psetMinPtCut(cutValue=35.), #0
432  psetGsfEleDEtaInSeedCut(wpEB,wpEE), #2
433  psetGsfEleDPhiInCut(wpEB,wpEE), #3
434  psetGsfEleFull5x5SigmaIEtaIEtaCut(wpEB,wpEE), #4
435  psetGsfEleFull5x5E2x5OverE5x5Cut(wpEB,wpEE), #5
436  psetGsfEleHadronicOverEMLinearCut(wpEB,wpEE), #6
437  psetGsfEleTrkPtIsoCut(wpEB,wpEE), #7
438  psetGsfEleEmHadD1IsoRhoCut(wpEB,wpEE), #8
439  psetGsfEleDxyCut(wpEB,wpEE), #9
440  psetGsfEleMissingHitsCut(wpEB,wpEE), #10,
441  psetGsfEleEcalDrivenCut(wpEB,wpEE) #11
442  )
443  )
444  return parameterSet
445 
446 
def psetGsfEleMissingHitsCut(wpEB, wpEE)
def psetGsfEleFull5x5E2x5OverE5x5Cut(wpEB, wpEE)
def configureHEEPElectronID_V60(wpEB, wpEE)
def psetGsfEleDxyCut(wpEB, wpEE)
def psetMinPtCut(cutValue=35.)
def psetGsfEleEcalDrivenCut(wpEB, wpEE)
def psetGsfEleEmHadD1IsoRhoCut(wpEB, wpEE, energyType="EcalTrk")
def psetGsfEleFull5x5SigmaIEtaIEtaCut(wpEB, wpEE)
def psetGsfEleHadronicOverEMLinearCut(wpEB, wpEE)
def psetGsfEleTrkPtIsoCut(wpEB, wpEE, useHEEPIso=False)
def psetGsfEleDEtaInSeedCut(wpEB, wpEE)
def psetGsfEleDPhiInCut(wpEB, wpEE)
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 498 of file heepElectronID_tools.py.

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

498 def configureHEEPElectronID_V60_80XAOD(idName, wpEB, wpEE):
499  """
500  This function configures the full cms.PSet for a VID ID and returns it.
501  The inputs: two objects of the type HEEP_WorkingPoint_V1, one
502  containing the cuts for the Barrel (EB) and the other one for the Endcap (EE).
503  """
504  parameterSet = cms.PSet(
505  idName = cms.string(idName),
506  cutFlow = cms.VPSet(
507  psetMinPtCut(cutValue=35.), #0
509  psetGsfEleDEtaInSeedCut(wpEB,wpEE), #2
510  psetGsfEleDPhiInCut(wpEB,wpEE), #3
513  psetGsfEleHadronicOverEMLinearCut(wpEB,wpEE), #6
514  psetGsfEleTrkPtNoJetCoreIsoCut(wpEB,wpEE), #7
515  psetGsfEleEmHadD1IsoRhoCut(wpEB,wpEE), #8
516  psetGsfEleDxyCut(wpEB,wpEE), #9
517  psetGsfEleMissingHitsCut(wpEB,wpEE), #10,
518  psetGsfEleEcalDrivenCut(wpEB,wpEE) #11
519  )
520  )
521  return parameterSet
522 
def psetGsfEleMissingHitsCut(wpEB, wpEE)
def psetGsfEleDxyCut(wpEB, wpEE)
def psetMinPtCut(cutValue=35.)
def psetGsfEleTrkPtNoJetCoreIsoCut(wpEB, wpEE)
def psetGsfEleFull5x5E2x5OverE5x5WithSatCut(wpEB, wpEE)
def psetGsfEleEcalDrivenCut(wpEB, wpEE)
def psetGsfEleEmHadD1IsoRhoCut(wpEB, wpEE, energyType="EcalTrk")
def psetGsfEleFull5x5SigmaIEtaIEtaWithSatCut(wpEB, wpEE)
def psetGsfEleHadronicOverEMLinearCut(wpEB, wpEE)
def psetGsfEleDEtaInSeedCut(wpEB, wpEE)
def configureHEEPElectronID_V60_80XAOD(idName, wpEB, wpEE)
def psetGsfEleDPhiInCut(wpEB, wpEE)
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 523 of file heepElectronID_tools.py.

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

524  """
525  This function configures the full cms.PSet for a VID ID and returns it.
526  The inputs: two objects of the type HEEP_WorkingPoint_V2, one
527  containing the cuts for the Barrel (EB) and the other one for the Endcap (EE).
528  """
529  parameterSet = cms.PSet(
530  idName = cms.string("heepElectronID-HEEPV61"),
531  cutFlow = cms.VPSet(
532  psetMinPtCut(cutValue=35.), #0
534  psetGsfEleDEtaInSeedCut(wpEB,wpEE), #2
535  psetGsfEleDPhiInCut(wpEB,wpEE), #3
536  psetGsfEleFull5x5SigmaIEtaIEtaCut(wpEB,wpEE), #4
537  psetGsfEleFull5x5E2x5OverE5x5Cut(wpEB,wpEE), #5
538  psetGsfEleHadronicOverEMLinearCut(wpEB,wpEE), #6
539  psetGsfEleTrkPtIsoRhoCut(wpEB,wpEE), #7
540  psetGsfEleEmHadD1IsoRhoCut(wpEB,wpEE), #8
541  psetGsfEleDxyCut(wpEB,wpEE), #9
542  psetGsfEleMissingHitsCut(wpEB,wpEE), #10,
543  psetGsfEleEcalDrivenCut(wpEB,wpEE) #11
544  )
545  )
546  return parameterSet
547 
def psetGsfEleMissingHitsCut(wpEB, wpEE)
def psetGsfEleFull5x5E2x5OverE5x5Cut(wpEB, wpEE)
def psetGsfEleDxyCut(wpEB, wpEE)
def psetMinPtCut(cutValue=35.)
def psetGsfEleEcalDrivenCut(wpEB, wpEE)
def psetGsfEleEmHadD1IsoRhoCut(wpEB, wpEE, energyType="EcalTrk")
def psetGsfEleTrkPtIsoRhoCut(wpEB, wpEE)
def configureHEEPElectronID_V61(wpEB, wpEE)
def psetGsfEleFull5x5SigmaIEtaIEtaCut(wpEB, wpEE)
def psetGsfEleHadronicOverEMLinearCut(wpEB, wpEE)
def psetGsfEleDEtaInSeedCut(wpEB, wpEE)
def psetGsfEleDPhiInCut(wpEB, wpEE)
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 447 of file heepElectronID_tools.py.

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

447 def configureHEEPElectronID_V70(idName, wpEB, wpEE):
448  """
449  This function configures the full cms.PSet for a VID ID and returns it.
450  The inputs: two objects of the type HEEP_WorkingPoint_V1, one
451  containing the cuts for the Barrel (EB) and the other one for the Endcap (EE).
452  """
453  parameterSet = cms.PSet(
454  idName = cms.string(idName),
455  cutFlow = cms.VPSet(
456  psetMinPtCut(cutValue=35.), #0
458  psetGsfEleDEtaInSeedCut(wpEB,wpEE), #2
459  psetGsfEleDPhiInCut(wpEB,wpEE), #3
462  psetGsfEleHadronicOverEMLinearCut(wpEB,wpEE), #6
463  psetGsfEleTrkPtIsoCut(wpEB,wpEE,useHEEPIso=True),#7
464  psetGsfEleEmHadD1IsoRhoCut(wpEB,wpEE), #8
465  psetGsfEleDxyCut(wpEB,wpEE), #9
466  psetGsfEleMissingHitsCut(wpEB,wpEE), #10,
467  psetGsfEleEcalDrivenCut(wpEB,wpEE) #11
468  )
469  )
470  return parameterSet
471 
def psetGsfEleMissingHitsCut(wpEB, wpEE)
def psetGsfEleDxyCut(wpEB, wpEE)
def psetMinPtCut(cutValue=35.)
def psetGsfEleFull5x5E2x5OverE5x5WithSatCut(wpEB, wpEE)
def psetGsfEleEcalDrivenCut(wpEB, wpEE)
def psetGsfEleEmHadD1IsoRhoCut(wpEB, wpEE, energyType="EcalTrk")
def psetGsfEleFull5x5SigmaIEtaIEtaWithSatCut(wpEB, wpEE)
def psetGsfEleHadronicOverEMLinearCut(wpEB, wpEE)
def psetGsfEleTrkPtIsoCut(wpEB, wpEE, useHEEPIso=False)
def configureHEEPElectronID_V70(idName, wpEB, wpEE)
def psetGsfEleDEtaInSeedCut(wpEB, wpEE)
def psetGsfEleDPhiInCut(wpEB, wpEE)
def heepElectronID_tools.configureHEEPElectronID_V71 (   idName,
  wpEB,
  wpEE,
  minEt 
)
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 472 of file heepElectronID_tools.py.

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

472 def configureHEEPElectronID_V71(idName, wpEB, wpEE,minEt):
473  """
474  This function configures the full cms.PSet for a VID ID and returns it.
475  The inputs: two objects of the type HEEP_WorkingPoint_V1, one
476  containing the cuts for the Barrel (EB) and the other one for the Endcap (EE).
477  """
478  parameterSet = cms.PSet(
479  idName = cms.string(idName),
480  cutFlow = cms.VPSet(
481  psetMinEcalEtCut(cutValue=minEt), #0
483  psetGsfEleDEtaInSeedCut(wpEB,wpEE), #2
484  psetGsfEleDPhiInCut(wpEB,wpEE), #3
487  psetGsfEleHadronicOverEMLinearCut(wpEB,wpEE), #6
488  psetGsfEleTrkPtIsoCut(wpEB,wpEE,useHEEPIso=True),#7
489  psetGsfEleEmHadD1IsoRhoCut(wpEB,wpEE,energyType="Ecal"), #8
490  psetGsfEleDxyCut(wpEB,wpEE), #9
491  psetGsfEleMissingHitsCut(wpEB,wpEE), #10,
492  psetGsfEleEcalDrivenCut(wpEB,wpEE) #11
493  )
494  )
495  return parameterSet
496 
497 
def psetGsfEleMissingHitsCut(wpEB, wpEE)
def psetGsfEleDxyCut(wpEB, wpEE)
def psetGsfEleFull5x5E2x5OverE5x5WithSatCut(wpEB, wpEE)
def psetGsfEleEcalDrivenCut(wpEB, wpEE)
def psetGsfEleEmHadD1IsoRhoCut(wpEB, wpEE, energyType="EcalTrk")
def psetGsfEleFull5x5SigmaIEtaIEtaWithSatCut(wpEB, wpEE)
def configureHEEPElectronID_V71(idName, wpEB, wpEE, minEt)
def psetGsfEleHadronicOverEMLinearCut(wpEB, wpEE)
def psetGsfEleTrkPtIsoCut(wpEB, wpEE, useHEEPIso=False)
def psetMinEcalEtCut(cutValue=5.)
def psetGsfEleDEtaInSeedCut(wpEB, wpEE)
def psetGsfEleDPhiInCut(wpEB, wpEE)
def heepElectronID_tools.psetGsfEleDEtaInSeedCut (   wpEB,
  wpEE 
)

Definition at line 172 of file heepElectronID_tools.py.

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

172 def psetGsfEleDEtaInSeedCut(wpEB, wpEE):
173  return cms.PSet(
174  cutName = cms.string('GsfEleDEtaInSeedCut'),
175  dEtaInSeedCutValueEB = cms.double( wpEB.dEtaInSeedCut ),
176  dEtaInSeedCutValueEE = cms.double( wpEE.dEtaInSeedCut ),
177  barrelCutOff = cms.double(ebCutOff),
178  needsAdditionalProducts = cms.bool(False),
179  isIgnored = cms.bool(False)
180  )
181 
182 # Configure the cut on the dPhiIn
def psetGsfEleDEtaInSeedCut(wpEB, wpEE)
def heepElectronID_tools.psetGsfEleDPhiInCut (   wpEB,
  wpEE 
)

Definition at line 183 of file heepElectronID_tools.py.

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

183 def psetGsfEleDPhiInCut(wpEB, wpEE):
184  return cms.PSet(
185  cutName = cms.string('GsfEleDPhiInCut'),
186  dPhiInCutValueEB = cms.double( wpEB.dPhiInCut ),
187  dPhiInCutValueEE = cms.double( wpEE.dPhiInCut ),
188  barrelCutOff = cms.double(ebCutOff),
189  needsAdditionalProducts = cms.bool(False),
190  isIgnored = cms.bool(False)
191  )
192 
193 # Confugure the full 5x5 sigmaIEtaIEta cut
def psetGsfEleDPhiInCut(wpEB, wpEE)
def heepElectronID_tools.psetGsfEleDxyCut (   wpEB,
  wpEE 
)

Definition at line 360 of file heepElectronID_tools.py.

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

360 def psetGsfEleDxyCut(wpEB, wpEE):
361  return cms.PSet(
362  cutName = cms.string('GsfEleDxyCut'),
363  dxyCutValueEB = cms.double( wpEB.dxyCut ),
364  dxyCutValueEE = cms.double( wpEE.dxyCut ),
365  vertexSrc = cms.InputTag("offlinePrimaryVertices"),
366  vertexSrcMiniAOD = cms.InputTag("offlineSlimmedPrimaryVertices"),
367  barrelCutOff = cms.double(ebCutOff),
368  needsAdditionalProducts = cms.bool(True),
369  isIgnored = cms.bool(False)
370  )
371 
372 # Configure the cut on missing hits
def psetGsfEleDxyCut(wpEB, wpEE)
def heepElectronID_tools.psetGsfEleEcalDrivenCut (   wpEB,
  wpEE 
)

Definition at line 382 of file heepElectronID_tools.py.

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

382 def psetGsfEleEcalDrivenCut(wpEB, wpEE):
383  return cms.PSet(
384  cutName = cms.string('GsfEleEcalDrivenCut'),
385  ecalDrivenEB = cms.int32( wpEB.ecalDrivenCut ),
386  ecalDrivenEE = cms.int32( wpEE.ecalDrivenCut ),
387  barrelCutOff = cms.double(ebCutOff),
388  needsAdditionalProducts = cms.bool(False),
389  isIgnored = cms.bool(False)
390  )
391 
392 # ==============================================================
393 # Define the complete cut sets
394 # ==============================================================
395 
def psetGsfEleEcalDrivenCut(wpEB, wpEE)
def heepElectronID_tools.psetGsfEleEmHadD1IsoRhoCut (   wpEB,
  wpEE,
  energyType = "EcalTrk" 
)

Definition at line 343 of file heepElectronID_tools.py.

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

343 def psetGsfEleEmHadD1IsoRhoCut(wpEB, wpEE,energyType="EcalTrk"):
344  return cms.PSet(
345  cutName = cms.string('GsfEleEmHadD1IsoRhoCut'),
346  slopeTermEB = cms.double( wpEB.ehIsoSlopeTerm ),
347  slopeTermEE = cms.double( wpEE.ehIsoSlopeTerm ),
348  slopeStartEB = cms.double( wpEB.ehIsoSlopeStart ),
349  slopeStartEE = cms.double( wpEE.ehIsoSlopeStart ),
350  constTermEB = cms.double( wpEB.ehIsoConstTerm ),
351  constTermEE = cms.double( wpEE.ehIsoConstTerm ),
352  energyType = cms.string( energyType ),
353  rhoConstant = cms.double( wpEB.effAreaForEHIso), # expected to be the same for EB and EE
354  rho = cms.InputTag("fixedGridRhoFastjetAll"),
355  needsAdditionalProducts = cms.bool(True),
356  isIgnored = cms.bool(False)
357  )
358 
359 # Configure the dxy cut
def psetGsfEleEmHadD1IsoRhoCut(wpEB, wpEE, energyType="EcalTrk")
def heepElectronID_tools.psetGsfEleFull5x5E2x5OverE5x5Cut (   wpEB,
  wpEE 
)

Definition at line 216 of file heepElectronID_tools.py.

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

217  return cms.PSet(
218  cutName = cms.string('GsfEleFull5x5E2x5OverE5x5Cut'),
219  # E1x5 / E5x5
220  minE1x5OverE5x5EB = cms.double( wpEB.minE1x5OverE5x5Cut ),
221  minE1x5OverE5x5EE = cms.double( wpEE.minE1x5OverE5x5Cut ),
222  # E2x5 / E5x5
223  minE2x5OverE5x5EB = cms.double( wpEB.minE2x5OverE5x5Cut ),
224  minE2x5OverE5x5EE = cms.double( wpEE.minE2x5OverE5x5Cut ),
225  needsAdditionalProducts = cms.bool(False),
226  isIgnored = cms.bool(False)
227  )
228 # Configure XxX shower shape cuts
def psetGsfEleFull5x5E2x5OverE5x5Cut(wpEB, wpEE)
def heepElectronID_tools.psetGsfEleFull5x5E2x5OverE5x5WithSatCut (   wpEB,
  wpEE 
)

Definition at line 229 of file heepElectronID_tools.py.

Referenced by configureHEEPElectronID_V60_80XAOD(), configureHEEPElectronID_V70(), and configureHEEPElectronID_V71().

230  return cms.PSet(
231  cutName = cms.string('GsfEleFull5x5E2x5OverE5x5WithSatCut'),
232  # E1x5 / E5x5
233  minE1x5OverE5x5EB = cms.double( wpEB.minE1x5OverE5x5Cut ),
234  minE1x5OverE5x5EE = cms.double( wpEE.minE1x5OverE5x5Cut ),
235  # E2x5 / E5x5
236  minE2x5OverE5x5EB = cms.double( wpEB.minE2x5OverE5x5Cut ),
237  minE2x5OverE5x5EE = cms.double( wpEE.minE2x5OverE5x5Cut ),
238  maxNrSatCrysIn5x5EB =cms.int32( 0 ),
239  maxNrSatCrysIn5x5EE =cms.int32( 0 ),
240  needsAdditionalProducts = cms.bool(False),
241  isIgnored = cms.bool(False)
242  )
243 # Configure the cut of E/H
def psetGsfEleFull5x5E2x5OverE5x5WithSatCut(wpEB, wpEE)
def heepElectronID_tools.psetGsfEleFull5x5SigmaIEtaIEtaCut (   wpEB,
  wpEE 
)

Definition at line 194 of file heepElectronID_tools.py.

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

195  return cms.PSet(
196  cutName = cms.string('GsfEleFull5x5SigmaIEtaIEtaCut'),
197  full5x5SigmaIEtaIEtaCutValueEB = cms.double( wpEB.full5x5SigmaIEtaIEtaCut ),
198  full5x5SigmaIEtaIEtaCutValueEE = cms.double( wpEE.full5x5SigmaIEtaIEtaCut ),
199  barrelCutOff = cms.double(ebCutOff),
200  needsAdditionalProducts = cms.bool(False),
201  isIgnored = cms.bool(False)
202  )
203 
def psetGsfEleFull5x5SigmaIEtaIEtaCut(wpEB, wpEE)
def heepElectronID_tools.psetGsfEleFull5x5SigmaIEtaIEtaWithSatCut (   wpEB,
  wpEE 
)

Definition at line 204 of file heepElectronID_tools.py.

Referenced by configureHEEPElectronID_V60_80XAOD(), configureHEEPElectronID_V70(), and configureHEEPElectronID_V71().

205  return cms.PSet(
206  cutName = cms.string('GsfEleFull5x5SigmaIEtaIEtaWithSatCut'),
207  maxSigmaIEtaIEtaEB = cms.double( wpEB.full5x5SigmaIEtaIEtaCut ),
208  maxSigmaIEtaIEtaEE = cms.double( wpEE.full5x5SigmaIEtaIEtaCut ),
209  maxNrSatCrysIn5x5EB =cms.int32( 0 ),
210  maxNrSatCrysIn5x5EE =cms.int32( 0 ),
211  needsAdditionalProducts = cms.bool(False),
212 
213  isIgnored = cms.bool(False)
214  )
215 # Configure XxX shower shape cuts
def psetGsfEleFull5x5SigmaIEtaIEtaWithSatCut(wpEB, wpEE)
def heepElectronID_tools.psetGsfEleHadronicOverEMLinearCut (   wpEB,
  wpEE 
)

Definition at line 244 of file heepElectronID_tools.py.

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

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

Definition at line 373 of file heepElectronID_tools.py.

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

373 def psetGsfEleMissingHitsCut(wpEB, wpEE):
374  return cms.PSet(
375  cutName = cms.string('GsfEleMissingHitsCut'),
376  maxMissingHitsEB = cms.uint32( wpEB.maxMissingHitsCut ),
377  maxMissingHitsEE = cms.uint32( wpEE.maxMissingHitsCut ),
378  barrelCutOff = cms.double(ebCutOff),
379  needsAdditionalProducts = cms.bool(False),
380  isIgnored = cms.bool(False)
381  )
def psetGsfEleMissingHitsCut(wpEB, wpEE)
def heepElectronID_tools.psetGsfEleSCEtaMultiRangeCut ( )

Definition at line 157 of file heepElectronID_tools.py.

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

158  return cms.PSet(
159  cutName = cms.string("GsfEleSCEtaMultiRangeCut"),
160  useAbsEta = cms.bool(True),
161  allowedEtaRanges = cms.VPSet(
162  cms.PSet( minEta = cms.double(0.0),
163  maxEta = cms.double(ebMax) ),
164  cms.PSet( minEta = cms.double(eeMin),
165  maxEta = cms.double(2.5) )
166  ),
167  needsAdditionalProducts = cms.bool(False),
168  isIgnored = cms.bool(False)
169  )
170 
171 # Configure the cut on the dEtaIn for the seed
def heepElectronID_tools.psetGsfEleTrkPtFall16IsoCut (   wpEB,
  wpEE 
)

Definition at line 320 of file heepElectronID_tools.py.

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

Definition at line 261 of file heepElectronID_tools.py.

Referenced by configureHEEPElectronID_V51(), configureHEEPElectronID_V60(), configureHEEPElectronID_V70(), and configureHEEPElectronID_V71().

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

Definition at line 278 of file heepElectronID_tools.py.

Referenced by configureHEEPElectronID_V61().

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

Definition at line 298 of file heepElectronID_tools.py.

Referenced by configureHEEPElectronID_V60_80XAOD().

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

Definition at line 148 of file heepElectronID_tools.py.

Referenced by configureHEEPElectronID_V71().

148 def psetMinEcalEtCut(cutValue=5.):
149  return cms.PSet(
150  cutName = cms.string("GsfEleMinEcalEtCut"),
151  minEt = cms.double(cutValue),
152  needsAdditionalProducts = cms.bool(False),
153  isIgnored = cms.bool(False)
154  )
155 
156 # Take all particles in the eta ranges 0-ebMax and eeMin-2.5
def psetMinEcalEtCut(cutValue=5.)
def heepElectronID_tools.psetMinPtCut (   cutValue = 35.)

Definition at line 139 of file heepElectronID_tools.py.

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

139 def psetMinPtCut(cutValue=35.):
140  return cms.PSet(
141  cutName = cms.string("MinPtCut"),
142  minPt = cms.double(cutValue),
143  needsAdditionalProducts = cms.bool(False),
144  isIgnored = cms.bool(False)
145  )
146 
147 # The mininum pt cut is set to 5 GeV
def psetMinPtCut(cutValue=35.)

Variable Documentation

heepElectronID_tools.ebCutOff

Definition at line 6 of file heepElectronID_tools.py.

heepElectronID_tools.ebMax

Definition at line 4 of file heepElectronID_tools.py.

heepElectronID_tools.eeMin

Definition at line 5 of file heepElectronID_tools.py.