ATLAS Offline Software
Public Member Functions | List of all members
python.AsgAnalysisConfig.ObjectCutFlowBlock Class Reference
Inheritance diagram for python.AsgAnalysisConfig.ObjectCutFlowBlock:
Collaboration diagram for python.AsgAnalysisConfig.ObjectCutFlowBlock:

Public Member Functions

def __init__ (self, containerName='', selectionName='')
 
def makeAlgs (self, config)
 

Detailed Description

the ConfigBlock for an object cutflow

Definition at line 398 of file AsgAnalysisConfig.py.

Constructor & Destructor Documentation

◆ __init__()

def python.AsgAnalysisConfig.ObjectCutFlowBlock.__init__ (   self,
  containerName = '',
  selectionName = '' 
)

Definition at line 401 of file AsgAnalysisConfig.py.

401  def __init__ (self, containerName='', selectionName='') :
402  super (ObjectCutFlowBlock, self).__init__ ()
403  self.addOption ('containerName', containerName, type=str,
404  noneAction='error',
405  info="the name of the input container.")
406  self.addOption ('selectionName', selectionName, type=str,
407  noneAction='error',
408  info="the name of the selection to perform the cutflow for. The "
409  "default is '' (empty string), meaning that the cutflow is "
410  "performed for every object within the container. Specifying a "
411  "name (e.g. loose) generates the cutflow only for those object "
412  "that also pass that selection.")
413  self.addOption ('postfix', '', type=str,
414  info="a postfix to apply to decorations and algorithm names. "
415  "Typically not needed here.")
416 

Member Function Documentation

◆ makeAlgs()

def python.AsgAnalysisConfig.ObjectCutFlowBlock.makeAlgs (   self,
  config 
)

Definition at line 417 of file AsgAnalysisConfig.py.

417  def makeAlgs (self, config) :
418 
419  postfix = self.postfix
420  if postfix != '' and postfix[0] != '_' :
421  postfix = '_' + postfix
422 
423  alg = config.createAlgorithm( 'CP::ObjectCutFlowHistAlg', 'CutFlowDumperAlg_' + self.containerName + '_' + self.selectionName + postfix )
424  alg.histPattern = 'cflow_' + self.containerName + "_" + self.selectionName + postfix + '_%SYS%'
425  alg.selections = config.getSelectionCutFlow (self.containerName, self.selectionName)
426  alg.input = config.readName (self.containerName)
427  alg.histTitle = "Object Cutflow: " + self.containerName + "." + self.selectionName
428 
429 

The documentation for this class was generated from the following file:
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18