the ConfigBlock for the AsgEventScaleFactorAlg
Definition at line 788 of file AsgAnalysisConfig.py.
◆ __init__()
| def python.AsgAnalysisConfig.PerEventSFBlock.__init__ |
( |
|
self | ) |
|
Definition at line 791 of file AsgAnalysisConfig.py.
792 super(PerEventSFBlock, self).
__init__()
793 self.addOption(
'algoName',
None, type=str,
794 info=
"unique name given to the underlying algorithm computing the "
795 "per-event scale factors")
796 self.addOption(
'particles',
'', type=str,
797 info=
"the input object container, with a possible selection, in the "
798 "format container or container.selection.")
799 self.addOption(
'objectSF',
'', type=str,
800 info=
"the name of the per-object SF decoration to be used.")
801 self.addOption(
'eventSF',
'', type=str,
802 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 804 of file AsgAnalysisConfig.py.
804 def instanceName (self) :
805 """Return the instance name for this block"""
806 return self.particles +
'_' + self.objectSF +
'_' + self.eventSF
◆ makeAlgs()
| def python.AsgAnalysisConfig.PerEventSFBlock.makeAlgs |
( |
|
self, |
|
|
|
config |
|
) |
| |
Definition at line 808 of file AsgAnalysisConfig.py.
808 def makeAlgs(self, config):
809 if config.dataType()
is DataType.Data:
811 particles, selection = config.readNameAndSelection(self.particles)
812 alg = config.createAlgorithm(
'CP::AsgEventScaleFactorAlg', self.algoName
if self.algoName
else 'AsgEventScaleFactorAlg')
813 alg.particles = particles
814 alg.preselection = selection
815 alg.scaleFactorInputDecoration = self.objectSF
816 alg.scaleFactorOutputDecoration = self.eventSF
818 config.addOutputVar(
'EventInfo', alg.scaleFactorOutputDecoration,
819 alg.scaleFactorOutputDecoration.split(
"_%SYS%")[0])
The documentation for this class was generated from the following file: