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

Constructor & Destructor Documentation

◆ __init__()

def python.AsgAnalysisConfig.PerEventSFBlock.__init__ (   self)

Definition at line 765 of file AsgAnalysisConfig.py.

765  def __init__ (self):
766  super(PerEventSFBlock, self).__init__()
767  self.addOption('algoName', None, type=str,
768  info="unique name given to the underlying algorithm computing the "
769  "per-event scale factors")
770  self.addOption('particles', '', type=str,
771  info="the input object container, with a possible selection, in the "
772  "format container or container.selection.")
773  self.addOption('objectSF', '', type=str,
774  info="the name of the per-object SF decoration to be used.")
775  self.addOption('eventSF', '', type=str,
776  info="the name of the per-event SF decoration.")
777 

Member Function Documentation

◆ instanceName()

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

Definition at line 778 of file AsgAnalysisConfig.py.

778  def instanceName (self) :
779  """Return the instance name for this block"""
780  return self.particles + '_' + self.objectSF + '_' + self.eventSF
781 

◆ makeAlgs()

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

Definition at line 782 of file AsgAnalysisConfig.py.

782  def makeAlgs(self, config):
783  if config.dataType() is DataType.Data:
784  return
785  particles, selection = config.readNameAndSelection(self.particles)
786  alg = config.createAlgorithm('CP::AsgEventScaleFactorAlg', self.algoName if self.algoName else 'AsgEventScaleFactorAlg')
787  alg.particles = particles
788  alg.preselection = selection
789  alg.scaleFactorInputDecoration = self.objectSF
790  alg.scaleFactorOutputDecoration = self.eventSF
791 
792  config.addOutputVar('EventInfo', alg.scaleFactorOutputDecoration,
793  alg.scaleFactorOutputDecoration.split("_%SYS%")[0])
794 
795 

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