#include <TrkFitStatus.h>
Inheritance diagram for TrkFitStatus:
Public Types | |
typedef std::unary_function< TrkFitStatus, bool > | predicate_type |
Public Member Functions | |
bool | is2d () const |
bool | fitCurrent () const |
bool | fitValid () const |
bool | multScat () const |
std::ostream & | printStatus (std::ostream &os=std::cout) const |
void | setValid (bool v) |
void | setCurrent (bool c) |
void | set2d (bool d) |
void | setMultScat (bool m) |
const TrkErrCode & | fitStatus () const |
history_iterator | beginHistory () const |
history_iterator | endHistory () const |
history_riterator | reverseBeginHistory () const |
history_riterator | reverseEndHistory () const |
std::pair< history_iterator, history_iterator > | history () const |
const std::vector< TrkHistory > & | historyVector () const |
virtual void | addHistory (const TrkErrCode &status, const char *modulename) |
template<class T> | |
void | addHistory (T begin, T end) |
template<class T> | |
void | addHistory (std::pair< T, T > p) |
std::ostream & | printHistory (std::ostream &os=std::cout) const |
Protected Member Functions | |
virtual | ~TrkFitStatus () |
TrkFitStatus () | |
TrkFitStatus & | operator= (const TrkFitStatus &) |
TrkFitStatus (const TrkFitStatus &) | |
Private Types | |
typedef std::vector< TrkHistory >::const_iterator | history_iterator |
typedef std::vector< TrkHistory >::const_reverse_iterator | history_riterator |
Private Attributes | |
std::vector< TrkHistory > | _history |
bool | _fitValid |
bool | _fitCurrent |
bool | _is2d |
bool | _multScat |
Definition at line 26 of file TrkFitStatus.h.
typedef std::vector<TrkHistory>::const_iterator TrkFitStatus::history_iterator [private] |
Definition at line 27 of file TrkFitStatus.h.
typedef std::vector<TrkHistory>::const_reverse_iterator TrkFitStatus::history_riterator [private] |
Definition at line 28 of file TrkFitStatus.h.
typedef std::unary_function<TrkFitStatus,bool> TrkFitStatus::predicate_type |
Definition at line 31 of file TrkFitStatus.h.
TrkFitStatus::~TrkFitStatus | ( | ) | [protected, virtual] |
TrkFitStatus::TrkFitStatus | ( | ) | [protected] |
Definition at line 23 of file TrkFitStatus.cxx.
00023 : 00024 _fitValid(false), 00025 _fitCurrent(false), 00026 _is2d(false), 00027 _multScat(false) 00028 {}
TrkFitStatus::TrkFitStatus | ( | const TrkFitStatus & | ) | [protected] |
Definition at line 35 of file TrkFitStatus.cxx.
00035 : 00036 _history(right._history), 00037 _fitValid(right._fitValid), 00038 _fitCurrent(right._fitCurrent), 00039 _is2d(right._is2d), 00040 _multScat(right._multScat) 00041 {}
void TrkFitStatus::addHistory | ( | std::pair< T, T > | p | ) | [inline] |
Definition at line 59 of file TrkFitStatus.h.
References addHistory().
00059 { addHistory(p.first,p.second); }
void TrkFitStatus::addHistory | ( | T | begin, | |
T | end | |||
) | [inline] |
void TrkFitStatus::addHistory | ( | const TrkErrCode & | status, | |
const char * | modulename | |||
) | [virtual] |
Definition at line 76 of file TrkFitStatus.cxx.
References _history.
Referenced by addHistory(), and MdcTrackList::finishCircle().
00078 { 00079 // append the module name to the error code message 00080 _history.push_back(TrkHistory(status,modulename)); 00081 }
history_iterator TrkFitStatus::beginHistory | ( | ) | const [inline] |
Definition at line 46 of file TrkFitStatus.h.
References _history.
Referenced by history().
00046 { return _history.begin(); }
history_iterator TrkFitStatus::endHistory | ( | ) | const [inline] |
Definition at line 47 of file TrkFitStatus.h.
References _history.
Referenced by history().
00047 { return _history.end(); }
bool TrkFitStatus::fitCurrent | ( | ) | const [inline] |
Definition at line 33 of file TrkFitStatus.h.
References _fitCurrent.
Referenced by TrkLineRep::clone(), TrkHelixRep::clone(), TrkCircleRep::clone(), TrkLineRep::cloneNewHypo(), TrkHelixRep::cloneNewHypo(), and TrkCircleRep::cloneNewHypo().
00033 {return _fitCurrent;}
const TrkErrCode& TrkFitStatus::fitStatus | ( | ) | const [inline] |
Definition at line 43 of file TrkFitStatus.h.
References _history.
00043 { return _history.back().status(); }
bool TrkFitStatus::fitValid | ( | ) | const [inline] |
Definition at line 34 of file TrkFitStatus.h.
References _fitValid.
Referenced by TrkRep::chisqConsistency(), TrkLineRep::clone(), TrkCircleRep::clone(), TrkLineRep::cloneNewHypo(), TrkHelixRep::cloneNewHypo(), TrkCircleRep::cloneNewHypo(), and TrkRecoTrk::fitResult().
00034 {return _fitValid;}
std::pair<history_iterator,history_iterator> TrkFitStatus::history | ( | ) | const [inline] |
Definition at line 50 of file TrkFitStatus.h.
References beginHistory(), and endHistory().
00050 { 00051 return std::pair<history_iterator,history_iterator>(beginHistory(),endHistory()); 00052 }
const std::vector<TrkHistory>& TrkFitStatus::historyVector | ( | ) | const [inline] |
bool TrkFitStatus::is2d | ( | ) | const [inline] |
Definition at line 32 of file TrkFitStatus.h.
References _is2d.
Referenced by MdcTrackList::pickHits().
00032 {return _is2d;}
bool TrkFitStatus::multScat | ( | ) | const [inline] |
TrkFitStatus & TrkFitStatus::operator= | ( | const TrkFitStatus & | ) | [protected] |
Definition at line 44 of file TrkFitStatus.cxx.
References _fitCurrent, _fitValid, _history, _is2d, and _multScat.
Referenced by TrkRep::operator=().
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 }
std::ostream& TrkFitStatus::printHistory | ( | std::ostream & | os = std::cout |
) | const |
std::ostream& TrkFitStatus::printStatus | ( | std::ostream & | os = std::cout |
) | const |
history_riterator TrkFitStatus::reverseBeginHistory | ( | ) | const [inline] |
Definition at line 48 of file TrkFitStatus.h.
References _history.
00048 { return _history.rbegin(); }
history_riterator TrkFitStatus::reverseEndHistory | ( | ) | const [inline] |
void TrkFitStatus::set2d | ( | bool | d | ) | [inline] |
Definition at line 40 of file TrkFitStatus.h.
References _is2d.
Referenced by TrkCircleRep::TrkCircleRep().
00040 { _is2d = d; };
void TrkFitStatus::setCurrent | ( | bool | c | ) | [inline] |
Definition at line 39 of file TrkFitStatus.h.
References _fitCurrent.
Referenced by TrkRep::activateHot(), TrkRep::addHot(), TrkHelixMaker::addZValues(), TrkLineRep::clone(), TrkHelixRep::clone(), TrkCircleRep::clone(), TrkLineRep::cloneNewHypo(), TrkHelixRep::cloneNewHypo(), TrkCircleRep::cloneNewHypo(), TrkRep::deactivateHot(), TrkSimpleRep::fit(), TrkRep::removeHot(), setValid(), and TrkRep::updateHots().
00039 { _fitCurrent = c; }
void TrkFitStatus::setMultScat | ( | bool | m | ) | [inline] |
void TrkFitStatus::setValid | ( | bool | v | ) |
Definition at line 57 of file TrkFitStatus.cxx.
References _fitValid, and setCurrent().
Referenced by TrkHelixMaker::addZValues(), TrkLineRep::clone(), TrkCircleRep::clone(), TrkLineRep::cloneNewHypo(), TrkHelixRep::cloneNewHypo(), TrkCircleRep::cloneNewHypo(), and TrkSimpleRep::fit().
00058 { 00059 _fitValid = v; 00060 if (!v) setCurrent(false); 00061 }
bool TrkFitStatus::_fitCurrent [private] |
Definition at line 69 of file TrkFitStatus.h.
Referenced by fitCurrent(), operator=(), and setCurrent().
bool TrkFitStatus::_fitValid [private] |
Definition at line 68 of file TrkFitStatus.h.
Referenced by fitValid(), operator=(), and setValid().
std::vector<TrkHistory> TrkFitStatus::_history [private] |
Definition at line 67 of file TrkFitStatus.h.
Referenced by addHistory(), beginHistory(), endHistory(), fitStatus(), historyVector(), operator=(), reverseBeginHistory(), and reverseEndHistory().
bool TrkFitStatus::_is2d [private] |
bool TrkFitStatus::_multScat [private] |
Definition at line 71 of file TrkFitStatus.h.
Referenced by multScat(), operator=(), and setMultScat().