#include <iostream>
#include "TrkExtAlg/Ext_errmx.h"
Go to the source code of this file.
◆ Ext_err_valid()
bool Ext_err_valid |
( |
bool | msg, |
|
|
const HepSymMatrix & | error, |
|
|
const int | dimension ) |
|
extern |
Definition at line 92 of file Ext_err_valid.cxx.
93{
94 bool valid( 1 );
95 double trace( 0 );
96
97 for( int i = 1; i<=dimension; i++ ){
98 double elem(
error( i, i ) );
99 trace += elem;
100 if( elem < 0.0 ){
101 valid = 0;
102 if( msg ){
103 std::cout << "%ERROR detected at Ext_err_valid: error matrix: error("
104 << i << "," << i << ")= " << elem << " < 0.0." << std::endl;
105 }
106 } else if( elem > Large ){
107 valid = 0;
108 if( msg ){
109 std::cout << "%ERROR detected at Ext_err_valid: error matrix: error("
110 << i << "," << i << ")= " << elem << " > " << Large << std::endl;
111 }
112 }
113 }
114 if( !trace ) valid = 0;
115 return( valid );
116}
◆ operator<<()
std::ostream & operator<< |
( |
std::ostream & | s, |
|
|
const Ext_errmx & | err ) |
Definition at line 333 of file Ext_errmx.cxx.
334{
335 s <<
" m_valid: " << err.m_valid <<
'\n'
336 <<
"m_err: " << err.
m_err <<
" m_err3: " << err.m_err3
337 << " m_R: " << err.m_R << " m_err2: " << err.m_err2
338 << " *m_nv: " << *err.m_nv
339 << " *(m_nv+1): " << *(err.m_nv+1)
340 << std::endl;
342}