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, algoName='')
 
def makeAlgs (self, config)
 

Detailed Description

the ConfigBlock for the AsgEventScaleFactorAlg

Definition at line 575 of file AsgAnalysisConfig.py.

Constructor & Destructor Documentation

◆ __init__()

def python.AsgAnalysisConfig.PerEventSFBlock.__init__ (   self,
  algoName = '' 
)

Definition at line 578 of file AsgAnalysisConfig.py.

578  def __init__ (self, algoName=''):
579  super(PerEventSFBlock, self).__init__()
580  self.addOption('algoName', algoName, type=str,
581  noneAction='error',
582  info="unique name given to the underlying algorithm computing the "
583  "per-event scale factors")
584  self.addOption('particles', '', type=str,
585  info="the input object container, with a possible selection, in the "
586  "format container or container.selection.")
587  self.addOption('objectSF', '', type=str,
588  info="the name of the per-object SF decoration to be used.")
589  self.addOption('eventSF', '', type=str,
590  info="the name of the per-event SF decoration.")
591 

Member Function Documentation

◆ makeAlgs()

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

Definition at line 592 of file AsgAnalysisConfig.py.

592  def makeAlgs(self, config):
593  if config.dataType() is DataType.Data:
594  return
595  particles, selection = config.readNameAndSelection(self.particles)
596  alg = config.createAlgorithm('CP::AsgEventScaleFactorAlg', self.algoName)
597  alg.particles = particles
598  alg.preselection = selection
599  alg.scaleFactorInputDecoration = self.objectSF
600  alg.scaleFactorOutputDecoration = self.eventSF
601 
602  config.addOutputVar('EventInfo', alg.scaleFactorOutputDecoration,
603  alg.scaleFactorOutputDecoration.split("_%SYS%")[0])
604 
605 

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