the ConfigBlock for an object cutflow
Definition at line 541 of file AsgAnalysisConfig.py.
◆ __init__()
| def python.AsgAnalysisConfig.ObjectCutFlowBlock.__init__ |
( |
|
self | ) |
|
Definition at line 544 of file AsgAnalysisConfig.py.
545 super (ObjectCutFlowBlock, self).__init__ ()
546 self.addOption (
'containerName',
'', type=str,
548 info=
"the name of the input container.")
549 self.addOption (
'selectionName',
'', type=str,
551 info=
"the name of the selection to perform the cutflow for. The "
552 "default is '' (empty string), meaning that the cutflow is "
553 "performed for every object within the container. Specifying a "
554 "name (e.g. loose) generates the cutflow only for those object "
555 "that also pass that selection.")
556 self.addOption (
'forceCutSequence',
False, type=bool,
557 info=
"whether to force the cut sequence and not accept objects "
558 "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 560 of file AsgAnalysisConfig.py.
560 def instanceName (self) :
561 """Return the instance name for this block"""
562 return self.containerName +
'_' + self.selectionName
◆ makeAlgs()
| def python.AsgAnalysisConfig.ObjectCutFlowBlock.makeAlgs |
( |
|
self, |
|
|
|
config |
|
) |
| |
Definition at line 564 of file AsgAnalysisConfig.py.
564 def makeAlgs (self, config) :
566 alg = config.createAlgorithm(
'CP::ObjectCutFlowHistAlg',
'CutFlowDumperAlg' )
567 alg.histPattern =
'cflow_' + self.containerName +
"_" + self.selectionName +
'_%SYS%'
568 alg.selections = config.getSelectionCutFlow (self.containerName, self.selectionName)
569 alg.input = config.readName (self.containerName)
570 alg.histTitle =
"Object Cutflow: " + self.containerName +
"." + self.selectionName
571 alg.forceCutSequence = self.forceCutSequence
The documentation for this class was generated from the following file: