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

Public Member Functions

def __init__ (self, name=None, metaData=None)
 
def __str__ (self, prefix='')
 
def metaData (self)
 
def __len__ (self)
 
def __iter__ (self)
 
def properties (self)
 

Static Public Attributes

 auxfiles
 
 minevents
 
 maxeventsfactor
 
 maxeventsstrategy
 
 efficiency
 

Private Member Functions

def _attributeDictionary (self)
 

Private Attributes

 __metadata
 
 __name
 
 __attributes
 

Static Private Attributes

 __slots__
 

Detailed Description

Configuration class for JobTransforms.
It has a number of properties shared among all jobtransforms. Those properties are
processed by class JobTransform.

Definition at line 395 of file TransformConfig.py.

Constructor & Destructor Documentation

◆ __init__()

def python.TransformConfig.TransformConfig.__init__ (   self,
  name = None,
  metaData = None 
)
name is used in printout. The default name is derived from the filename of the python file
where constructor is called

Definition at line 411 of file TransformConfig.py.

411  def __init__(self,name=None,metaData=None):
412  """name is used in printout. The default name is derived from the filename of the python file
413  where constructor is called"""
414  JobConfig.__init__(self,name)
415  self.__metadata = []
416  if metaData is not None:
417  propertyNames = [ d.name() for d in self.properties() ]
418  for m in metaData:
419  if m not in propertyNames:
420  raise TransformConfigError('Requested metadata %s is not an attribute of %s' % (m,self.name()) )
421  self.__metadata.append(m)
422 
423 

Member Function Documentation

◆ __iter__()

def python.TransformConfig.JobConfig.__iter__ (   self)
inherited
Provide iteration over the full list of properties (the Descriptors, not the values)

Definition at line 347 of file TransformConfig.py.

347  def __iter__(self):
348  """Provide iteration over the full list of properties (the Descriptors, not the values)"""
349  return iter(self.properties())
350 
351 

◆ __len__()

def python.TransformConfig.JobConfig.__len__ (   self)
inherited
Return the total number of properties (this class plus all base classes)

Definition at line 342 of file TransformConfig.py.

342  def __len__(self):
343  """Return the total number of properties (this class plus all base classes)"""
344  return len(self.properties())
345 
346 

◆ __str__()

def python.TransformConfig.TransformConfig.__str__ (   self,
  prefix = '' 
)

Reimplemented from python.TransformConfig.JobConfig.

Definition at line 424 of file TransformConfig.py.

424  def __str__(self,prefix=''):
425  me = JobConfig.__str__(self,prefix)
426  #
427  # add list of metadata
428  #
429  prefix += ' '*len(self.name())
430  me += os.linesep + prefix + 'MetaData attributes: '
431  if self.__metadata:
432  me += ','.join(self.__metadata)
433  else:
434  me += '(None)'
435  return me
436 
437 

◆ _attributeDictionary()

def python.TransformConfig.JobConfig._attributeDictionary (   self)
privateinherited
Dictionary to store the values. Used in the class Descriptor.

Definition at line 352 of file TransformConfig.py.

352  def _attributeDictionary(self):
353  """Dictionary to store the values. Used in the class Descriptor."""
354  return self.__attributes
355 
356 

◆ metaData()

def python.TransformConfig.TransformConfig.metaData (   self)
A dictionary of metadata to be added to the metadata of the output files.
Values set to None will not be added to the list. Values will be converted to strings.
Python lists will be transformed to a string with comma separated entries.

Definition at line 438 of file TransformConfig.py.

438  def metaData(self):
439  """A dictionary of metadata to be added to the metadata of the output files.
440  Values set to None will not be added to the list. Values will be converted to strings.
441  Python lists will be transformed to a string with comma separated entries."""
442  meta = {}
443  for name in self.__metadata:
444  value = getattr(self,name)
445  if value is not None:
446  # turn a python list into a string with comma separated entries
447  if type(value).__name__ == 'list': value = ','.join([str(v) for v in value])
448  meta[name] = str(value)
449  return meta
450 

◆ properties()

def python.TransformConfig.JobConfig.properties (   self)
inherited
Return the full list of properties (the descriptors, not the values)

Definition at line 357 of file TransformConfig.py.

357  def properties(self):
358  """Return the full list of properties (the descriptors, not the values)"""

Member Data Documentation

◆ __attributes

python.TransformConfig.JobConfig.__attributes
privateinherited

Definition at line 328 of file TransformConfig.py.

◆ __metadata

python.TransformConfig.TransformConfig.__metadata
private

Definition at line 415 of file TransformConfig.py.

◆ __name

python.TransformConfig.JobConfig.__name
privateinherited
name is used in printout. The default name is derived from the filename of the python file
where constructor is called

Definition at line 327 of file TransformConfig.py.

◆ __slots__

python.TransformConfig.TransformConfig.__slots__
staticprivate
Configuration class for JobTransforms.
It has a number of properties shared among all jobtransforms. Those properties are
processed by class JobTransform.

Definition at line 399 of file TransformConfig.py.

◆ auxfiles

python.TransformConfig.TransformConfig.auxfiles
static

Definition at line 402 of file TransformConfig.py.

◆ efficiency

python.TransformConfig.TransformConfig.efficiency
static

Definition at line 408 of file TransformConfig.py.

◆ maxeventsfactor

python.TransformConfig.TransformConfig.maxeventsfactor
static

Definition at line 404 of file TransformConfig.py.

◆ maxeventsstrategy

python.TransformConfig.TransformConfig.maxeventsstrategy
static

Definition at line 406 of file TransformConfig.py.

◆ minevents

python.TransformConfig.TransformConfig.minevents
static

Definition at line 403 of file TransformConfig.py.


The documentation for this class was generated from the following file:
python.Bindings.__iter__
__iter__
Definition: Control/AthenaPython/python/Bindings.py:783
dumpHVPathFromNtuple.append
bool append
Definition: dumpHVPathFromNtuple.py:91
python.JsonUtils.properties
properties
Definition: JsonUtils.py:96
TCS::join
std::string join(const std::vector< std::string > &v, const char c=',')
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/Root/StringUtils.cxx:10
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
str
Definition: BTagTrackIpAccessor.cxx:11