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

Constructor & Destructor Documentation

◆ __init__()

python.AsgAnalysisConfig.PerEventSFBlock.__init__ ( self)

Definition at line 807 of file AsgAnalysisConfig.py.

807 def __init__ (self):
808 super(PerEventSFBlock, self).__init__()
809 self.addOption('algoName', None, type=str,
810 info="unique name given to the underlying algorithm computing the "
811 "per-event scale factors")
812 self.addOption('particles', '', type=str,
813 info="the input object container, with a possible selection, in the "
814 "format container or container.selection.")
815 self.addOption('objectSF', '', type=str,
816 info="the name of the per-object SF decoration to be used.")
817 self.addOption('eventSF', '', type=str,
818 info="the name of the per-event SF decoration.")
819

Member Function Documentation

◆ instanceName()

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

Definition at line 820 of file AsgAnalysisConfig.py.

820 def instanceName (self) :
821 """Return the instance name for this block"""
822 return self.particles + '_' + self.objectSF + '_' + self.eventSF
823

◆ makeAlgs()

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

Definition at line 824 of file AsgAnalysisConfig.py.

824 def makeAlgs(self, config):
825 if config.dataType() is DataType.Data:
826 return
827 particles, selection = config.readNameAndSelection(self.particles)
828 alg = config.createAlgorithm('CP::AsgEventScaleFactorAlg', self.algoName if self.algoName else 'AsgEventScaleFactorAlg')
829 alg.particles = particles
830 alg.preselection = selection
831 alg.scaleFactorInputDecoration = self.objectSF
832 alg.scaleFactorOutputDecoration = self.eventSF
833
834 config.addOutputVar('EventInfo', alg.scaleFactorOutputDecoration,
835 alg.scaleFactorOutputDecoration.split("_%SYS%")[0])
836
837

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