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

Public Member Functions

def __init__ (self, format=None)
 
def __str__ (self)
 

Public Attributes

 format
 

Detailed Description

This class extends a dictionary with a format string for its representation.
It is used as the return value for the inspection commands, such that one
can both query for the inspected object's information:

  res = tool.ls( '/a' )
  print (res['name'])
  
as well as obtain a standard printout of the information:

  print (res)

Definition at line 127 of file AtlCoolTool.py.

Constructor & Destructor Documentation

◆ __init__()

def python.AtlCoolTool.Info.__init__ (   self,
  format = None 
)

Definition at line 141 of file AtlCoolTool.py.

141  def __init__( self, format = None ):
142  super( Info, self ).__init__()
143  self.format = format
144 

Member Function Documentation

◆ __str__()

def python.AtlCoolTool.Info.__str__ (   self)

Definition at line 145 of file AtlCoolTool.py.

145  def __str__( self ):
146  if self.format is None:
147  return super( Info, self ).__str__()
148  else:
149  return self.format % self
150 
151 

Member Data Documentation

◆ format

python.AtlCoolTool.Info.format

Definition at line 143 of file AtlCoolTool.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