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

Constructor & Destructor Documentation

◆ __init__()

python.AsgAnalysisConfig.PerEventSFBlock.__init__ ( self)

Definition at line 864 of file AsgAnalysisConfig.py.

864 def __init__ (self):
865 super(PerEventSFBlock, self).__init__()
866 self.addOption('algoName', None, type=str,
867 info="unique name given to the underlying algorithm computing the "
868 "per-event scale factors.")
869 self.addOption('particles', '', type=str,
870 info="the input object container, with a possible selection, in the "
871 "format `container` or `container.selection`.")
872 self.addOption('objectSF', '', type=str,
873 info="the name of the per-object SF decoration to be used.")
874 self.addOption('eventSF', '', type=str,
875 info="the name of the per-event SF decoration.")
876

Member Function Documentation

◆ instanceName()

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

Definition at line 877 of file AsgAnalysisConfig.py.

877 def instanceName (self) :
878 """Return the instance name for this block"""
879 return self.particles + '_' + self.objectSF + '_' + self.eventSF
880

◆ makeAlgs()

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

Definition at line 881 of file AsgAnalysisConfig.py.

881 def makeAlgs(self, config):
882 if config.dataType() is DataType.Data:
883 return
884 particles, selection = config.readNameAndSelection(self.particles)
885 alg = config.createAlgorithm('CP::AsgEventScaleFactorAlg', self.algoName if self.algoName else 'AsgEventScaleFactorAlg')
886 alg.particles = particles
887 alg.preselection = selection
888 alg.scaleFactorInputDecoration = self.objectSF
889 alg.scaleFactorOutputDecoration = self.eventSF
890
891 config.addOutputVar('EventInfo', alg.scaleFactorOutputDecoration,
892 alg.scaleFactorOutputDecoration.split("_%SYS%")[0])
893
894

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