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 555 of file ElectronAnalysisConfig.py.

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

◆ 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 584 of file ElectronAnalysisConfig.py.

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