ATLAS Offline Software
Loading...
Searching...
No Matches
python.AsgAnalysisConfig.PerEventSFBlock Class Reference
Inheritance diagram for python.AsgAnalysisConfig.PerEventSFBlock:
Collaboration diagram for python.AsgAnalysisConfig.PerEventSFBlock:

Public Member Functions

 __init__ (self)
 instanceName (self)
 makeAlgs (self, config)

Detailed Description

the ConfigBlock for the AsgEventScaleFactorAlg

Definition at line 986 of file AsgAnalysisConfig.py.

Constructor & Destructor Documentation

◆ __init__()

python.AsgAnalysisConfig.PerEventSFBlock.__init__ ( self)

Definition at line 989 of file AsgAnalysisConfig.py.

989 def __init__ (self):
990 super().__init__()
991 self.addOption('algoName', None, type=str,
992 info="unique name given to the underlying algorithm computing the "
993 "per-event scale factors.")
994 self.addOption('particles', '', type=str,
995 info="the input object container, with a possible selection, in the "
996 "format `container` or `container.selection`.",
997 meta={'role':'containerRef'})
998 self.addOption('objectSF', '', type=str,
999 info="the name of the per-object SF decoration to be used.")
1000 self.addOption('eventSF', '', type=str,
1001 info="the name of the per-event SF decoration.")
1002

Member Function Documentation

◆ instanceName()

python.AsgAnalysisConfig.PerEventSFBlock.instanceName ( self)
Return the instance name for this block

Definition at line 1003 of file AsgAnalysisConfig.py.

1003 def instanceName (self) :
1004 """Return the instance name for this block"""
1005 return self.particles + '_' + self.objectSF + '_' + self.eventSF
1006

◆ makeAlgs()

python.AsgAnalysisConfig.PerEventSFBlock.makeAlgs ( self,
config )

Definition at line 1007 of file AsgAnalysisConfig.py.

1007 def makeAlgs(self, config):
1008 if config.dataType() is DataType.Data:
1009 return
1010 particles, selection = config.readNameAndSelection(self.particles)
1011 alg = config.createAlgorithm('CP::AsgEventScaleFactorAlg', self.algoName if self.algoName else 'AsgEventScaleFactorAlg')
1012 alg.particles = particles
1013 alg.preselection = selection
1014 alg.scaleFactorInputDecoration = self.objectSF
1015 alg.scaleFactorOutputDecoration = self.eventSF
1016
1017 config.addOutputVar('EventInfo', alg.scaleFactorOutputDecoration,
1018 alg.scaleFactorOutputDecoration.split("_%SYS%")[0], auxType="float")
1019
1020

The documentation for this class was generated from the following file: