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 517 of file AsgAnalysisConfig.py.

Constructor & Destructor Documentation

◆ __init__()

def python.AsgAnalysisConfig.ObjectCutFlowBlock.__init__ (   self)

Definition at line 520 of file AsgAnalysisConfig.py.

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

Member Function Documentation

◆ instanceName()

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

Definition at line 536 of file AsgAnalysisConfig.py.

536  def instanceName (self) :
537  """Return the instance name for this block"""
538  return self.containerName + '_' + self.selectionName
539 

◆ makeAlgs()

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

Definition at line 540 of file AsgAnalysisConfig.py.

540  def makeAlgs (self, config) :
541 
542  alg = config.createAlgorithm( 'CP::ObjectCutFlowHistAlg', 'CutFlowDumperAlg' )
543  alg.histPattern = 'cflow_' + self.containerName + "_" + self.selectionName + '_%SYS%'
544  alg.selections = config.getSelectionCutFlow (self.containerName, self.selectionName)
545  alg.input = config.readName (self.containerName)
546  alg.histTitle = "Object Cutflow: " + self.containerName + "." + self.selectionName
547  alg.forceCutSequence = self.forceCutSequence
548 
549 

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