the ConfigBlock for an object cutflow
Definition at line 398 of file AsgAnalysisConfig.py.
◆ __init__()
def python.AsgAnalysisConfig.ObjectCutFlowBlock.__init__ |
( |
|
self, |
|
|
|
containerName = '' , |
|
|
|
selectionName = '' |
|
) |
| |
Definition at line 401 of file AsgAnalysisConfig.py.
401 def __init__ (self, containerName='', selectionName='') :
402 super (ObjectCutFlowBlock, self).__init__ ()
403 self.addOption (
'containerName', containerName, type=str,
405 info=
"the name of the input container.")
406 self.addOption (
'selectionName', selectionName, type=str,
408 info=
"the name of the selection to perform the cutflow for. The "
409 "default is '' (empty string), meaning that the cutflow is "
410 "performed for every object within the container. Specifying a "
411 "name (e.g. loose) generates the cutflow only for those object "
412 "that also pass that selection.")
413 self.addOption (
'postfix',
'', type=str,
414 info=
"a postfix to apply to decorations and algorithm names. "
415 "Typically not needed here.")
◆ makeAlgs()
def python.AsgAnalysisConfig.ObjectCutFlowBlock.makeAlgs |
( |
|
self, |
|
|
|
config |
|
) |
| |
Definition at line 417 of file AsgAnalysisConfig.py.
417 def makeAlgs (self, config) :
419 postfix = self.postfix
420 if postfix !=
'' and postfix[0] !=
'_' :
421 postfix =
'_' + postfix
423 alg = config.createAlgorithm(
'CP::ObjectCutFlowHistAlg',
'CutFlowDumperAlg_' + self.containerName +
'_' + self.selectionName + postfix )
424 alg.histPattern =
'cflow_' + self.containerName +
"_" + self.selectionName + postfix +
'_%SYS%'
425 alg.selections = config.getSelectionCutFlow (self.containerName, self.selectionName)
426 alg.input = config.readName (self.containerName)
427 alg.histTitle =
"Object Cutflow: " + self.containerName +
"." + self.selectionName
The documentation for this class was generated from the following file: