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

Constructor & Destructor Documentation

◆ __init__()

def python.AsgAnalysisConfig.PerEventSFBlock.__init__ (   self)

Definition at line 741 of file AsgAnalysisConfig.py.

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

Member Function Documentation

◆ instanceName()

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

Definition at line 754 of file AsgAnalysisConfig.py.

754  def instanceName (self) :
755  """Return the instance name for this block"""
756  return self.particles + '_' + self.objectSF + '_' + self.eventSF
757 

◆ makeAlgs()

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

Definition at line 758 of file AsgAnalysisConfig.py.

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

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