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

Constructor & Destructor Documentation

◆ __init__()

python.AsgAnalysisConfig.ObjectCutFlowBlock.__init__ ( self)

Definition at line 668 of file AsgAnalysisConfig.py.

668 def __init__ (self) :
669 super (ObjectCutFlowBlock, self).__init__ ()
670 self.addOption ('containerName', '', type=str,
671 noneAction='error',
672 info="the name of the input container.",
673 meta={'role':'containerRef'})
674 self.addOption ('selectionName', '', type=str,
675 noneAction='error',
676 info="the name of the selection to perform the cutflow for. If left empty, "
677 "the cutflow is "
678 "performed for every object within the container. Specifying a "
679 "name (e.g. `loose`) generates the cutflow only for those objects "
680 "that also pass that selection.",
681 meta={'role':'selection'})
682 self.addOption ('forceCutSequence', False, type=bool,
683 info="whether to force the cut sequence and not accept objects "
684 "if previous cuts failed.")
685 self.addOption ('streamName', None, type=str,
686 info="name of the output stream to save the cutflow histogram in.")
687

Member Function Documentation

◆ instanceName()

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

Definition at line 688 of file AsgAnalysisConfig.py.

688 def instanceName (self) :
689 """Return the instance name for this block"""
690 return self.containerName + '_' + self.selectionName
691

◆ makeAlgs()

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

Definition at line 692 of file AsgAnalysisConfig.py.

692 def makeAlgs (self, config) :
693 streamName = self.streamName or config.defaultHistogramStream()
694
695 alg = config.createAlgorithm( 'CP::ObjectCutFlowHistAlg', 'CutFlowDumperAlg' )
696 alg.RootStreamName = streamName
697 alg.histPattern = 'cflow_' + self.containerName + "_" + self.selectionName + '_%SYS%'
698 alg.selections = config.getSelectionCutFlow (self.containerName, self.selectionName)
699 alg.input = config.readName (self.containerName)
700 alg.histTitle = "Object Cutflow: " + self.containerName + "." + self.selectionName
701 alg.forceCutSequence = self.forceCutSequence
702
703

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