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

Constructor & Destructor Documentation

◆ __init__()

python.AsgAnalysisConfig.ObjectCutFlowBlock.__init__ ( self)

Definition at line 595 of file AsgAnalysisConfig.py.

595 def __init__ (self) :
596 super (ObjectCutFlowBlock, self).__init__ ()
597 self.addOption ('containerName', '', type=str,
598 noneAction='error',
599 info="the name of the input container.")
600 self.addOption ('selectionName', '', type=str,
601 noneAction='error',
602 info="the name of the selection to perform the cutflow for. If left empty, "
603 "the cutflow is "
604 "performed for every object within the container. Specifying a "
605 "name (e.g. `loose`) generates the cutflow only for those objects "
606 "that also pass that selection.")
607 self.addOption ('forceCutSequence', False, type=bool,
608 info="whether to force the cut sequence and not accept objects "
609 "if previous cuts failed.")
610 self.addOption ('streamName', None, type=str,
611 info="name of the output stream to save the cutflow histogram in.")
612

Member Function Documentation

◆ instanceName()

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

Definition at line 613 of file AsgAnalysisConfig.py.

613 def instanceName (self) :
614 """Return the instance name for this block"""
615 return self.containerName + '_' + self.selectionName
616

◆ makeAlgs()

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

Definition at line 617 of file AsgAnalysisConfig.py.

617 def makeAlgs (self, config) :
618 streamName = self.streamName or config.defaultHistogramStream()
619
620 alg = config.createAlgorithm( 'CP::ObjectCutFlowHistAlg', 'CutFlowDumperAlg' )
621 alg.RootStreamName = streamName
622 alg.histPattern = 'cflow_' + self.containerName + "_" + self.selectionName + '_%SYS%'
623 alg.selections = config.getSelectionCutFlow (self.containerName, self.selectionName)
624 alg.input = config.readName (self.containerName)
625 alg.histTitle = "Object Cutflow: " + self.containerName + "." + self.selectionName
626 alg.forceCutSequence = self.forceCutSequence
627
628

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