the ConfigBlock for the AsgEventScaleFactorAlg
Definition at line 594 of file AsgAnalysisConfig.py.
◆ __init__()
def python.AsgAnalysisConfig.PerEventSFBlock.__init__ |
( |
|
self, |
|
|
|
algoName = '' |
|
) |
| |
Definition at line 597 of file AsgAnalysisConfig.py.
598 super(PerEventSFBlock, self).
__init__()
599 self.addOption(
'algoName', algoName, type=str,
601 info=
"unique name given to the underlying algorithm computing the "
602 "per-event scale factors")
603 self.addOption(
'particles',
'', type=str,
604 info=
"the input object container, with a possible selection, in the "
605 "format container or container.selection.")
606 self.addOption(
'objectSF',
'', type=str,
607 info=
"the name of the per-object SF decoration to be used.")
608 self.addOption(
'eventSF',
'', type=str,
609 info=
"the name of the per-event SF decoration.")
◆ makeAlgs()
def python.AsgAnalysisConfig.PerEventSFBlock.makeAlgs |
( |
|
self, |
|
|
|
config |
|
) |
| |
Definition at line 611 of file AsgAnalysisConfig.py.
611 def makeAlgs(self, config):
612 if config.dataType()
is DataType.Data:
614 particles, selection = config.readNameAndSelection(self.particles)
615 alg = config.createAlgorithm(
'CP::AsgEventScaleFactorAlg', self.algoName)
616 alg.particles = particles
617 alg.preselection = selection
618 alg.scaleFactorInputDecoration = self.objectSF
619 alg.scaleFactorOutputDecoration = self.eventSF
621 config.addOutputVar(
'EventInfo', alg.scaleFactorOutputDecoration,
622 alg.scaleFactorOutputDecoration.split(
"_%SYS%")[0])
The documentation for this class was generated from the following file: