the ConfigBlock for the AsgEventScaleFactorAlg
Definition at line 575 of file AsgAnalysisConfig.py.
◆ __init__()
def python.AsgAnalysisConfig.PerEventSFBlock.__init__ |
( |
|
self, |
|
|
|
algoName = '' |
|
) |
| |
Definition at line 578 of file AsgAnalysisConfig.py.
579 super(PerEventSFBlock, self).
__init__()
580 self.addOption(
'algoName', algoName, type=str,
582 info=
"unique name given to the underlying algorithm computing the "
583 "per-event scale factors")
584 self.addOption(
'particles',
'', type=str,
585 info=
"the input object container, with a possible selection, in the "
586 "format container or container.selection.")
587 self.addOption(
'objectSF',
'', type=str,
588 info=
"the name of the per-object SF decoration to be used.")
589 self.addOption(
'eventSF',
'', type=str,
590 info=
"the name of the per-event SF decoration.")
◆ makeAlgs()
def python.AsgAnalysisConfig.PerEventSFBlock.makeAlgs |
( |
|
self, |
|
|
|
config |
|
) |
| |
Definition at line 592 of file AsgAnalysisConfig.py.
592 def makeAlgs(self, config):
593 if config.dataType()
is DataType.Data:
595 particles, selection = config.readNameAndSelection(self.particles)
596 alg = config.createAlgorithm(
'CP::AsgEventScaleFactorAlg', self.algoName)
597 alg.particles = particles
598 alg.preselection = selection
599 alg.scaleFactorInputDecoration = self.objectSF
600 alg.scaleFactorOutputDecoration = self.eventSF
602 config.addOutputVar(
'EventInfo', alg.scaleFactorOutputDecoration,
603 alg.scaleFactorOutputDecoration.split(
"_%SYS%")[0])
The documentation for this class was generated from the following file: