ATLAS Offline Software
Loading...
Searching...
No Matches
python.AsgAnalysisConfig.ObjectCutFlowBlock Class Reference
Inheritance diagram for python.AsgAnalysisConfig.ObjectCutFlowBlock:
Collaboration diagram for python.AsgAnalysisConfig.ObjectCutFlowBlock:

Public Member Functions

 __init__ (self)
 instanceName (self)
 makeAlgs (self, config)

Detailed Description

the ConfigBlock for an object cutflow

Definition at line 583 of file AsgAnalysisConfig.py.

Constructor & Destructor Documentation

◆ __init__()

python.AsgAnalysisConfig.ObjectCutFlowBlock.__init__ ( self)

Definition at line 586 of file AsgAnalysisConfig.py.

586 def __init__ (self) :
587 super (ObjectCutFlowBlock, self).__init__ ()
588 self.addOption ('containerName', '', type=str,
589 noneAction='error',
590 info="the name of the input container.")
591 self.addOption ('selectionName', '', type=str,
592 noneAction='error',
593 info="the name of the selection to perform the cutflow for. The "
594 "default is '' (empty string), meaning that the cutflow is "
595 "performed for every object within the container. Specifying a "
596 "name (e.g. loose) generates the cutflow only for those object "
597 "that also pass that selection.")
598 self.addOption ('forceCutSequence', False, type=bool,
599 info="whether to force the cut sequence and not accept objects "
600 "if previous cuts failed. The default is False.")
601

Member Function Documentation

◆ instanceName()

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

Definition at line 602 of file AsgAnalysisConfig.py.

602 def instanceName (self) :
603 """Return the instance name for this block"""
604 return self.containerName + '_' + self.selectionName
605

◆ makeAlgs()

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

Definition at line 606 of file AsgAnalysisConfig.py.

606 def makeAlgs (self, config) :
607
608 alg = config.createAlgorithm( 'CP::ObjectCutFlowHistAlg', 'CutFlowDumperAlg' )
609 alg.histPattern = 'cflow_' + self.containerName + "_" + self.selectionName + '_%SYS%'
610 alg.selections = config.getSelectionCutFlow (self.containerName, self.selectionName)
611 alg.input = config.readName (self.containerName)
612 alg.histTitle = "Object Cutflow: " + self.containerName + "." + self.selectionName
613 alg.forceCutSequence = self.forceCutSequence
614
615

The documentation for this class was generated from the following file: