ATLAS Offline Software
Public Member Functions | List of all members
python.AsgAnalysisConfig.PerEventSFBlock Class Reference
Inheritance diagram for python.AsgAnalysisConfig.PerEventSFBlock:
Collaboration diagram for python.AsgAnalysisConfig.PerEventSFBlock:

Public Member Functions

def __init__ (self)
 
def instanceName (self)
 
def makeAlgs (self, config)
 

Detailed Description

the ConfigBlock for the AsgEventScaleFactorAlg

Definition at line 732 of file AsgAnalysisConfig.py.

Constructor & Destructor Documentation

◆ __init__()

def python.AsgAnalysisConfig.PerEventSFBlock.__init__ (   self)

Definition at line 735 of file AsgAnalysisConfig.py.

735  def __init__ (self):
736  super(PerEventSFBlock, self).__init__()
737  self.addOption('algoName', None, type=str,
738  info="unique name given to the underlying algorithm computing the "
739  "per-event scale factors")
740  self.addOption('particles', '', type=str,
741  info="the input object container, with a possible selection, in the "
742  "format container or container.selection.")
743  self.addOption('objectSF', '', type=str,
744  info="the name of the per-object SF decoration to be used.")
745  self.addOption('eventSF', '', type=str,
746  info="the name of the per-event SF decoration.")
747 

Member Function Documentation

◆ instanceName()

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

Definition at line 748 of file AsgAnalysisConfig.py.

748  def instanceName (self) :
749  """Return the instance name for this block"""
750  return self.particles + '_' + self.objectSF + '_' + self.eventSF
751 

◆ makeAlgs()

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

Definition at line 752 of file AsgAnalysisConfig.py.

752  def makeAlgs(self, config):
753  if config.dataType() is DataType.Data:
754  return
755  particles, selection = config.readNameAndSelection(self.particles)
756  alg = config.createAlgorithm('CP::AsgEventScaleFactorAlg', self.algoName if self.algoName else 'AsgEventScaleFactorAlg')
757  alg.particles = particles
758  alg.preselection = selection
759  alg.scaleFactorInputDecoration = self.objectSF
760  alg.scaleFactorOutputDecoration = self.eventSF
761 
762  config.addOutputVar('EventInfo', alg.scaleFactorOutputDecoration,
763  alg.scaleFactorOutputDecoration.split("_%SYS%")[0])
764 
765 

The documentation for this class was generated from the following file:
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18