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

Public Member Functions

def __init__ (self, cols, rows)
 
def setitem (self, col, row, v)
 
def getitem (self, col, row)
 
def __repr__ (self)
 
def __iter__ (self)
 

Public Attributes

 cols
 
 rows
 
 matrix
 

Detailed Description

Definition at line 238 of file AtlRunQueryUtils.py.

Constructor & Destructor Documentation

◆ __init__()

def python.utils.AtlRunQueryUtils.Matrix.__init__ (   self,
  cols,
  rows 
)

Definition at line 240 of file AtlRunQueryUtils.py.

240  def __init__(self, cols, rows):
241  self.cols = cols
242  self.rows = rows
243  # initialize matrix and fill with zeroes
244  self.matrix = []
245  for i in range(rows):
246  ea_row = []
247  for j in range(cols):
248  ea_row.append(0)
249  self.matrix.append(ea_row)
250 

Member Function Documentation

◆ __iter__()

def python.utils.AtlRunQueryUtils.Matrix.__iter__ (   self)

Definition at line 263 of file AtlRunQueryUtils.py.

263  def __iter__(self):
264  for row in range(self.rows):
265  for col in range(self.cols):
266  yield (self.matrix, row, col)
267 

◆ __repr__()

def python.utils.AtlRunQueryUtils.Matrix.__repr__ (   self)

Definition at line 257 of file AtlRunQueryUtils.py.

257  def __repr__(self):
258  outStr = ""
259  for i in range(self.rows):
260  outStr += 'Row %s = %s\n' % (i+1, self.matrix[i])
261  return outStr
262 

◆ getitem()

def python.utils.AtlRunQueryUtils.Matrix.getitem (   self,
  col,
  row 
)

Definition at line 254 of file AtlRunQueryUtils.py.

254  def getitem(self, col, row):
255  return self.matrix[col-1][row-1]
256 

◆ setitem()

def python.utils.AtlRunQueryUtils.Matrix.setitem (   self,
  col,
  row,
  v 
)

Definition at line 251 of file AtlRunQueryUtils.py.

251  def setitem(self, col, row, v):
252  self.matrix[col-1][row-1] = v
253 

Member Data Documentation

◆ cols

python.utils.AtlRunQueryUtils.Matrix.cols

Definition at line 241 of file AtlRunQueryUtils.py.

◆ matrix

python.utils.AtlRunQueryUtils.Matrix.matrix

Definition at line 244 of file AtlRunQueryUtils.py.

◆ rows

python.utils.AtlRunQueryUtils.Matrix.rows

Definition at line 242 of file AtlRunQueryUtils.py.


The documentation for this class was generated from the following file:
python.Bindings.__iter__
__iter__
Definition: Control/AthenaPython/python/Bindings.py:794
dumpHVPathFromNtuple.append
bool append
Definition: dumpHVPathFromNtuple.py:91
plotBeamSpotVxVal.range
range
Definition: plotBeamSpotVxVal.py:194
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18