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 904 of file AsgAnalysisConfig.py.

Constructor & Destructor Documentation

◆ __init__()

python.AsgAnalysisConfig.PerEventSFBlock.__init__ ( self)

Definition at line 907 of file AsgAnalysisConfig.py.

907 def __init__ (self):
908 super(PerEventSFBlock, self).__init__()
909 self.addOption('algoName', None, type=str,
910 info="unique name given to the underlying algorithm computing the "
911 "per-event scale factors.")
912 self.addOption('particles', '', type=str,
913 info="the input object container, with a possible selection, in the "
914 "format `container` or `container.selection`.",
915 meta={'role':'containerRef'})
916 self.addOption('objectSF', '', type=str,
917 info="the name of the per-object SF decoration to be used.")
918 self.addOption('eventSF', '', type=str,
919 info="the name of the per-event SF decoration.")
920

Member Function Documentation

◆ instanceName()

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

Definition at line 921 of file AsgAnalysisConfig.py.

921 def instanceName (self) :
922 """Return the instance name for this block"""
923 return self.particles + '_' + self.objectSF + '_' + self.eventSF
924

◆ makeAlgs()

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

Definition at line 925 of file AsgAnalysisConfig.py.

925 def makeAlgs(self, config):
926 if config.dataType() is DataType.Data:
927 return
928 particles, selection = config.readNameAndSelection(self.particles)
929 alg = config.createAlgorithm('CP::AsgEventScaleFactorAlg', self.algoName if self.algoName else 'AsgEventScaleFactorAlg')
930 alg.particles = particles
931 alg.preselection = selection
932 alg.scaleFactorInputDecoration = self.objectSF
933 alg.scaleFactorOutputDecoration = self.eventSF
934
935 config.addOutputVar('EventInfo', alg.scaleFactorOutputDecoration,
936 alg.scaleFactorOutputDecoration.split("_%SYS%")[0])
937
938

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