ATLAS Offline Software
SystObjectLinkConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2 
3 # AnaAlgorithm import(s):
4 from AnalysisAlgorithmsConfig.ConfigBlock import ConfigBlock
5 
6 
7 class SystObjectLinkBlock (ConfigBlock):
8  """the ConfigBlock for linking systematic variation and nominal objects"""
9 
10  def __init__ (self, containerName='') :
11  super (SystObjectLinkBlock, self).__init__ ()
12  self.addOption('containerName', containerName, type=str,
13  noneAction='error',
14  info="the name of the input container.")
15 
16  def makeAlgs (self, config) :
17 
18  alg = config.createAlgorithm('CP::SystObjectLinkerAlg', f'SystObjLinker_{self.containerName}', reentrant=True)
19  alg.input = config.readName (self.containerName)
20 
21 
22 
23 
24 def makeSystObjectLinkConfig( seq, containerName ):
25  """Create an alg for linking systematic variations with their nominal object
26 
27  Keyword arguments:
28  containerName: the container to be decorated with the links
29  """
30 
31  config = SystObjectLinkBlock (containerName)
32  seq.append (config)
python.SystObjectLinkConfig.makeSystObjectLinkConfig
def makeSystObjectLinkConfig(seq, containerName)
Definition: SystObjectLinkConfig.py:24
python.SystObjectLinkConfig.SystObjectLinkBlock.makeAlgs
def makeAlgs(self, config)
Definition: SystObjectLinkConfig.py:16
python.SystObjectLinkConfig.SystObjectLinkBlock
Definition: SystObjectLinkConfig.py:7
python.SystObjectLinkConfig.SystObjectLinkBlock.__init__
def __init__(self, containerName='')
Definition: SystObjectLinkConfig.py:10