the ConfigBlock for the AsgEventScaleFactorAlg
Definition at line 738 of file AsgAnalysisConfig.py.
◆ __init__()
def python.AsgAnalysisConfig.PerEventSFBlock.__init__ |
( |
|
self | ) |
|
Definition at line 741 of file AsgAnalysisConfig.py.
742 super(PerEventSFBlock, self).
__init__()
743 self.addOption(
'algoName',
None, type=str,
744 info=
"unique name given to the underlying algorithm computing the "
745 "per-event scale factors")
746 self.addOption(
'particles',
'', type=str,
747 info=
"the input object container, with a possible selection, in the "
748 "format container or container.selection.")
749 self.addOption(
'objectSF',
'', type=str,
750 info=
"the name of the per-object SF decoration to be used.")
751 self.addOption(
'eventSF',
'', type=str,
752 info=
"the name of the per-event SF decoration.")
◆ instanceName()
def python.AsgAnalysisConfig.PerEventSFBlock.instanceName |
( |
|
self | ) |
|
Return the instance name for this block
Definition at line 754 of file AsgAnalysisConfig.py.
754 def instanceName (self) :
755 """Return the instance name for this block"""
756 return self.particles +
'_' + self.objectSF +
'_' + self.eventSF
◆ makeAlgs()
def python.AsgAnalysisConfig.PerEventSFBlock.makeAlgs |
( |
|
self, |
|
|
|
config |
|
) |
| |
Definition at line 758 of file AsgAnalysisConfig.py.
758 def makeAlgs(self, config):
759 if config.dataType()
is DataType.Data:
761 particles, selection = config.readNameAndSelection(self.particles)
762 alg = config.createAlgorithm(
'CP::AsgEventScaleFactorAlg', self.algoName
if self.algoName
else 'AsgEventScaleFactorAlg')
763 alg.particles = particles
764 alg.preselection = selection
765 alg.scaleFactorInputDecoration = self.objectSF
766 alg.scaleFactorOutputDecoration = self.eventSF
768 config.addOutputVar(
'EventInfo', alg.scaleFactorOutputDecoration,
769 alg.scaleFactorOutputDecoration.split(
"_%SYS%")[0])
The documentation for this class was generated from the following file: