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

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 142 of file ConfigAccumulator.py.

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

Member Function Documentation

◆ appendStep()

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

Definition at line 155 of file ConfigAccumulator.py.

155 def appendStep (self) :
156 """Add a new step/copy, return the new name of the container"""
157 step = len(self.names)
158 newName = ContainerConfig.systematicsName(f"{self.name}_STEP{step}", noSysSuffix=self.noSysSuffix)
159 self.names.append(newName)
160 return newName
161

◆ currentName()

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

Definition at line 162 of file ConfigAccumulator.py.

162 def currentName (self, *, nominal=False) :
163 if not self.names :
164 raise Exception ("should not get here, reading container name before created: " + self.name)
165 result = self.names[-1]
166 if nominal :
167 result = result.replace("%SYS%", "NOSYS")
168 return result
169

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

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

Member Data Documentation

◆ isMet

python.ConfigAccumulator.ContainerConfig.isMet = isMet

Definition at line 147 of file ConfigAccumulator.py.

◆ meta

dict python.ConfigAccumulator.ContainerConfig.meta = {}

Definition at line 150 of file ConfigAccumulator.py.

◆ name

python.ConfigAccumulator.ContainerConfig.name = name

Definition at line 143 of file ConfigAccumulator.py.

◆ names

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

Definition at line 153 of file ConfigAccumulator.py.

◆ noSysSuffix

python.ConfigAccumulator.ContainerConfig.noSysSuffix = noSysSuffix

Definition at line 146 of file ConfigAccumulator.py.

◆ originalName

python.ConfigAccumulator.ContainerConfig.originalName = originalName

Definition at line 145 of file ConfigAccumulator.py.

◆ outputs

dict python.ConfigAccumulator.ContainerConfig.outputs = {}

Definition at line 149 of file ConfigAccumulator.py.

◆ selections

list python.ConfigAccumulator.ContainerConfig.selections = []

Definition at line 148 of file ConfigAccumulator.py.

◆ sourceName

python.ConfigAccumulator.ContainerConfig.sourceName = sourceName

Definition at line 144 of file ConfigAccumulator.py.


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