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

Constructor & Destructor Documentation

◆ __init__()

python.AsgAnalysisConfig.PerEventSFBlock.__init__ ( self)

Definition at line 846 of file AsgAnalysisConfig.py.

846 def __init__ (self):
847 super(PerEventSFBlock, self).__init__()
848 self.addOption('algoName', None, type=str,
849 info="unique name given to the underlying algorithm computing the "
850 "per-event scale factors.")
851 self.addOption('particles', '', type=str,
852 info="the input object container, with a possible selection, in the "
853 "format `container` or `container.selection`.")
854 self.addOption('objectSF', '', type=str,
855 info="the name of the per-object SF decoration to be used.")
856 self.addOption('eventSF', '', type=str,
857 info="the name of the per-event SF decoration.")
858

Member Function Documentation

◆ instanceName()

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

Definition at line 859 of file AsgAnalysisConfig.py.

859 def instanceName (self) :
860 """Return the instance name for this block"""
861 return self.particles + '_' + self.objectSF + '_' + self.eventSF
862

◆ makeAlgs()

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

Definition at line 863 of file AsgAnalysisConfig.py.

863 def makeAlgs(self, config):
864 if config.dataType() is DataType.Data:
865 return
866 particles, selection = config.readNameAndSelection(self.particles)
867 alg = config.createAlgorithm('CP::AsgEventScaleFactorAlg', self.algoName if self.algoName else 'AsgEventScaleFactorAlg')
868 alg.particles = particles
869 alg.preselection = selection
870 alg.scaleFactorInputDecoration = self.objectSF
871 alg.scaleFactorOutputDecoration = self.eventSF
872
873 config.addOutputVar('EventInfo', alg.scaleFactorOutputDecoration,
874 alg.scaleFactorOutputDecoration.split("_%SYS%")[0])
875
876

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