/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Reconstruction/TrkExtAlg/TrkExtAlg-00-00-64/src/Ext_errmx.cxx File Reference

#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::ostreamoperator<< (std::ostream &s, const Ext_errmx &err)


Function Documentation

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().

bool Ext_err_valid ( bool  msg,
const HepSymMatrix &  error,
const int  dimension 
)

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 }


Generated on Tue Nov 29 23:17:05 2016 for BOSS_7.0.2 by  doxygen 1.4.7