#include <L1MuGMTMatrix.h>
Public Member Functions | |
int | colAny (int c) const |
is any element in column c > 0 ? return index or -1 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, T v) | |
constructor More... | |
L1MuGMTMatrix (const L1MuGMTMatrix< T > &) | |
copy constructor More... | |
L1MuGMTMatrix (L1MuGMTMatrix< T > &&)=default | |
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... | |
void | reset (T v) |
reset all elements 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 ()=default |
destructor More... | |
Private Member Functions | |
T & | get (int r, int c) |
T const & | get (int r, int c) const |
Private Attributes | |
int | c_size |
std::unique_ptr< T[]> | p_ |
int | r_size |
Matrix.
general matrix
Definition at line 45 of file L1MuGMTMatrix.h.
L1MuGMTMatrix< T >::L1MuGMTMatrix | ( | int | r, |
int | c, | ||
T | v | ||
) |
constructor
Definition at line 108 of file L1MuGMTMatrix.h.
References L1MuGMTMatrix< T >::c_size, mps_fire::i, L1MuGMTMatrix< T >::p_, L1MuGMTMatrix< T >::r_size, and findQualityFiles::v.
L1MuGMTMatrix< T >::L1MuGMTMatrix | ( | const L1MuGMTMatrix< T > & | mat | ) |
copy constructor
Definition at line 117 of file L1MuGMTMatrix.h.
References L1MuGMTMatrix< T >::c_size, mps_fire::i, L1MuGMTMatrix< T >::p_, and L1MuGMTMatrix< T >::r_size.
|
default |
|
virtualdefault |
destructor
int L1MuGMTMatrix< T >::colAny | ( | int | c | ) | const |
is any element in column c > 0 ? return index or -1
Definition at line 262 of file L1MuGMTMatrix.h.
References mps_fire::i, L1MuGMTMatrix< T >::r_size, and hgcalPlots::stat.
Referenced by L1MuGMTCancelOutUnit::decide(), and L1MuGMTMerger::merge().
|
inlineprivate |
Definition at line 98 of file L1MuGMTMatrix.h.
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), and betterConfigParser.BetterConfigParser::getResultingSection().
|
inlineprivate |
Definition at line 100 of file L1MuGMTMatrix.h.
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), and betterConfigParser.BetterConfigParser::getResultingSection().
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 222 of file L1MuGMTMatrix.h.
References HltBtagPostValidation_cff::c, L1MuGMTMatrix< T >::c_size, mps_fire::i, dqmiolumiharvest::j, SiStripPI::max, alignCSCRings::r, and L1MuGMTMatrix< T >::r_size.
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 246 of file L1MuGMTMatrix.h.
References HltBtagPostValidation_cff::c, L1MuGMTMatrix< T >::c_size, mps_fire::i, dqmiolumiharvest::j, min(), alignCSCRings::r, and L1MuGMTMatrix< T >::r_size.
T & L1MuGMTMatrix< T >::operator() | ( | int | r, |
int | c | ||
) |
Definition at line 128 of file L1MuGMTMatrix.h.
References HltBtagPostValidation_cff::c, L1MuGMTMatrix< T >::c_size, and alignCSCRings::r.
const T & L1MuGMTMatrix< T >::operator() | ( | int | r, |
int | c | ||
) | const |
Definition at line 138 of file L1MuGMTMatrix.h.
References HltBtagPostValidation_cff::c, L1MuGMTMatrix< T >::c_size, and alignCSCRings::r.
L1MuGMTMatrix< T > & L1MuGMTMatrix< T >::operator*= | ( | const T & | s | ) |
scalar multiplication
Definition at line 210 of file L1MuGMTMatrix.h.
References L1MuGMTMatrix< T >::c_size, mps_fire::i, L1MuGMTMatrix< T >::p_, L1MuGMTMatrix< T >::r_size, and alignCSCRings::s.
L1MuGMTMatrix< T > & L1MuGMTMatrix< T >::operator+= | ( | const L1MuGMTMatrix< T > & | m | ) |
matrix addition
Definition at line 184 of file L1MuGMTMatrix.h.
References L1MuGMTMatrix< T >::c_size, mps_fire::i, L1MuGMTMatrix< T >::p_, and L1MuGMTMatrix< T >::r_size.
L1MuGMTMatrix< T > & L1MuGMTMatrix< T >::operator+= | ( | const T & | s | ) |
scalar addition
Definition at line 198 of file L1MuGMTMatrix.h.
References L1MuGMTMatrix< T >::c_size, mps_fire::i, L1MuGMTMatrix< T >::p_, L1MuGMTMatrix< T >::r_size, and alignCSCRings::s.
L1MuGMTMatrix< T > & L1MuGMTMatrix< T >::operator= | ( | const L1MuGMTMatrix< T > & | m | ) |
assignment operator
Definition at line 168 of file L1MuGMTMatrix.h.
References L1MuGMTMatrix< T >::c_size, mps_fire::i, L1MuGMTMatrix< T >::p_, and L1MuGMTMatrix< T >::r_size.
void L1MuGMTMatrix< T >::print | ( | void | ) | const |
print matrix
Definition at line 290 of file L1MuGMTMatrix.h.
References HltBtagPostValidation_cff::c, L1MuGMTMatrix< T >::c_size, convertSQLitetoXML_cfg::output, alignCSCRings::r, and L1MuGMTMatrix< T >::r_size.
Referenced by L1MuGMTMatcher::print().
void L1MuGMTMatrix< T >::reset | ( | T | v | ) |
reset all elements
Definition at line 148 of file L1MuGMTMatrix.h.
References L1MuGMTMatrix< T >::c_size, mps_fire::i, L1MuGMTMatrix< T >::p_, L1MuGMTMatrix< T >::r_size, and findQualityFiles::v.
Referenced by L1MuGMTInputEvent::reset(), L1MuGMTMatcher::reset(), and L1MuGMTPSB::reset().
int L1MuGMTMatrix< T >::rowAny | ( | int | r | ) | const |
is any element in row r > 0 ? return index or -1
Definition at line 276 of file L1MuGMTMatrix.h.
References L1MuGMTMatrix< T >::c_size, mps_fire::i, and hgcalPlots::stat.
Referenced by L1MuGMTCancelOutUnit::decide(), and L1MuGMTMerger::merge().
void L1MuGMTMatrix< T >::set | ( | int | r, |
int | c, | ||
T | v | ||
) |
set matrix element
Definition at line 158 of file L1MuGMTMatrix.h.
References HltBtagPostValidation_cff::c, L1MuGMTMatrix< T >::c_size, and alignCSCRings::r.
Referenced by L1MuGMTPSB::getCalo().
|
private |
Definition at line 102 of file L1MuGMTMatrix.h.
Referenced by L1MuGMTMatrix< bool >::get(), L1MuGMTMatrix< T >::isMax(), L1MuGMTMatrix< T >::isMin(), L1MuGMTMatrix< T >::L1MuGMTMatrix(), L1MuGMTMatrix< T >::operator()(), L1MuGMTMatrix< T >::operator*=(), L1MuGMTMatrix< T >::operator+=(), L1MuGMTMatrix< T >::operator=(), L1MuGMTMatrix< T >::print(), L1MuGMTMatrix< T >::reset(), L1MuGMTMatrix< T >::rowAny(), and L1MuGMTMatrix< T >::set().
|
private |
Definition at line 104 of file L1MuGMTMatrix.h.
Referenced by L1MuGMTMatrix< bool >::get(), L1MuGMTMatrix< T >::L1MuGMTMatrix(), L1MuGMTMatrix< T >::operator*=(), L1MuGMTMatrix< T >::operator+=(), L1MuGMTMatrix< T >::operator=(), and L1MuGMTMatrix< T >::reset().
|
private |
Definition at line 102 of file L1MuGMTMatrix.h.
Referenced by L1MuGMTMatrix< T >::colAny(), L1MuGMTMatrix< T >::isMax(), L1MuGMTMatrix< T >::isMin(), L1MuGMTMatrix< T >::L1MuGMTMatrix(), L1MuGMTMatrix< T >::operator*=(), L1MuGMTMatrix< T >::operator+=(), L1MuGMTMatrix< T >::operator=(), L1MuGMTMatrix< T >::print(), and L1MuGMTMatrix< T >::reset().