#include <TrkFitStatus.h>
Inheritance diagram for TrkFitStatus:
Public Types | |
typedef std::unary_function< TrkFitStatus, bool > | predicate_type |
typedef std::unary_function< TrkFitStatus, bool > | predicate_type |
Public Member Functions | |
template<class T> | |
void | addHistory (std::pair< T, T > p) |
template<class T> | |
void | addHistory (T begin, T end) |
virtual void | addHistory (const TrkErrCode &status, const char *modulename) |
template<class T> | |
void | addHistory (std::pair< T, T > p) |
template<class T> | |
void | addHistory (T begin, T end) |
virtual void | addHistory (const TrkErrCode &status, const char *modulename) |
history_iterator | beginHistory () const |
history_iterator | beginHistory () const |
history_iterator | endHistory () const |
history_iterator | endHistory () const |
bool | fitCurrent () const |
bool | fitCurrent () const |
const TrkErrCode & | fitStatus () const |
const TrkErrCode & | fitStatus () const |
bool | fitValid () const |
bool | fitValid () const |
std::pair< history_iterator, history_iterator > | history () const |
std::pair< history_iterator, history_iterator > | history () const |
const std::vector< TrkHistory > & | historyVector () const |
const std::vector< TrkHistory > & | historyVector () const |
bool | is2d () const |
bool | is2d () const |
bool | multScat () const |
bool | multScat () const |
std::ostream & | printHistory (std::ostream &os=std::cout) const |
std::ostream & | printHistory (std::ostream &os=std::cout) const |
std::ostream & | printStatus (std::ostream &os=std::cout) const |
std::ostream & | printStatus (std::ostream &os=std::cout) const |
history_riterator | reverseBeginHistory () const |
history_riterator | reverseBeginHistory () const |
history_riterator | reverseEndHistory () const |
history_riterator | reverseEndHistory () const |
void | set2d (bool d) |
void | set2d (bool d) |
void | setCurrent (bool c) |
void | setCurrent (bool c) |
void | setMultScat (bool m) |
void | setMultScat (bool m) |
void | setValid (bool v) |
void | setValid (bool v) |
Protected Member Functions | |
TrkFitStatus & | operator= (const TrkFitStatus &) |
TrkFitStatus & | operator= (const TrkFitStatus &) |
TrkFitStatus (const TrkFitStatus &) | |
TrkFitStatus () | |
TrkFitStatus (const TrkFitStatus &) | |
TrkFitStatus () | |
virtual | ~TrkFitStatus () |
virtual | ~TrkFitStatus () |
Private Types | |
typedef std::vector< TrkHistory >::const_iterator | history_iterator |
typedef std::vector< TrkHistory >::const_iterator | history_iterator |
typedef std::vector< TrkHistory >::const_reverse_iterator | history_riterator |
typedef std::vector< TrkHistory >::const_reverse_iterator | history_riterator |
Private Attributes | |
bool | _fitCurrent |
bool | _fitValid |
std::vector< TrkHistory > | _history |
std::vector< TrkHistory > | _history |
bool | _is2d |
bool | _multScat |
|
|
|
|
|
|
|
|
|
|
|
|
|
00031 { 00032 }
|
|
00023 : 00024 _fitValid(false), 00025 _fitCurrent(false), 00026 _is2d(false), 00027 _multScat(false) 00028 {}
|
|
00035 : 00036 _history(right._history), 00037 _fitValid(right._fitValid), 00038 _fitCurrent(right._fitCurrent), 00039 _is2d(right._is2d), 00040 _multScat(right._multScat) 00041 {}
|
|
|
|
|
|
|
|
00059 { addHistory(p.first,p.second); }
|
|
|
|
|
|
00059 { addHistory(p.first,p.second); }
|
|
|
|
00078 { 00079 // append the module name to the error code message 00080 _history.push_back(TrkHistory(status,modulename)); 00081 }
|
|
00046 { return _history.begin(); }
|
|
00046 { return _history.begin(); }
|
|
00047 { return _history.end(); }
|
|
00047 { return _history.end(); }
|
|
00033 {return _fitCurrent;}
|
|
00033 {return _fitCurrent;}
|
|
00043 { return _history.back().status(); }
|
|
00043 { return _history.back().status(); }
|
|
00034 {return _fitValid;}
|
|
00034 {return _fitValid;}
|
|
00050 { 00051 return std::pair<history_iterator,history_iterator>(beginHistory(),endHistory()); 00052 }
|
|
00050 { 00051 return std::pair<history_iterator,history_iterator>(beginHistory(),endHistory()); 00052 }
|
|
00053 { return _history; }
|
|
00053 { return _history; }
|
|
00032 {return _is2d;}
|
|
00032 {return _is2d;}
|
|
00035 {return _multScat;}
|
|
00035 {return _multScat;}
|
|
|
|
00045 { 00046 if(&right != this){ 00047 _is2d = right._is2d; 00048 _multScat = right._multScat; 00049 _fitValid = right._fitValid; 00050 _fitCurrent = right._fitCurrent; 00051 _history = right._history; 00052 } 00053 return *this; 00054 }
|
|
|
|
00085 { 00086 //FIXME: this doesn't work because ostream isn't a std::ostream, so 00087 // std::ostream_iterator doesn't like this... 00088 // std::copy(_history.begin(),_history.end(),std::ostream_iterator<TrkHistory>(os,"\n")); 00089 for(history_iterator i=_history.begin();i!=_history.end();++i) 00090 os << *i << endl; 00091 return os; 00092 }
|
|
|
|
00070 { 00071 os << " 3-d: " << (is2d() == 0) << " "; 00072 return printHistory(os); 00073 }
|
|
00048 { return _history.rbegin(); }
|
|
00048 { return _history.rbegin(); }
|
|
00049 { return _history.rend(); }
|
|
00049 { return _history.rend(); }
|
|
00040 { _is2d = d; };
|
|
00040 { _is2d = d; };
|
|
00039 { _fitCurrent = c; }
|
|
00039 { _fitCurrent = c; }
|
|
00041 { _multScat = m; };
|
|
00041 { _multScat = m; };
|
|
|
|
00058 { 00059 _fitValid = v; 00060 if (!v) setCurrent(false); 00061 }
|
|
|
|
|
|
|
|
|
|
|
|
|