#include <L1MuGMTMatrix.h>
Public Member Functions | |
int | colAny (int c) const |
is any element in column c > 0 ? return index or -1 | |
void | init (T v=0) |
initialize matrix | |
bool | isMax (int r, int c) const |
is the element (r,c) the max. entry in its row and column? | |
bool | isMin (int r, int c) const |
is the element (r,c) the min. entry in its row and column? | |
L1MuGMTMatrix (const L1MuGMTMatrix< T > &) | |
copy constructor | |
L1MuGMTMatrix (int r, int c) | |
constructor | |
T & | operator() (int r, int c) |
const T & | operator() (int r, int c) const |
L1MuGMTMatrix & | operator*= (const T &s) |
scalar multiplication | |
L1MuGMTMatrix & | operator+= (const L1MuGMTMatrix &m) |
matrix addition | |
L1MuGMTMatrix & | operator+= (const T &s) |
scalar addition | |
L1MuGMTMatrix & | operator= (const L1MuGMTMatrix &m) |
assignment operator | |
void | print () const |
print matrix | |
int | rowAny (int r) const |
is any element in row r > 0 ? return index or -1 | |
void | set (int r, int c, T v) |
set matrix element | |
virtual | ~L1MuGMTMatrix () |
destructor | |
Private Attributes | |
int | c_size |
T ** | p |
int | r_size |
Matrix.
general matrix
Definition at line 49 of file L1MuGMTMatrix.h.
L1MuGMTMatrix< T >::L1MuGMTMatrix | ( | int | r, |
int | c | ||
) |
L1MuGMTMatrix< T >::L1MuGMTMatrix | ( | const L1MuGMTMatrix< T > & | mat | ) |
copy constructor
Definition at line 128 of file L1MuGMTMatrix.h.
References L1MuGMTMatrix< T >::c_size, i, j, L1MuGMTMatrix< T >::p, and L1MuGMTMatrix< T >::r_size.
L1MuGMTMatrix< T >::~L1MuGMTMatrix | ( | ) | [virtual] |
int L1MuGMTMatrix< T >::colAny | ( | int | c | ) | const |
is any element in column c > 0 ? return index or -1
Definition at line 328 of file L1MuGMTMatrix.h.
References i, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by L1MuGMTCancelOutUnit::decide(), and L1MuGMTMerger::merge().
void L1MuGMTMatrix< T >::init | ( | T | v = 0 | ) |
initialize matrix
Definition at line 188 of file L1MuGMTMatrix.h.
References trackerHits::c, AlCaHLTBitMon_ParallelJobs::p, and alignCSCRings::r.
Referenced by L1MuGMTInputEvent::L1MuGMTInputEvent(), L1MuGMTPSB::L1MuGMTPSB(), L1MuGMTMatcher::match(), L1MuGMTMatcher::reset(), L1MuGMTInputEvent::reset(), and L1MuGMTPSB::reset().
bool L1MuGMTMatrix< T >::isMax | ( | int | r, |
int | c | ||
) | const |
is the element (r,c) the max. entry in its row and column?
Definition at line 282 of file L1MuGMTMatrix.h.
References trackerHits::c, i, j, max(), AlCaHLTBitMon_ParallelJobs::p, and alignCSCRings::r.
Referenced by L1MuGMTMatcher::match().
{ bool max = true; for (int i = 0; i < c; i++) { max = max && ( this->p[r][c] > this->p[r][i]); } for (int i = c+1; i < c_size; i++) { max = max && ( this->p[r][c] >= this->p[r][i]); } for (int j = 0; j < r; j++) { max = max && ( this->p[r][c] > this->p[j][c]); } for (int j = r+1; j < r_size; j++) { max = max && ( this->p[r][c] >= this->p[j][c]); } return max; }
bool L1MuGMTMatrix< T >::isMin | ( | int | r, |
int | c | ||
) | const |
is the element (r,c) the min. entry in its row and column?
Definition at line 309 of file L1MuGMTMatrix.h.
References trackerHits::c, i, j, min, AlCaHLTBitMon_ParallelJobs::p, and alignCSCRings::r.
const T & L1MuGMTMatrix< T >::operator() | ( | int | r, |
int | c | ||
) | const |
Definition at line 175 of file L1MuGMTMatrix.h.
References trackerHits::c, AlCaHLTBitMon_ParallelJobs::p, and alignCSCRings::r.
T & L1MuGMTMatrix< T >::operator() | ( | int | r, |
int | c | ||
) |
Definition at line 162 of file L1MuGMTMatrix.h.
References trackerHits::c, AlCaHLTBitMon_ParallelJobs::p, and alignCSCRings::r.
L1MuGMTMatrix< T > & L1MuGMTMatrix< T >::operator*= | ( | const T & | s | ) |
scalar multiplication
Definition at line 267 of file L1MuGMTMatrix.h.
References trackerHits::c, AlCaHLTBitMon_ParallelJobs::p, and alignCSCRings::r.
L1MuGMTMatrix< T > & L1MuGMTMatrix< T >::operator+= | ( | const T & | s | ) |
scalar addition
Definition at line 252 of file L1MuGMTMatrix.h.
References trackerHits::c, AlCaHLTBitMon_ParallelJobs::p, and alignCSCRings::r.
L1MuGMTMatrix< T > & L1MuGMTMatrix< T >::operator+= | ( | const L1MuGMTMatrix< T > & | m | ) |
matrix addition
Definition at line 233 of file L1MuGMTMatrix.h.
References trackerHits::c, L1MuGMTMatrix< T >::c_size, AlCaHLTBitMon_ParallelJobs::p, L1MuGMTMatrix< T >::p, alignCSCRings::r, and L1MuGMTMatrix< T >::r_size.
L1MuGMTMatrix< T > & L1MuGMTMatrix< T >::operator= | ( | const L1MuGMTMatrix< T > & | m | ) |
assignment operator
Definition at line 214 of file L1MuGMTMatrix.h.
References trackerHits::c, L1MuGMTMatrix< T >::c_size, AlCaHLTBitMon_ParallelJobs::p, L1MuGMTMatrix< T >::p, alignCSCRings::r, and L1MuGMTMatrix< T >::r_size.
void L1MuGMTMatrix< T >::print | ( | void | ) | const |
print matrix
Definition at line 360 of file L1MuGMTMatrix.h.
References trackerHits::c, convertSQLitetoXML_cfg::output, AlCaHLTBitMon_ParallelJobs::p, and alignCSCRings::r.
Referenced by L1MuGMTMatcher::print().
int L1MuGMTMatrix< T >::rowAny | ( | int | r | ) | const |
is any element in row r > 0 ? return index or -1
Definition at line 344 of file L1MuGMTMatrix.h.
References i, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by L1MuGMTCancelOutUnit::decide(), and L1MuGMTMerger::merge().
void L1MuGMTMatrix< T >::set | ( | int | r, |
int | c, | ||
T | v | ||
) |
set matrix element
Definition at line 201 of file L1MuGMTMatrix.h.
References trackerHits::c, AlCaHLTBitMon_ParallelJobs::p, alignCSCRings::r, and v.
Referenced by L1MuGMTPSB::getCalo().
int L1MuGMTMatrix< T >::c_size [private] |
Definition at line 103 of file L1MuGMTMatrix.h.
Referenced by L1MuGMTMatrix< T >::L1MuGMTMatrix(), L1MuGMTMatrix< T >::operator+=(), and L1MuGMTMatrix< T >::operator=().
T** L1MuGMTMatrix< T >::p [private] |
Definition at line 105 of file L1MuGMTMatrix.h.
Referenced by L1MuGMTMatrix< T >::L1MuGMTMatrix(), L1MuGMTMatrix< T >::operator+=(), and L1MuGMTMatrix< T >::operator=().
int L1MuGMTMatrix< T >::r_size [private] |
Definition at line 103 of file L1MuGMTMatrix.h.
Referenced by L1MuGMTMatrix< T >::L1MuGMTMatrix(), L1MuGMTMatrix< T >::operator+=(), and L1MuGMTMatrix< T >::operator=().