/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Reconstruction/MdcPatRec/MdcRecoUtil/MdcRecoUtil-00-01-08/src/BesError.cxx File Reference

#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

ostreamoperator<< (ostream &out, const BesError &mat)
istreamoperator>> (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 $"


Function Documentation

BesError operator * ( const BesError m1,
double  t 
)

Definition at line 162 of file BesError.cxx.

00163   {
00164     BesError mret = m1;
00165     mret *= t;
00166     return mret;
00167   }

BesError operator * ( double  t,
const BesError m1 
)

Definition at line 155 of file BesError.cxx.

00156   {
00157     BesError mret = m1;
00158     mret *= t;
00159     return mret;
00160   }

BesError operator+ ( const BesError m1,
const BesError m2 
)

Definition at line 183 of file BesError.cxx.

00184   {
00185     BesError mret = m1;
00186     mret += m2;
00187     return mret;
00188   }

BesError operator- ( const BesError m1,
const BesError m2 
)

Definition at line 190 of file BesError.cxx.

00191   {
00192     BesError mret = m1;
00193     mret -= m2;
00194     return mret;
00195   }

BesError operator/ ( const BesError m1,
double  t 
)

Definition at line 176 of file BesError.cxx.

00177   {
00178     BesError mret = m1;
00179     mret /= t;
00180     return mret;
00181   }

BesError operator/ ( double  t,
const BesError m1 
)

Definition at line 169 of file BesError.cxx.

00170   {
00171     BesError mret = m1;
00172     mret /= t;
00173     return mret;
00174   }

ostream& operator<< ( ostream out,
const BesError mat 
)

Definition at line 122 of file BesError.cxx.

00123 {
00124     out << "Bes Covariance Matrix:";
00125     out << (HepSymMatrix&) mat;
00126     return out;
00127 }

istream& operator>> ( istream in,
BesError mat 
)

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 }


Variable Documentation

const char rscid[] = "$Id: BesError.cxx,v 1.2 2009/12/23 02:59:56 zhangy Exp $" [static]

Definition at line 36 of file BesError.cxx.


Generated on Tue Nov 29 23:16:55 2016 for BOSS_7.0.2 by  doxygen 1.4.7