the ConfigBlock for an object cutflow
Definition at line 511 of file AsgAnalysisConfig.py.
◆ __init__()
def python.AsgAnalysisConfig.ObjectCutFlowBlock.__init__ |
( |
|
self | ) |
|
Definition at line 514 of file AsgAnalysisConfig.py.
515 super (ObjectCutFlowBlock, self).__init__ ()
516 self.addOption (
'containerName',
'', type=str,
518 info=
"the name of the input container.")
519 self.addOption (
'selectionName',
'', type=str,
521 info=
"the name of the selection to perform the cutflow for. The "
522 "default is '' (empty string), meaning that the cutflow is "
523 "performed for every object within the container. Specifying a "
524 "name (e.g. loose) generates the cutflow only for those object "
525 "that also pass that selection.")
526 self.addOption (
'forceCutSequence',
False, type=bool,
527 info=
"whether to force the cut sequence and not accept objects "
528 "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 530 of file AsgAnalysisConfig.py.
530 def instanceName (self) :
531 """Return the instance name for this block"""
532 return self.containerName +
'_' + self.selectionName
◆ makeAlgs()
def python.AsgAnalysisConfig.ObjectCutFlowBlock.makeAlgs |
( |
|
self, |
|
|
|
config |
|
) |
| |
Definition at line 534 of file AsgAnalysisConfig.py.
534 def makeAlgs (self, config) :
536 alg = config.createAlgorithm(
'CP::ObjectCutFlowHistAlg',
'CutFlowDumperAlg' )
537 alg.histPattern =
'cflow_' + self.containerName +
"_" + self.selectionName +
'_%SYS%'
538 alg.selections = config.getSelectionCutFlow (self.containerName, self.selectionName)
539 alg.input = config.readName (self.containerName)
540 alg.histTitle =
"Object Cutflow: " + self.containerName +
"." + self.selectionName
541 alg.forceCutSequence = self.forceCutSequence
The documentation for this class was generated from the following file: