BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Reconstruction/MdcPatRec/TrkBase/include/TrkBase/TrkHistory.h
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2// File and Version Information:
3// $Id: TrkHistory.h,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#ifndef TRKHISTORY_HH
16#define TRKHISTORY_HH
17
18#include "TrkBase/TrkErrCode.h"
19#include <iostream>
20
21class TrkHistory {
22public:
24 TrkHistory( const TrkErrCode& err, const char* modname );
25 TrkHistory( const TrkHistory& other );
28 // accessors
29 const TrkErrCode& status() const { return _err; }
30 const char* module() const { return _mod; }
31 bool operator==( const TrkHistory& other ) const;
32 void print( std::ostream& os = std::cout ) const;
33
34private:
35 TrkErrCode _err;
36 const char* _mod;
37};
38// stream operator
39std::ostream& operator<<( std::ostream& os, const TrkHistory& history );
40
41#endif
std::ostream & operator<<(std::ostream &os, const TrkHistory &history)
TrkHistory(const TrkErrCode &err, const char *modname)
void print(std::ostream &os=std::cout) const
TrkHistory & operator=(const TrkHistory &other)
bool operator==(const TrkHistory &other) const
TrkHistory(const TrkHistory &other)