#include <stdio.h>
#include <assert.h>
#include <ctype.h>
#include "MdcRecoUtil/BesError.h"
#include "CLHEP/Matrix/Matrix.h"
Go to the source code of this file.
Functions | |
ostream & | operator<< (ostream &out, const BesError &mat) |
istream & | operator>> (istream &in, BesError &mat) |
BesError | operator * (double t, const BesError &m1) |
BesError | operator * (const BesError &m1, double t) |
BesError | operator/ (double t, const BesError &m1) |
BesError | operator/ (const BesError &m1, double t) |
BesError | operator+ (const BesError &m1, const BesError &m2) |
BesError | operator- (const BesError &m1, const BesError &m2) |
Variables | |
static const char | rscid [] = "$Id: BesError.cxx,v 1.2 2009/12/23 02:59:56 zhangy Exp $" |
Definition at line 183 of file BesError.cxx.
00184 { 00185 BesError mret = m1; 00186 mret += m2; 00187 return mret; 00188 }
Definition at line 190 of file BesError.cxx.
00191 { 00192 BesError mret = m1; 00193 mret -= m2; 00194 return mret; 00195 }
Definition at line 122 of file BesError.cxx.
00123 { 00124 out << "Bes Covariance Matrix:"; 00125 out << (HepSymMatrix&) mat; 00126 return out; 00127 }
Definition at line 129 of file BesError.cxx.
00129 { 00130 // Peek at the next non-space character: 00131 char nextChar = ' '; 00132 while (isspace(nextChar)){ 00133 nextChar = in.get(); 00134 } 00135 in.putback(nextChar); 00136 00137 if (EOF != nextChar){ 00138 if (!isdigit(nextChar)){ 00139 // Remove the "Bes Covariance Matrix:" line: 00140 const int DUMMY_SIZE = 1000; 00141 char dummy[DUMMY_SIZE]; 00142 in.getline(dummy, DUMMY_SIZE); 00143 } 00144 // Read in the matrix: 00145 for (int row = 1; row <= mat.num_row(); ++row){ 00146 for (int col = 1; col <= mat.num_col(); ++col){ 00147 in >> mat(row, col); 00148 } 00149 } 00150 } 00151 return in; 00152 }
Definition at line 36 of file BesError.cxx.