ATLAS Offline Software
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
python.ConfigAccumulator.ContainerConfig Class Reference
Collaboration diagram for python.ConfigAccumulator.ContainerConfig:

Public Member Functions

def __init__ (self, name, sourceName, *originalName=None, calibMode=None, isMet=False, noSysSuffix)
 
def currentName (self)
 
def nextPass (self)
 

Static Public Member Functions

def systematicsName (name, *noSysSuffix)
 

Public Attributes

 name
 
 sourceName
 
 originalName
 
 calibMode
 
 noSysSuffix
 
 index
 
 maxIndex
 
 viewIndex
 
 isMet
 
 selections
 
 outputs
 

Detailed Description

all the auto-generated meta-configuration data for a single container

This tracks the naming of all temporary containers, as well as all the
selection decorations.

Definition at line 47 of file ConfigAccumulator.py.

Constructor & Destructor Documentation

◆ __init__()

def python.ConfigAccumulator.ContainerConfig.__init__ (   self,
  name,
  sourceName,
originalName = None,
  calibMode = None,
  isMet = False,
  noSysSuffix 
)

Definition at line 53 of file ConfigAccumulator.py.

53  def __init__ (self, name, sourceName, *, originalName = None, calibMode = None, isMet = False, noSysSuffix) :
54  self.name = name
55  self.sourceName = sourceName
56  self.originalName = originalName
57  self.calibMode = calibMode
58  self.noSysSuffix = noSysSuffix
59  self.index = 0
60  self.maxIndex = None
61  self.viewIndex = 1
62  self.isMet = isMet
63  self.selections = []
64  self.outputs = {}
65 

Member Function Documentation

◆ currentName()

def python.ConfigAccumulator.ContainerConfig.currentName (   self)

Definition at line 66 of file ConfigAccumulator.py.

66  def currentName (self) :
67  if self.index == 0 :
68  if self.sourceName is None :
69  raise Exception ("should not get here, reading container name before created: " + self.name)
70  return self.sourceName
71  if self.maxIndex and self.index == self.maxIndex :
72  return self.systematicsName(self.name, noSysSuffix=self.noSysSuffix)
73  return self.systematicsName(f"{self.name}_STEP{self.index}", noSysSuffix=self.noSysSuffix)
74 

◆ nextPass()

def python.ConfigAccumulator.ContainerConfig.nextPass (   self)

Definition at line 85 of file ConfigAccumulator.py.

85  def nextPass (self) :
86  self.maxIndex = self.index
87  self.index = 0
88  self.viewIndex = 1
89  self.selections = []
90  self.outputs = {}
91 
92 
93 

◆ systematicsName()

def python.ConfigAccumulator.ContainerConfig.systematicsName (   name,
noSysSuffix 
)
static
map an internal name to a name for systematics data handles

Right now this just means appending a _%SYS% to the name.

Definition at line 76 of file ConfigAccumulator.py.

76  def systematicsName (name, *, noSysSuffix) :
77  """map an internal name to a name for systematics data handles
78 
79  Right now this just means appending a _%SYS% to the name."""
80  if not noSysSuffix :
81  return name + "_%SYS%"
82  else :
83  return name
84 

Member Data Documentation

◆ calibMode

python.ConfigAccumulator.ContainerConfig.calibMode

Definition at line 57 of file ConfigAccumulator.py.

◆ index

python.ConfigAccumulator.ContainerConfig.index

Definition at line 59 of file ConfigAccumulator.py.

◆ isMet

python.ConfigAccumulator.ContainerConfig.isMet

Definition at line 62 of file ConfigAccumulator.py.

◆ maxIndex

python.ConfigAccumulator.ContainerConfig.maxIndex

Definition at line 60 of file ConfigAccumulator.py.

◆ name

python.ConfigAccumulator.ContainerConfig.name

Definition at line 54 of file ConfigAccumulator.py.

◆ noSysSuffix

python.ConfigAccumulator.ContainerConfig.noSysSuffix

Definition at line 58 of file ConfigAccumulator.py.

◆ originalName

python.ConfigAccumulator.ContainerConfig.originalName

Definition at line 56 of file ConfigAccumulator.py.

◆ outputs

python.ConfigAccumulator.ContainerConfig.outputs

Definition at line 64 of file ConfigAccumulator.py.

◆ selections

python.ConfigAccumulator.ContainerConfig.selections

Definition at line 63 of file ConfigAccumulator.py.

◆ sourceName

python.ConfigAccumulator.ContainerConfig.sourceName

Definition at line 55 of file ConfigAccumulator.py.

◆ viewIndex

python.ConfigAccumulator.ContainerConfig.viewIndex

Definition at line 61 of file ConfigAccumulator.py.


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