ATLAS Offline Software
Classes | Functions
python.PhotonAnalysisConfig Namespace Reference

Classes

class  PhotonCalibrationConfig
 
class  PhotonWorkingPointConfig
 

Functions

def makePhotonCalibrationConfig (seq, containerName, postfix=None, crackVeto=None, enableCleaning=None, cleaningAllowLate=None, recomputeIsEM=None, forceFullSimConfig=None)
 
def makePhotonWorkingPointConfig (seq, containerName, workingPoint, selectionName, recomputeIsEM=None, noEffSF=None, forceFullSimConfig=None)
 

Function Documentation

◆ makePhotonCalibrationConfig()

def python.PhotonAnalysisConfig.makePhotonCalibrationConfig (   seq,
  containerName,
  postfix = None,
  crackVeto = None,
  enableCleaning = None,
  cleaningAllowLate = None,
  recomputeIsEM = None,
  forceFullSimConfig = None 
)
Create photon calibration analysis algorithms

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.

Keywrod 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.
  crackVeto -- Whether or not to perform eta crack veto
  enableCleaning -- Enable photon cleaning
  cleaningAllowLate -- Whether to ignore timing information in cleaning.
  recomputeIsEM -- Whether to rerun the cut-based selection. If not, use derivation flags
  forceFullSimConfig -- imposes full-sim config for FastSim for testing

Definition at line 427 of file PhotonAnalysisConfig.py.

427 def makePhotonCalibrationConfig( seq, containerName,
428  postfix = None,
429  crackVeto = None,
430  enableCleaning = None,
431  cleaningAllowLate = None,
432  recomputeIsEM = None,
433  forceFullSimConfig = None):
434  """Create photon calibration analysis algorithms
435 
436  This makes all the algorithms that need to be run first befor
437  all working point specific algorithms and that can be shared
438  between the working points.
439 
440  Keywrod arguments:
441  postfix -- a postfix to apply to decorations and algorithm
442  names. this is mostly used/needed when using this
443  sequence with multiple working points to ensure all
444  names are unique.
445  crackVeto -- Whether or not to perform eta crack veto
446  enableCleaning -- Enable photon cleaning
447  cleaningAllowLate -- Whether to ignore timing information in cleaning.
448  recomputeIsEM -- Whether to rerun the cut-based selection. If not, use derivation flags
449  forceFullSimConfig -- imposes full-sim config for FastSim for testing
450  """
451 
452  config = PhotonCalibrationConfig (containerName)
453  config.setOptionValue ('postfix', postfix)
454  config.setOptionValue ('crackVeto', crackVeto)
455  config.setOptionValue ('enableCleaning', enableCleaning)
456  config.setOptionValue ('cleaningAllowLate', cleaningAllowLate)
457  config.setOptionValue ('recomputeIsEM', recomputeIsEM)
458  config.setOptionValue ('forceFullSimConfig', forceFullSimConfig)
459  seq.append (config)
460 
461 
462 

◆ makePhotonWorkingPointConfig()

def python.PhotonAnalysisConfig.makePhotonWorkingPointConfig (   seq,
  containerName,
  workingPoint,
  selectionName,
  recomputeIsEM = None,
  noEffSF = None,
  forceFullSimConfig = None 
)
Create photon analysis algorithms for a single working point

Keywrod 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.
  recomputeIsEM -- Whether to rerun the cut-based selection. 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 463 of file PhotonAnalysisConfig.py.

463 def makePhotonWorkingPointConfig( seq, containerName, workingPoint, selectionName,
464  recomputeIsEM = None,
465  noEffSF = None,
466  forceFullSimConfig = None):
467  """Create photon analysis algorithms for a single working point
468 
469  Keywrod arguments:
470  workingPoint -- The working point to use
471  selectionName -- a postfix to apply to decorations and algorithm
472  names. this is mostly used/needed when using this
473  sequence with multiple working points to ensure all
474  names are unique.
475  recomputeIsEM -- Whether to rerun the cut-based selection. If not, use derivation flags
476  noEffSF -- Disables the calculation of efficiencies and scale factors
477  forceFullSimConfig -- imposes full-sim config for FastSim for testing
478  """
479 
480  config = PhotonWorkingPointConfig (containerName, selectionName)
481  if workingPoint is not None :
482  splitWP = workingPoint.split ('.')
483  if len (splitWP) != 2 :
484  raise ValueError ('working point should be of format "quality.isolation", not ' + workingPoint)
485  config.setOptionValue ('qualityWP', splitWP[0])
486  config.setOptionValue ('isolationWP', splitWP[1])
487  config.setOptionValue ('recomputeIsEM', recomputeIsEM)
488  config.setOptionValue ('noEffSF', noEffSF)
489  config.setOptionValue ('forceFullSimConfig', forceFullSimConfig)
490  seq.append (config)
python.PhotonAnalysisConfig.makePhotonCalibrationConfig
def makePhotonCalibrationConfig(seq, containerName, postfix=None, crackVeto=None, enableCleaning=None, cleaningAllowLate=None, recomputeIsEM=None, forceFullSimConfig=None)
Definition: PhotonAnalysisConfig.py:427
python.PhotonAnalysisConfig.makePhotonWorkingPointConfig
def makePhotonWorkingPointConfig(seq, containerName, workingPoint, selectionName, recomputeIsEM=None, noEffSF=None, forceFullSimConfig=None)
Definition: PhotonAnalysisConfig.py:463