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

Constructor & Destructor Documentation

◆ __init__()

python.AsgAnalysisConfig.ObjectCutFlowBlock.__init__ ( self)

Definition at line 583 of file AsgAnalysisConfig.py.

583 def __init__ (self) :
584 super (ObjectCutFlowBlock, self).__init__ ()
585 self.addOption ('containerName', '', type=str,
586 noneAction='error',
587 info="the name of the input container.")
588 self.addOption ('selectionName', '', type=str,
589 noneAction='error',
590 info="the name of the selection to perform the cutflow for. If left empty, "
591 "the cutflow is "
592 "performed for every object within the container. Specifying a "
593 "name (e.g. `loose`) generates the cutflow only for those objects "
594 "that also pass that selection.")
595 self.addOption ('forceCutSequence', False, type=bool,
596 info="whether to force the cut sequence and not accept objects "
597 "if previous cuts failed.")
598

Member Function Documentation

◆ instanceName()

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

Definition at line 599 of file AsgAnalysisConfig.py.

599 def instanceName (self) :
600 """Return the instance name for this block"""
601 return self.containerName + '_' + self.selectionName
602

◆ makeAlgs()

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

Definition at line 603 of file AsgAnalysisConfig.py.

603 def makeAlgs (self, config) :
604
605 alg = config.createAlgorithm( 'CP::ObjectCutFlowHistAlg', 'CutFlowDumperAlg' )
606 alg.histPattern = 'cflow_' + self.containerName + "_" + self.selectionName + '_%SYS%'
607 alg.selections = config.getSelectionCutFlow (self.containerName, self.selectionName)
608 alg.input = config.readName (self.containerName)
609 alg.histTitle = "Object Cutflow: " + self.containerName + "." + self.selectionName
610 alg.forceCutSequence = self.forceCutSequence
611
612

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