ATLAS Offline Software
Classes | Functions
python.MuonAnalysisConfig Namespace Reference

Classes

class  MuonCalibrationConfig
 
class  MuonTriggerAnalysisSFBlock
 
class  MuonWorkingPointConfig
 

Functions

def makeMuonCalibrationConfig (seq, containerName, postfix=None)
 
def makeMuonWorkingPointConfig (seq, containerName, workingPoint, selectionName, addSelectionToPreselection=None, systematicBreakdown=None, noEffSF=None, onlyRecoEffSF=None)
 

Function Documentation

◆ makeMuonCalibrationConfig()

def python.MuonAnalysisConfig.makeMuonCalibrationConfig (   seq,
  containerName,
  postfix = None 
)
Create muon 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.

Keyword arguments:
  containerName -- name of the output container
  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.

Definition at line 325 of file MuonAnalysisConfig.py.

325 def makeMuonCalibrationConfig( seq, containerName,
326  postfix = None):
327  """Create muon calibration analysis algorithms
328 
329  This makes all the algorithms that need to be run first befor
330  all working point specific algorithms and that can be shared
331  between the working points.
332 
333  Keyword arguments:
334  containerName -- name of the output container
335  postfix -- a postfix to apply to decorations and algorithm
336  names. this is mostly used/needed when using this
337  sequence with multiple working points to ensure all
338  names are unique.
339  """
340 
341  config = MuonCalibrationConfig (containerName)
342  config.setOptionValue ('postfix', postfix)
343  seq.append (config)
344 
345 
346 
347 
348 

◆ makeMuonWorkingPointConfig()

def python.MuonAnalysisConfig.makeMuonWorkingPointConfig (   seq,
  containerName,
  workingPoint,
  selectionName,
  addSelectionToPreselection = None,
  systematicBreakdown = None,
  noEffSF = None,
  onlyRecoEffSF = None 
)
Create muon analysis algorithms for a single working point

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.
  addSelectionToPreselection -- Whether or not to apply muon quality selection
                            when creating output containers.
  systematicBreakdown -- enables the full breakdown of eff SF systematics
  noEffSF -- Disables the calculation of efficiencies and scale factors
  onlyRecoEffSF -- Only enables the reconstruction scale factor

Definition at line 349 of file MuonAnalysisConfig.py.

349 def makeMuonWorkingPointConfig( seq, containerName, workingPoint, selectionName,
350  addSelectionToPreselection = None,
351  systematicBreakdown = None,
352  noEffSF = None,
353  onlyRecoEffSF = None ):
354  """Create muon analysis algorithms for a single working point
355 
356  Keyword arguments:
357  workingPoint -- The working point to use
358  selectionName -- a postfix to apply to decorations and algorithm
359  names. this is mostly used/needed when using this
360  sequence with multiple working points to ensure all
361  names are unique.
362  addSelectionToPreselection -- Whether or not to apply muon quality selection
363  when creating output containers.
364  systematicBreakdown -- enables the full breakdown of eff SF systematics
365  noEffSF -- Disables the calculation of efficiencies and scale factors
366  onlyRecoEffSF -- Only enables the reconstruction scale factor
367  """
368 
369 
370  config = MuonWorkingPointConfig (containerName, selectionName)
371  if workingPoint is not None :
372  splitWP = workingPoint.split ('.')
373  if len (splitWP) != 2 :
374  raise ValueError ('working point should be of format "quality.isolation", not ' + workingPoint)
375  config.setOptionValue ('quality', splitWP[0])
376  config.setOptionValue ('isolation', splitWP[1])
377  config.setOptionValue ('addSelectionToPreselection', addSelectionToPreselection)
378  config.setOptionValue ('systematicBreakdown', systematicBreakdown)
379  config.setOptionValue ('noEffSF', noEffSF)
380  config.setOptionValue ('onlyRecoEffSF', onlyRecoEffSF)
381  seq.append (config)
382 
383 
python.MuonAnalysisConfig.makeMuonWorkingPointConfig
def makeMuonWorkingPointConfig(seq, containerName, workingPoint, selectionName, addSelectionToPreselection=None, systematicBreakdown=None, noEffSF=None, onlyRecoEffSF=None)
Definition: MuonAnalysisConfig.py:349
python.MuonAnalysisConfig.makeMuonCalibrationConfig
def makeMuonCalibrationConfig(seq, containerName, postfix=None)
Definition: MuonAnalysisConfig.py:325