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

Constructor & Destructor Documentation

◆ __init__()

python.AsgAnalysisConfig.ObjectCutFlowBlock.__init__ ( self)

Definition at line 630 of file AsgAnalysisConfig.py.

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

Member Function Documentation

◆ instanceName()

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

Definition at line 648 of file AsgAnalysisConfig.py.

648 def instanceName (self) :
649 """Return the instance name for this block"""
650 return self.containerName + '_' + self.selectionName
651

◆ makeAlgs()

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

Definition at line 652 of file AsgAnalysisConfig.py.

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

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