#include <iostream>
#include "TrkExtAlg/Ext_errmx.h"
Go to the source code of this file.
Functions | |
bool | Ext_err_valid (bool msg, const HepSymMatrix &error, const int dimension) |
static const double | Eps (1.0e-12) |
static const double | Infinite (1.0e+12) |
std::ostream & | operator<< (std::ostream &s, const Ext_errmx &err) |
static const double Eps | ( | 1.0e- | 12 | ) | [static] |
Referenced by Ext_errmx::get_plane_err(), Ext_errmx::get_plane_errs(), and Ext_xp_err::move().
Definition at line 92 of file Ext_err_valid.cxx.
References ers::error, genRecEmupikp::i, and Large().
00093 { 00094 bool valid( 1 ); 00095 double trace( 0 ); 00096 00097 for( int i = 1; i<=dimension; i++ ){ 00098 double elem( error( i, i ) ); 00099 trace += elem; 00100 if( elem < 0.0 ){ 00101 valid = 0; 00102 if( msg ){ 00103 std::cout << "%ERROR detected at Ext_err_valid: error matrix: error(" 00104 << i << "," << i << ")= " << elem << " < 0.0." << std::endl; 00105 } 00106 } else if( elem > Large ){ 00107 valid = 0; 00108 if( msg ){ 00109 std::cout << "%ERROR detected at Ext_err_valid: error matrix: error(" 00110 << i << "," << i << ")= " << elem << " > " << Large << std::endl; 00111 } 00112 } 00113 } 00114 if( !trace ) valid = 0; 00115 return( valid ); 00116 }
static const double Infinite | ( | 1.0e+ | 12 | ) | [static] |
Referenced by Ext_errmx::get_plane_err(), ExtMucKal::JCB(), and Ext_xp_err::move().
std::ostream& operator<< | ( | std::ostream & | s, | |
const Ext_errmx & | err | |||
) |
Definition at line 333 of file Ext_errmx.cxx.
References showlog::err.
00334 { 00335 s << " m_valid: " << err.m_valid << '\n' 00336 << "m_err: " << err.m_err << " m_err3: " << err.m_err3 00337 << " m_R: " << err.m_R << " m_err2: " << err.m_err2 00338 << " *m_nv: " << *err.m_nv 00339 << " *(m_nv+1): " << *(err.m_nv+1) 00340 << std::endl; 00341 return s; 00342 }