Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | List of all members
python.AsgAnalysisConfig.EventCutFlowBlock Class Reference
Inheritance diagram for python.AsgAnalysisConfig.EventCutFlowBlock:
Collaboration diagram for python.AsgAnalysisConfig.EventCutFlowBlock:

Public Member Functions

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

Detailed Description

the ConfigBlock for an event-level cutflow

Definition at line 426 of file AsgAnalysisConfig.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 429 of file AsgAnalysisConfig.py.

429  def __init__ (self, containerName='', selectionName='') :
430  super (EventCutFlowBlock, self).__init__ ()
431  self.addOption ('containerName', containerName, type=str,
432  noneAction='error',
433  info="the name of the input container, typically EventInfo.")
434  self.addOption ('selectionName', selectionName, type=str,
435  noneAction='error',
436  info="the name of an optional selection decoration to use.")
437  self.addOption ('customSelections', [], type=None,
438  info="the selections for which to generate cutflow histograms. If "
439  "a single string, corresponding to a particular event selection, "
440  "the event cutflow for that selection will be looked up. If a list "
441  "of strings, will use explicitly those selections. If left blank, "
442  "all selections attached to the container will be looked up.")
443  self.addOption ('postfix', '', type=str,
444  info="a postfix to apply in the naming of cutflow histograms. Set "
445  "it when defining multiple cutflows.")
446 

Member Function Documentation

◆ makeAlgs()

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

Definition at line 447 of file AsgAnalysisConfig.py.

447  def makeAlgs (self, config) :
448 
449  postfix = self.postfix
450  if postfix != '' and postfix[0] != '_' :
451  postfix = '_' + postfix
452 
453  alg = config.createAlgorithm( 'CP::EventCutFlowHistAlg', 'CutFlowDumperAlg_' + self.containerName + '_' + self.selectionName + postfix )
454  alg.histPattern = 'cflow_' + self.containerName + "_" + self.selectionName + postfix + '_%SYS%'
455  # find out which selection decorations to use
456  if isinstance(self.customSelections, str):
457  # user provides a dynamic reference to selections, corresponding to an EventSelection alg
458  alg.selections = config.getEventCutFlow(self.customSelections)
459  elif len(self.customSelections) > 0:
460  # user provides a list of hardcoded selections
461  alg.selections = self.customSelections
462  else:
463  # user provides nothing: get all available selections from EventInfo directly
464  alg.selections = config.getSelectionCutFlow (self.containerName, self.selectionName)
465  alg.selections = [sel+',as_char' for sel in alg.selections]
466  if self.selectionName:
467  alg.preselection = self.selectionName + '_%SYS%'
468  alg.eventInfo = config.readName (self.containerName)
469  alg.histTitle = "Event Cutflow: " + self.containerName + "." + self.selectionName
470 
471 

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