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)
 
def instanceName (self)
 
def makeAlgs (self, config)
 

Detailed Description

the ConfigBlock for an object cutflow

Definition at line 511 of file AsgAnalysisConfig.py.

Constructor & Destructor Documentation

◆ __init__()

def python.AsgAnalysisConfig.ObjectCutFlowBlock.__init__ (   self)

Definition at line 514 of file AsgAnalysisConfig.py.

514  def __init__ (self) :
515  super (ObjectCutFlowBlock, self).__init__ ()
516  self.addOption ('containerName', '', type=str,
517  noneAction='error',
518  info="the name of the input container.")
519  self.addOption ('selectionName', '', type=str,
520  noneAction='error',
521  info="the name of the selection to perform the cutflow for. The "
522  "default is '' (empty string), meaning that the cutflow is "
523  "performed for every object within the container. Specifying a "
524  "name (e.g. loose) generates the cutflow only for those object "
525  "that also pass that selection.")
526  self.addOption ('forceCutSequence', False, type=bool,
527  info="whether to force the cut sequence and not accept objects "
528  "if previous cuts failed. The default is False.")
529 

Member Function Documentation

◆ instanceName()

def python.AsgAnalysisConfig.ObjectCutFlowBlock.instanceName (   self)
Return the instance name for this block

Definition at line 530 of file AsgAnalysisConfig.py.

530  def instanceName (self) :
531  """Return the instance name for this block"""
532  return self.containerName + '_' + self.selectionName
533 

◆ makeAlgs()

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

Definition at line 534 of file AsgAnalysisConfig.py.

534  def makeAlgs (self, config) :
535 
536  alg = config.createAlgorithm( 'CP::ObjectCutFlowHistAlg', 'CutFlowDumperAlg' )
537  alg.histPattern = 'cflow_' + self.containerName + "_" + self.selectionName + '_%SYS%'
538  alg.selections = config.getSelectionCutFlow (self.containerName, self.selectionName)
539  alg.input = config.readName (self.containerName)
540  alg.histTitle = "Object Cutflow: " + self.containerName + "." + self.selectionName
541  alg.forceCutSequence = self.forceCutSequence
542 
543 

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