/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Reconstruction/MdcPatRec/TrkBase/TrkBase-00-01-12/src/TrkHistory.cxx

Go to the documentation of this file.
00001 //--------------------------------------------------------------------------
00002 // File and Version Information:
00003 //      $Id: TrkHistory.cxx,v 1.1.1.1 2005/04/21 06:01:42 zhangy Exp $
00004 //
00005 // Description:  TrkHistory; simple class to record the history
00006 // of a track fit
00007 //
00008 // Environment:
00009 //      Software developed for the BaBar Detector at the SLAC B-Factory.
00010 //
00011 // Author(s): Dave Brown
00012 //
00013 //------------------------------------------------------------------------
00014 
00015 #include "TrkBase/TrkHistory.h"
00016 using std::ostream;
00017 
00018 TrkHistory::TrkHistory() : _mod("Unknown")
00019 {}
00020 
00021 TrkHistory::TrkHistory(const TrkErrCode& err,const char* modname):
00022   _err(err),_mod(modname)
00023 {}
00024 
00025 TrkHistory::TrkHistory(const TrkHistory& other) : _err(other._err),
00026                                                   _mod(other._mod)
00027 {}
00028 
00029 TrkHistory&
00030 TrkHistory::operator =(const TrkHistory& other){
00031   if(&other != this){
00032     _err = other._err;
00033     _mod = other._mod;
00034   }
00035   return *this;
00036 }
00037 
00038 TrkHistory::~TrkHistory()
00039 {}
00040 
00041 bool
00042 TrkHistory::operator == (const TrkHistory& other) const {
00043   return false;
00044 }
00045 
00046 void
00047 TrkHistory::print(ostream& os) const {
00048   os << module() << ": " << status();
00049 }
00050 
00051 ostream& operator<<(ostream& os, const TrkHistory& history) {
00052   history.print(os);
00053   return os;
00054 }
00055 

Generated on Tue Nov 29 23:13:40 2016 for BOSS_7.0.2 by  doxygen 1.4.7