the ConfigBlock for an object cutflow
Definition at line 517 of file AsgAnalysisConfig.py.
◆ __init__()
def python.AsgAnalysisConfig.ObjectCutFlowBlock.__init__ |
( |
|
self | ) |
|
Definition at line 520 of file AsgAnalysisConfig.py.
521 super (ObjectCutFlowBlock, self).__init__ ()
522 self.addOption (
'containerName',
'', type=str,
524 info=
"the name of the input container.")
525 self.addOption (
'selectionName',
'', type=str,
527 info=
"the name of the selection to perform the cutflow for. The "
528 "default is '' (empty string), meaning that the cutflow is "
529 "performed for every object within the container. Specifying a "
530 "name (e.g. loose) generates the cutflow only for those object "
531 "that also pass that selection.")
532 self.addOption (
'forceCutSequence',
False, type=bool,
533 info=
"whether to force the cut sequence and not accept objects "
534 "if previous cuts failed. The default is False.")
◆ instanceName()
def python.AsgAnalysisConfig.ObjectCutFlowBlock.instanceName |
( |
|
self | ) |
|
Return the instance name for this block
Definition at line 536 of file AsgAnalysisConfig.py.
536 def instanceName (self) :
537 """Return the instance name for this block"""
538 return self.containerName +
'_' + self.selectionName
◆ makeAlgs()
def python.AsgAnalysisConfig.ObjectCutFlowBlock.makeAlgs |
( |
|
self, |
|
|
|
config |
|
) |
| |
Definition at line 540 of file AsgAnalysisConfig.py.
540 def makeAlgs (self, config) :
542 alg = config.createAlgorithm(
'CP::ObjectCutFlowHistAlg',
'CutFlowDumperAlg' )
543 alg.histPattern =
'cflow_' + self.containerName +
"_" + self.selectionName +
'_%SYS%'
544 alg.selections = config.getSelectionCutFlow (self.containerName, self.selectionName)
545 alg.input = config.readName (self.containerName)
546 alg.histTitle =
"Object Cutflow: " + self.containerName +
"." + self.selectionName
547 alg.forceCutSequence = self.forceCutSequence
The documentation for this class was generated from the following file: