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

Constructor & Destructor Documentation

◆ __init__()

python.AsgAnalysisConfig.ObjectCutFlowBlock.__init__ ( self)

Definition at line 741 of file AsgAnalysisConfig.py.

741 def __init__ (self) :
742 super().__init__ ()
743 self.addOption ('containerName', '', type=str,
744 noneAction='error',
745 info="the name of the input container.",
746 meta={'role':'containerRef'})
747 self.addOption ('selectionName', '', type=str,
748 noneAction='error',
749 info="the name of the selection to perform the cutflow for. If left empty, "
750 "the cutflow is "
751 "performed for every object within the container. Specifying a "
752 "name (e.g. `loose`) generates the cutflow only for those objects "
753 "that also pass that selection.",
754 meta={'role':'selection'})
755 self.addOption ('forceCutSequence', False, type=bool,
756 info="whether to force the cut sequence and not accept objects "
757 "if previous cuts failed.")
758 self.addOption ('streamName', None, type=str,
759 info="name of the output stream to save the cutflow histogram in.")
760

Member Function Documentation

◆ instanceName()

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

Definition at line 761 of file AsgAnalysisConfig.py.

761 def instanceName (self) :
762 """Return the instance name for this block"""
763 return self.containerName + '_' + self.selectionName
764

◆ makeAlgs()

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

Definition at line 765 of file AsgAnalysisConfig.py.

765 def makeAlgs (self, config) :
766 streamName = config.requestOutputStream(self.streamName)
767
768 alg = config.createAlgorithm( 'CP::ObjectCutFlowHistAlg', 'CutFlowDumperAlg' )
769 alg.RootStreamName = streamName
770 alg.histPattern = 'cflow_' + self.containerName + "_" + self.selectionName + '_%SYS%'
771 alg.selections = config.getSelectionCutFlow (self.containerName, self.selectionName)
772 alg.input = config.readName (self.containerName)
773 alg.histTitle = "Object Cutflow: " + self.containerName + "." + self.selectionName
774 alg.forceCutSequence = self.forceCutSequence
775
776

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