|
def | __init__ (self, containerName='', selectionName='') |
|
def | makeAlgs (self, config) |
|
the ConfigBlock for an object cutflow
Definition at line 397 of file AsgAnalysisConfig.py.
◆ __init__()
def python.AsgAnalysisConfig.ObjectCutFlowBlock.__init__ |
( |
|
self, |
|
|
|
containerName = '' , |
|
|
|
selectionName = '' |
|
) |
| |
Definition at line 400 of file AsgAnalysisConfig.py.
400 def __init__ (self, containerName='', selectionName='') :
401 super (ObjectCutFlowBlock, self).__init__ ()
402 self.addOption (
'containerName', containerName, type=str,
404 info=
"the name of the input container.")
405 self.addOption (
'selectionName', selectionName, type=str,
407 info=
"the name of the selection to perform the cutflow for. The "
408 "default is '' (empty string), meaning that the cutflow is "
409 "performed for every object within the container. Specifying a "
410 "name (e.g. loose) generates the cutflow only for those object "
411 "that also pass that selection.")
412 self.addOption (
'forceCutSequence',
False, type=bool,
413 info=
"whether to force the cut sequence and not accept objects "
414 "if previous cuts failed. The default is False.")
◆ makeAlgs()
def python.AsgAnalysisConfig.ObjectCutFlowBlock.makeAlgs |
( |
|
self, |
|
|
|
config |
|
) |
| |
Definition at line 416 of file AsgAnalysisConfig.py.
416 def makeAlgs (self, config) :
418 alg = config.createAlgorithm(
'CP::ObjectCutFlowHistAlg',
'CutFlowDumperAlg_' + self.containerName +
'_' + self.selectionName )
419 alg.histPattern =
'cflow_' + self.containerName +
"_" + self.selectionName +
'_%SYS%'
420 alg.selections = config.getSelectionCutFlow (self.containerName, self.selectionName)
421 alg.input = config.readName (self.containerName)
422 alg.histTitle =
"Object Cutflow: " + self.containerName +
"." + self.selectionName
423 alg.forceCutSequence = self.forceCutSequence
The documentation for this class was generated from the following file: