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

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 597 of file AsgAnalysisConfig.py.

597  def __init__ (self, algoName=''):
598  super(PerEventSFBlock, self).__init__()
599  self.addOption('algoName', algoName, type=str,
600  noneAction='error',
601  info="unique name given to the underlying algorithm computing the "
602  "per-event scale factors")
603  self.addOption('particles', '', type=str,
604  info="the input object container, with a possible selection, in the "
605  "format container or container.selection.")
606  self.addOption('objectSF', '', type=str,
607  info="the name of the per-object SF decoration to be used.")
608  self.addOption('eventSF', '', type=str,
609  info="the name of the per-event SF decoration.")
610 

Member Function Documentation

◆ makeAlgs()

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

Definition at line 611 of file AsgAnalysisConfig.py.

611  def makeAlgs(self, config):
612  if config.dataType() is DataType.Data:
613  return
614  particles, selection = config.readNameAndSelection(self.particles)
615  alg = config.createAlgorithm('CP::AsgEventScaleFactorAlg', self.algoName)
616  alg.particles = particles
617  alg.preselection = selection
618  alg.scaleFactorInputDecoration = self.objectSF
619  alg.scaleFactorOutputDecoration = self.eventSF
620 
621  config.addOutputVar('EventInfo', alg.scaleFactorOutputDecoration,
622  alg.scaleFactorOutputDecoration.split("_%SYS%")[0])
623 
624 

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