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

Constructor & Destructor Documentation

◆ __init__()

python.AsgAnalysisConfig.PerEventSFBlock.__init__ ( self)

Definition at line 818 of file AsgAnalysisConfig.py.

818 def __init__ (self):
819 super(PerEventSFBlock, self).__init__()
820 self.addOption('algoName', None, type=str,
821 info="unique name given to the underlying algorithm computing the "
822 "per-event scale factors.")
823 self.addOption('particles', '', type=str,
824 info="the input object container, with a possible selection, in the "
825 "format `container` or `container.selection`.")
826 self.addOption('objectSF', '', type=str,
827 info="the name of the per-object SF decoration to be used.")
828 self.addOption('eventSF', '', type=str,
829 info="the name of the per-event SF decoration.")
830

Member Function Documentation

◆ instanceName()

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

Definition at line 831 of file AsgAnalysisConfig.py.

831 def instanceName (self) :
832 """Return the instance name for this block"""
833 return self.particles + '_' + self.objectSF + '_' + self.eventSF
834

◆ makeAlgs()

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

Definition at line 835 of file AsgAnalysisConfig.py.

835 def makeAlgs(self, config):
836 if config.dataType() is DataType.Data:
837 return
838 particles, selection = config.readNameAndSelection(self.particles)
839 alg = config.createAlgorithm('CP::AsgEventScaleFactorAlg', self.algoName if self.algoName else 'AsgEventScaleFactorAlg')
840 alg.particles = particles
841 alg.preselection = selection
842 alg.scaleFactorInputDecoration = self.objectSF
843 alg.scaleFactorOutputDecoration = self.eventSF
844
845 config.addOutputVar('EventInfo', alg.scaleFactorOutputDecoration,
846 alg.scaleFactorOutputDecoration.split("_%SYS%")[0])
847
848

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