47#include "CLHEP/Matrix/SymMatrix.h"
51static const double Large( 1.0e13 );
63 for(
int i = 1; i<=dimension; i++ ){
64 double elem( error( i, i ) );
69 std::cout <<
"%ERROR detected at Ext_err_valid: error("
70 << i <<
"," << i <<
") = " << elem <<
" < 0.0. "
71 <<
"Force to 0.0." << std::endl;
74 }
else if( elem > Large ){
77 std::cout <<
"%ERROR detected at Ext_err_valid: error("
78 << i <<
"," << i <<
") = " << elem <<
" > " << Large
79 <<
". Force to " << Large << std::endl;
81 error( i, i ) = Large;
84 if( !trace ) valid = 0;
92bool Ext_err_valid(
bool msg,
const HepSymMatrix &error,
const int dimension )
97 for(
int i = 1; i<=dimension; i++ ){
98 double elem( error( i, i ) );
103 std::cout <<
"%ERROR detected at Ext_err_valid: error matrix: error("
104 << i <<
"," << i <<
")= " << elem <<
" < 0.0." << std::endl;
106 }
else if( elem > Large ){
109 std::cout <<
"%ERROR detected at Ext_err_valid: error matrix: error("
110 << i <<
"," << i <<
")= " << elem <<
" > " << Large << std::endl;
114 if( !trace ) valid = 0;
bool Ext_err_valid(bool msg, HepSymMatrix &error, const int dimension)