CGEM BOSS 6.6.5.h
BESIII Offline Software System
Loading...
Searching...
No Matches
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
22public:
23 TrkHistory();
24 TrkHistory(const TrkErrCode& err,const char* modname);
25 TrkHistory(const TrkHistory& other);
26 TrkHistory& operator =(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)
void print(std::ostream &os=std::cout) const
TrkHistory & operator=(const TrkHistory &other)
const TrkErrCode & status() const
Definition TrkHistory.h:29
const char * module() const
Definition TrkHistory.h:30
bool operator==(const TrkHistory &other) const