BOSS 7.0.2
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{}
20
21TrkHistory::TrkHistory(const TrkErrCode& err,const char* modname):
22 _err(err),_mod(modname)
23{}
24
25TrkHistory::TrkHistory(const TrkHistory& other) : _err(other._err),
26 _mod(other._mod)
27{}
28
31 if(&other != this){
32 _err = other._err;
33 _mod = other._mod;
34 }
35 return *this;
36}
37
39{}
40
41bool
43 return false;
44}
45
46void
47TrkHistory::print(ostream& os) const {
48 os << module() << ": " << status();
49}
50
51ostream& operator<<(ostream& os, const TrkHistory& history) {
52 history.print(os);
53 return os;
54}
55
ostream & operator<<(ostream &os, const TrkHistory &history)
Definition: TrkHistory.cxx:51
void print(std::ostream &os=std::cout) const
TrkHistory & operator=(const TrkHistory &other)
Definition: TrkHistory.cxx:30
bool operator==(const TrkHistory &other) const
Definition: TrkHistory.cxx:42