ATLAS Offline Software
Classes | Functions
python.ElectronAnalysisConfig Namespace Reference

Classes

class  ElectronCalibrationConfig
 
class  ElectronTriggerAnalysisSFBlock
 
class  ElectronWorkingPointConfig
 

Functions

def makeElectronCalibrationConfig (seq, containerName, postfix=None, crackVeto=None, isolationCorrection=None, forceFullSimConfig=None)
 
def makeElectronWorkingPointConfig (seq, containerName, workingPoint, selectionName, recomputeID=None, chargeIDSelectionRun2=None, recomputeChargeID=None, noEffSF=None, forceFullSimConfig=None)
 

Function Documentation

◆ makeElectronCalibrationConfig()

def python.ElectronAnalysisConfig.makeElectronCalibrationConfig (   seq,
  containerName,
  postfix = None,
  crackVeto = None,
  isolationCorrection = None,
  forceFullSimConfig = None 
)
Create electron calibration configuration blocks

This makes all the algorithms that need to be run first befor
all working point specific algorithms and that can be shared
between the working points.

Keyword arguments:
  postfix -- a postfix to apply to decorations and algorithm
             names.  this is mostly used/needed when using this
             sequence with multiple working points to ensure all
             names are unique.
  isolationCorrection -- Whether or not to perform isolation correction
  forceFullSimConfig -- imposes full-sim config for FastSim for testing

Definition at line 566 of file ElectronAnalysisConfig.py.

566 def makeElectronCalibrationConfig( seq, containerName, postfix = None,
567  crackVeto = None,
568  isolationCorrection = None,
569  forceFullSimConfig = None):
570  """Create electron calibration configuration blocks
571 
572  This makes all the algorithms that need to be run first befor
573  all working point specific algorithms and that can be shared
574  between the working points.
575 
576  Keyword arguments:
577  postfix -- a postfix to apply to decorations and algorithm
578  names. this is mostly used/needed when using this
579  sequence with multiple working points to ensure all
580  names are unique.
581  isolationCorrection -- Whether or not to perform isolation correction
582  forceFullSimConfig -- imposes full-sim config for FastSim for testing
583  """
584 
585  config = ElectronCalibrationConfig (containerName)
586  config.setOptionValue ('crackVeto', crackVeto)
587  config.setOptionValue ('isolationCorrection', isolationCorrection)
588  config.setOptionValue ('forceFullSimConfig', forceFullSimConfig)
589  seq.append (config)
590 
591 
592 
593 
594 

◆ makeElectronWorkingPointConfig()

def python.ElectronAnalysisConfig.makeElectronWorkingPointConfig (   seq,
  containerName,
  workingPoint,
  selectionName,
  recomputeID = None,
  chargeIDSelectionRun2 = None,
  recomputeChargeID = None,
  noEffSF = None,
  forceFullSimConfig = None 
)
Create electron analysis configuration blocks

Keyword arguments:
  workingPoint -- The working point to use
  selectionName -- a postfix to apply to decorations and algorithm
             names.  this is mostly used/needed when using this
             sequence with multiple working points to ensure all
             names are unique.
  recomputeID -- Whether to rerun the LH/DNN ID. If not, use derivation flags
  chargeIDSelectionRun2 -- Whether or not to perform charge ID/flip selection
  recomputeChargeID -- Whether to rerun the ECIDS. If not, use derivation flags
  noEffSF -- Disables the calculation of efficiencies and scale factors
  forceFullSimConfig -- imposes full-sim config for FastSim for testing

Definition at line 595 of file ElectronAnalysisConfig.py.

595 def makeElectronWorkingPointConfig( seq, containerName, workingPoint,
596  selectionName,
597  recomputeID = None,
598  chargeIDSelectionRun2 = None,
599  recomputeChargeID = None,
600  noEffSF = None,
601  forceFullSimConfig = None):
602  """Create electron analysis configuration blocks
603 
604  Keyword arguments:
605  workingPoint -- The working point to use
606  selectionName -- a postfix to apply to decorations and algorithm
607  names. this is mostly used/needed when using this
608  sequence with multiple working points to ensure all
609  names are unique.
610  recomputeID -- Whether to rerun the LH/DNN ID. If not, use derivation flags
611  chargeIDSelectionRun2 -- Whether or not to perform charge ID/flip selection
612  recomputeChargeID -- Whether to rerun the ECIDS. If not, use derivation flags
613  noEffSF -- Disables the calculation of efficiencies and scale factors
614  forceFullSimConfig -- imposes full-sim config for FastSim for testing
615  """
616 
617 
618  config = ElectronWorkingPointConfig (containerName, selectionName)
619  if workingPoint is not None :
620  splitWP = workingPoint.split ('.')
621  if len (splitWP) != 2 :
622  raise ValueError ('working point should be of format "likelihood.isolation", not ' + workingPoint)
623  config.setOptionValue ('identificationWP', splitWP[0])
624  config.setOptionValue ('isolationWP', splitWP[1])
625  config.setOptionValue ('recomputeID', recomputeID)
626  config.setOptionValue ('chargeIDSelectionRun2', chargeIDSelectionRun2)
627  config.setOptionValue ('recomputeChargeID', recomputeChargeID)
628  config.setOptionValue ('noEffSF', noEffSF)
629  config.setOptionValue ('forceFullSimConfig', forceFullSimConfig)
630  seq.append (config)
631 
632 
python.ElectronAnalysisConfig.makeElectronCalibrationConfig
def makeElectronCalibrationConfig(seq, containerName, postfix=None, crackVeto=None, isolationCorrection=None, forceFullSimConfig=None)
Definition: ElectronAnalysisConfig.py:566
python.ElectronAnalysisConfig.makeElectronWorkingPointConfig
def makeElectronWorkingPointConfig(seq, containerName, workingPoint, selectionName, recomputeID=None, chargeIDSelectionRun2=None, recomputeChargeID=None, noEffSF=None, forceFullSimConfig=None)
Definition: ElectronAnalysisConfig.py:595