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

Constructor & Destructor Documentation

◆ __init__()

python.AsgAnalysisConfig.ObjectCutFlowBlock.__init__ ( self)

Definition at line 627 of file AsgAnalysisConfig.py.

627 def __init__ (self) :
628 super (ObjectCutFlowBlock, self).__init__ ()
629 self.addOption ('containerName', '', type=str,
630 noneAction='error',
631 info="the name of the input container.")
632 self.addOption ('selectionName', '', type=str,
633 noneAction='error',
634 info="the name of the selection to perform the cutflow for. If left empty, "
635 "the cutflow is "
636 "performed for every object within the container. Specifying a "
637 "name (e.g. `loose`) generates the cutflow only for those objects "
638 "that also pass that selection.")
639 self.addOption ('forceCutSequence', False, type=bool,
640 info="whether to force the cut sequence and not accept objects "
641 "if previous cuts failed.")
642 self.addOption ('streamName', None, type=str,
643 info="name of the output stream to save the cutflow histogram in.")
644

Member Function Documentation

◆ instanceName()

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

Definition at line 645 of file AsgAnalysisConfig.py.

645 def instanceName (self) :
646 """Return the instance name for this block"""
647 return self.containerName + '_' + self.selectionName
648

◆ makeAlgs()

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

Definition at line 649 of file AsgAnalysisConfig.py.

649 def makeAlgs (self, config) :
650 streamName = self.streamName or config.defaultHistogramStream()
651
652 alg = config.createAlgorithm( 'CP::ObjectCutFlowHistAlg', 'CutFlowDumperAlg' )
653 alg.RootStreamName = streamName
654 alg.histPattern = 'cflow_' + self.containerName + "_" + self.selectionName + '_%SYS%'
655 alg.selections = config.getSelectionCutFlow (self.containerName, self.selectionName)
656 alg.input = config.readName (self.containerName)
657 alg.histTitle = "Object Cutflow: " + self.containerName + "." + self.selectionName
658 alg.forceCutSequence = self.forceCutSequence
659
660

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