ATLAS Offline Software
Loading...
Searching...
No Matches
python.ConfigAccumulator.ContainerConfig Class Reference
Collaboration diagram for python.ConfigAccumulator.ContainerConfig:

Public Member Functions

 __init__ (self, name, sourceName, *, originalName=None, isMet=False, noSysSuffix)
 appendStep (self)
 currentName (self, *, nominal=False)

Static Public Member Functions

 systematicsName (name, *, noSysSuffix)

Public Attributes

 name = name
 sourceName = sourceName
 originalName = originalName
 noSysSuffix = noSysSuffix
 isMet = isMet
list selections = []
dict outputs = {}
dict meta = {}
list names = [sourceName] if sourceName is not None else []

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 141 of file ConfigAccumulator.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 147 of file ConfigAccumulator.py.

147 def __init__ (self, name, sourceName, *, originalName = None, isMet = False, noSysSuffix) :
148 self.name = name
149 self.sourceName = sourceName
150 self.originalName = originalName
151 self.noSysSuffix = noSysSuffix
152 self.isMet = isMet
153 self.selections = []
154 self.outputs = {}
155 self.meta = {}
156 # The chain of container names this container has occupied in the
157 # event store, in order. The latest name is the current name.
158 self.names = [sourceName] if sourceName is not None else []
159

Member Function Documentation

◆ appendStep()

python.ConfigAccumulator.ContainerConfig.appendStep ( self)
Add a new step/copy, return the new name of the container

Definition at line 160 of file ConfigAccumulator.py.

160 def appendStep (self) :
161 """Add a new step/copy, return the new name of the container"""
162 step = len(self.names)
163 newName = ContainerConfig.systematicsName(f"{self.name}_STEP{step}", noSysSuffix=self.noSysSuffix)
164 self.names.append(newName)
165 return newName
166

◆ currentName()

python.ConfigAccumulator.ContainerConfig.currentName ( self,
* ,
nominal = False )

Definition at line 167 of file ConfigAccumulator.py.

167 def currentName (self, *, nominal=False) :
168 if not self.names :
169 raise RuntimeError (f"should not get here, reading container name before created: {self.name}")
170 result = self.names[-1]
171 if nominal :
172 result = result.replace("%SYS%", "NOSYS")
173 return result
174

◆ systematicsName()

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 176 of file ConfigAccumulator.py.

176 def systematicsName (name, *, noSysSuffix) :
177 """map an internal name to a name for systematics data handles
178
179 Right now this just means appending a _%SYS% to the name."""
180 if not noSysSuffix :
181 return name + "_%SYS%"
182 else :
183 return name
184
185
186

Member Data Documentation

◆ isMet

python.ConfigAccumulator.ContainerConfig.isMet = isMet

Definition at line 152 of file ConfigAccumulator.py.

◆ meta

dict python.ConfigAccumulator.ContainerConfig.meta = {}

Definition at line 155 of file ConfigAccumulator.py.

◆ name

python.ConfigAccumulator.ContainerConfig.name = name

Definition at line 148 of file ConfigAccumulator.py.

◆ names

list python.ConfigAccumulator.ContainerConfig.names = [sourceName] if sourceName is not None else []

Definition at line 158 of file ConfigAccumulator.py.

◆ noSysSuffix

python.ConfigAccumulator.ContainerConfig.noSysSuffix = noSysSuffix

Definition at line 151 of file ConfigAccumulator.py.

◆ originalName

python.ConfigAccumulator.ContainerConfig.originalName = originalName

Definition at line 150 of file ConfigAccumulator.py.

◆ outputs

dict python.ConfigAccumulator.ContainerConfig.outputs = {}

Definition at line 154 of file ConfigAccumulator.py.

◆ selections

list python.ConfigAccumulator.ContainerConfig.selections = []

Definition at line 153 of file ConfigAccumulator.py.

◆ sourceName

python.ConfigAccumulator.ContainerConfig.sourceName = sourceName

Definition at line 149 of file ConfigAccumulator.py.


The documentation for this class was generated from the following file: