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 239 of file AtlRunQueryUtils.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 241 of file AtlRunQueryUtils.py.

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

Member Function Documentation

◆ __iter__()

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

Definition at line 264 of file AtlRunQueryUtils.py.

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

◆ __repr__()

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

Definition at line 258 of file AtlRunQueryUtils.py.

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

◆ getitem()

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

Definition at line 255 of file AtlRunQueryUtils.py.

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

◆ setitem()

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

Definition at line 252 of file AtlRunQueryUtils.py.

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

Member Data Documentation

◆ cols

python.utils.AtlRunQueryUtils.Matrix.cols

Definition at line 242 of file AtlRunQueryUtils.py.

◆ matrix

python.utils.AtlRunQueryUtils.Matrix.matrix

Definition at line 245 of file AtlRunQueryUtils.py.

◆ rows

python.utils.AtlRunQueryUtils.Matrix.rows

Definition at line 243 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:791
dumpHVPathFromNtuple.append
bool append
Definition: dumpHVPathFromNtuple.py:91
plotBeamSpotVxVal.range
range
Definition: plotBeamSpotVxVal.py:195
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18