#include <L1MuGMTMatrix.h>
Public Member Functions | |
int | colAny (int c) const |
is any element in column c > 0 ? return index or -1 More... | |
void | init (T v=0) |
initialize matrix More... | |
bool | isMax (int r, int c) const |
is the element (r,c) the max. entry in its row and column? More... | |
bool | isMin (int r, int c) const |
is the element (r,c) the min. entry in its row and column? More... | |
L1MuGMTMatrix (int r, int c) | |
constructor More... | |
L1MuGMTMatrix (const L1MuGMTMatrix< T > &) | |
copy constructor More... | |
T & | operator() (int r, int c) |
const T & | operator() (int r, int c) const |
L1MuGMTMatrix & | operator*= (const T &s) |
scalar multiplication More... | |
L1MuGMTMatrix & | operator+= (const L1MuGMTMatrix &m) |
matrix addition More... | |
L1MuGMTMatrix & | operator+= (const T &s) |
scalar addition More... | |
L1MuGMTMatrix & | operator= (const L1MuGMTMatrix &m) |
assignment operator More... | |
void | print () const |
print matrix More... | |
int | rowAny (int r) const |
is any element in row r > 0 ? return index or -1 More... | |
void | set (int r, int c, T v) |
set matrix element More... | |
virtual | ~L1MuGMTMatrix () |
destructor More... | |
Private Attributes | |
int | c_size |
T ** | p |
int | r_size |
Matrix.
general matrix
Definition at line 47 of file L1MuGMTMatrix.h.
L1MuGMTMatrix< T >::L1MuGMTMatrix | ( | int | r, |
int | c | ||
) |
constructor
Definition at line 109 of file L1MuGMTMatrix.h.
References trackerHits::c, i, L1MuGMTMatrix< T >::p, and alignCSCRings::r.
L1MuGMTMatrix< T >::L1MuGMTMatrix | ( | const L1MuGMTMatrix< T > & | mat | ) |
copy constructor
Definition at line 126 of file L1MuGMTMatrix.h.
References L1MuGMTMatrix< T >::c_size, i, j, L1MuGMTMatrix< T >::p, and L1MuGMTMatrix< T >::r_size.
|
virtual |
destructor
Definition at line 145 of file L1MuGMTMatrix.h.
References i, and AlCaHLTBitMon_ParallelJobs::p.
int L1MuGMTMatrix< T >::colAny | ( | int | c | ) | const |
is any element in column c > 0 ? return index or -1
Definition at line 326 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 186 of file L1MuGMTMatrix.h.
References trackerHits::c, AlCaHLTBitMon_ParallelJobs::p, and alignCSCRings::r.
Referenced by L1MuGMTInputEvent::L1MuGMTInputEvent(), L1MuGMTPSB::L1MuGMTPSB(), L1MuGMTMatcher::match(), L1MuGMTInputEvent::reset(), L1MuGMTMatcher::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 280 of file L1MuGMTMatrix.h.
References trackerHits::c, i, j, bookConverter::max, AlCaHLTBitMon_ParallelJobs::p, and alignCSCRings::r.
Referenced by L1MuGMTMatcher::match().
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 307 of file L1MuGMTMatrix.h.
References trackerHits::c, i, j, min(), AlCaHLTBitMon_ParallelJobs::p, and alignCSCRings::r.
T & L1MuGMTMatrix< T >::operator() | ( | int | r, |
int | c | ||
) |
Definition at line 160 of file L1MuGMTMatrix.h.
References trackerHits::c, AlCaHLTBitMon_ParallelJobs::p, and alignCSCRings::r.
const T & L1MuGMTMatrix< T >::operator() | ( | int | r, |
int | c | ||
) | const |
Definition at line 173 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 265 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 231 of file L1MuGMTMatrix.h.
References trackerHits::c, L1MuGMTMatrix< T >::c_size, L1MuGMTMatrix< T >::p, AlCaHLTBitMon_ParallelJobs::p, alignCSCRings::r, and L1MuGMTMatrix< T >::r_size.
L1MuGMTMatrix< T > & L1MuGMTMatrix< T >::operator+= | ( | const T & | s | ) |
scalar addition
Definition at line 250 of file L1MuGMTMatrix.h.
References trackerHits::c, AlCaHLTBitMon_ParallelJobs::p, and alignCSCRings::r.
L1MuGMTMatrix< T > & L1MuGMTMatrix< T >::operator= | ( | const L1MuGMTMatrix< T > & | m | ) |
assignment operator
Definition at line 212 of file L1MuGMTMatrix.h.
References trackerHits::c, L1MuGMTMatrix< T >::c_size, L1MuGMTMatrix< T >::p, AlCaHLTBitMon_ParallelJobs::p, alignCSCRings::r, and L1MuGMTMatrix< T >::r_size.
void L1MuGMTMatrix< T >::print | ( | void | ) | const |
print matrix
Definition at line 358 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 342 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 199 of file L1MuGMTMatrix.h.
References trackerHits::c, AlCaHLTBitMon_ParallelJobs::p, alignCSCRings::r, and findQualityFiles::v.
Referenced by L1MuGMTPSB::getCalo(), and betterConfigParser.BetterConfigParser::getGeneral().
|
private |
Definition at line 101 of file L1MuGMTMatrix.h.
Referenced by L1MuGMTMatrix< T >::L1MuGMTMatrix(), L1MuGMTMatrix< T >::operator+=(), and L1MuGMTMatrix< T >::operator=().
|
private |
Definition at line 103 of file L1MuGMTMatrix.h.
Referenced by L1MuGMTMatrix< T >::L1MuGMTMatrix(), L1MuGMTMatrix< T >::operator+=(), and L1MuGMTMatrix< T >::operator=().
|
private |
Definition at line 101 of file L1MuGMTMatrix.h.
Referenced by L1MuGMTMatrix< T >::L1MuGMTMatrix(), L1MuGMTMatrix< T >::operator+=(), and L1MuGMTMatrix< T >::operator=().