BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
TrkHistory.cxx
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2// File and Version Information:
3// $Id: TrkHistory.cxx,v 1.1.1.1 2005/04/21 06:01:42 zhangy Exp $
4//
5// Description: TrkHistory; simple class to record the history
6// of a track fit
7//
8// Environment:
9// Software developed for the BaBar Detector at the SLAC B-Factory.
10//
11// Author(s): Dave Brown
12//
13//------------------------------------------------------------------------
14
15#include "TrkBase/TrkHistory.h"
16using std::ostream;
17
18TrkHistory::TrkHistory() : _mod( "Unknown" ) {}
19
20TrkHistory::TrkHistory( const TrkErrCode& err, const char* modname )
21 : _err( err ), _mod( modname ) {}
22
23TrkHistory::TrkHistory( const TrkHistory& other ) : _err( other._err ), _mod( other._mod ) {}
24
26 if ( &other != this )
27 {
28 _err = other._err;
29 _mod = other._mod;
30 }
31 return *this;
32}
33
35
36bool TrkHistory::operator==( const TrkHistory& other ) const { return false; }
37
38void TrkHistory::print( ostream& os ) const { os << module() << ": " << status(); }
39
40ostream& operator<<( ostream& os, const TrkHistory& history ) {
41 history.print( os );
42 return os;
43}
ostream & operator<<(ostream &os, const TrkHistory &history)
void print(std::ostream &os=std::cout) const
TrkHistory & operator=(const TrkHistory &other)
bool operator==(const TrkHistory &other) const