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

Constructor & Destructor Documentation

◆ __init__()

python.AsgAnalysisConfig.ObjectCutFlowBlock.__init__ ( self)

Definition at line 634 of file AsgAnalysisConfig.py.

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

Member Function Documentation

◆ instanceName()

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

Definition at line 652 of file AsgAnalysisConfig.py.

652 def instanceName (self) :
653 """Return the instance name for this block"""
654 return self.containerName + '_' + self.selectionName
655

◆ makeAlgs()

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

Definition at line 656 of file AsgAnalysisConfig.py.

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

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