Functions | |
template<class T> | |
void | pack2d (int n, const T *sm, T *pac_sm) |
int | get_idx (int i, int j) |
template<class T> | |
T | get_element (const T *pac_sm, int i, int j) |
template<class T> | |
void | unpack2d (int n, T *sm, const T *pac_sm) |
void SimMat::pack2d | ( | int | n, | |
const T * | sm, | |||
T * | pac_sm | |||
) | [inline] |
Definition at line 9 of file SimMatr.h.
References genRecEmupikp::i, and ganga-rec::j.
Referenced by TExtTrack::SetEmcErrorMatrix(), TMdcKalTrack::setFError(), TMdcKalTrack::setFErrorE(), TMdcKalTrack::setFErrorK(), TMdcKalTrack::setFErrorMu(), TMdcKalTrack::setFErrorP(), TExtTrack::SetMucErrorMatrix(), TExtTrack::SetTof1ErrorMatrix(), TExtTrack::SetTof2ErrorMatrix(), TMdcKalTrack::setZError(), TMdcKalTrack::setZErrorE(), TMdcKalTrack::setZErrorK(), TMdcKalTrack::setZErrorMu(), and TMdcKalTrack::setZErrorP().
00010 { 00011 for(int i = 0; i < n; i++) { 00012 for(int j = 0; j <= i; j++) { 00013 int k = i*(i+1)/2 + j; 00014 pac_sm[k] = sm[i*n+j]; 00015 } 00016 } 00017 }
int SimMat::get_idx | ( | int | i, | |
int | j | |||
) | [inline] |
T SimMat::get_element | ( | const T * | pac_sm, | |
int | i, | |||
int | j | |||
) | [inline] |
Definition at line 27 of file SimMatr.h.
References get_idx().
Referenced by TExtTrack::GetEmcErrorMatrix(), TMdcKalTrack::getFError(), TMdcKalTrack::getFErrorE(), TMdcKalTrack::getFErrorK(), TMdcKalTrack::getFErrorMu(), TMdcKalTrack::getFErrorP(), TExtTrack::GetMucErrorMatrix(), TExtTrack::GetTof1ErrorMatrix(), TExtTrack::GetTof2ErrorMatrix(), TMdcKalTrack::getZError(), TMdcKalTrack::getZErrorE(), TMdcKalTrack::getZErrorK(), TMdcKalTrack::getZErrorMu(), and TMdcKalTrack::getZErrorP().
void SimMat::unpack2d | ( | int | n, | |
T * | sm, | |||
const T * | pac_sm | |||
) | [inline] |