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

Constructor & Destructor Documentation

◆ __init__()

python.AsgAnalysisConfig.PerEventSFBlock.__init__ ( self)

Definition at line 822 of file AsgAnalysisConfig.py.

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

Member Function Documentation

◆ instanceName()

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

Definition at line 835 of file AsgAnalysisConfig.py.

835 def instanceName (self) :
836 """Return the instance name for this block"""
837 return self.particles + '_' + self.objectSF + '_' + self.eventSF
838

◆ makeAlgs()

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

Definition at line 839 of file AsgAnalysisConfig.py.

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

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