BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
Reconstruction/MdcPatRec/TrkBase/TrkBase-00-01-12/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;
33private:
34 TrkErrCode _err;
35 const char* _mod;
36};
37// stream operator
38std::ostream& operator<<(std::ostream& os, const TrkHistory& history);
39
40#endif
41
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)
Definition: TrkHistory.cxx:30
bool operator==(const TrkHistory &other) const
Definition: TrkHistory.cxx:42
TrkHistory(const TrkHistory &other)