CGEM BOSS 6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
TrkFitStatus Class Reference

#include <TrkFitStatus.h>

+ Inheritance diagram for TrkFitStatus:

Public Types

typedef std::unary_function< TrkFitStatus, boolpredicate_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 TrkErrCodefitStatus () 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 ()
 
TrkFitStatusoperator= (const TrkFitStatus &)
 
 TrkFitStatus (const TrkFitStatus &)
 

Detailed Description

Definition at line 26 of file TrkFitStatus.h.

Member Typedef Documentation

◆ predicate_type

typedef std::unary_function<TrkFitStatus,bool> TrkFitStatus::predicate_type

Definition at line 31 of file TrkFitStatus.h.

Constructor & Destructor Documentation

◆ ~TrkFitStatus()

TrkFitStatus::~TrkFitStatus ( )
protectedvirtual

Definition at line 30 of file TrkFitStatus.cxx.

31{
32}

◆ TrkFitStatus() [1/2]

TrkFitStatus::TrkFitStatus ( )
protected

Definition at line 23 of file TrkFitStatus.cxx.

23 :
24 _fitValid(false),
25 _fitCurrent(false),
26 _is2d(false),
27 _multScat(false)
28{}

◆ TrkFitStatus() [2/2]

TrkFitStatus::TrkFitStatus ( const TrkFitStatus right)
protected

Definition at line 35 of file TrkFitStatus.cxx.

35 :
36 _history(right._history),
37 _fitValid(right._fitValid),
38 _fitCurrent(right._fitCurrent),
39 _is2d(right._is2d),
40 _multScat(right._multScat)
41{}

Member Function Documentation

◆ addHistory() [1/3]

void TrkFitStatus::addHistory ( const TrkErrCode status,
const char *  modulename 
)
virtual

Definition at line 76 of file TrkFitStatus.cxx.

78{
79// append the module name to the error code message
80 _history.push_back(TrkHistory(status,modulename));
81}

Referenced by MdcTrackListBase::arbitrateHits(), and MdcTrackList::finishCircle().

◆ addHistory() [2/3]

template<class T >
void TrkFitStatus::addHistory ( std::pair< T, T >  p)
inline

Definition at line 59 of file TrkFitStatus.h.

59{ addHistory(p.first,p.second); }
virtual void addHistory(const TrkErrCode &status, const char *modulename)

Referenced by addHistory().

◆ addHistory() [3/3]

template<class T >
void TrkFitStatus::addHistory ( begin,
end 
)
inline

Definition at line 57 of file TrkFitStatus.h.

57{ _history.insert(_history.end(),begin,end); }

◆ beginHistory()

history_iterator TrkFitStatus::beginHistory ( ) const
inline

Definition at line 46 of file TrkFitStatus.h.

46{ return _history.begin(); }

Referenced by history().

◆ endHistory()

history_iterator TrkFitStatus::endHistory ( ) const
inline

Definition at line 47 of file TrkFitStatus.h.

47{ return _history.end(); }

Referenced by history().

◆ fitCurrent()

bool TrkFitStatus::fitCurrent ( ) const
inline

◆ fitStatus()

const TrkErrCode & TrkFitStatus::fitStatus ( ) const
inline

Definition at line 43 of file TrkFitStatus.h.

43{ return _history.back().status(); }

◆ fitValid()

◆ history()

std::pair< history_iterator, history_iterator > TrkFitStatus::history ( ) const
inline

Definition at line 50 of file TrkFitStatus.h.

50 {
51 return std::pair<history_iterator,history_iterator>(beginHistory(),endHistory());
52 }
history_iterator beginHistory() const
Definition: TrkFitStatus.h:46
history_iterator endHistory() const
Definition: TrkFitStatus.h:47

◆ historyVector()

const std::vector< TrkHistory > & TrkFitStatus::historyVector ( ) const
inline

Definition at line 53 of file TrkFitStatus.h.

53{ return _history; }

◆ is2d()

bool TrkFitStatus::is2d ( ) const
inline

Definition at line 32 of file TrkFitStatus.h.

32{return _is2d;}

Referenced by MdcTrackList::pickHits(), TrkRecoTrk::print(), TrkRecoTrk::printAll(), and printStatus().

◆ multScat()

bool TrkFitStatus::multScat ( ) const
inline

Definition at line 35 of file TrkFitStatus.h.

35{return _multScat;}

◆ operator=()

TrkFitStatus & TrkFitStatus::operator= ( const TrkFitStatus right)
protected

Definition at line 44 of file TrkFitStatus.cxx.

45{
46 if(&right != this){
47 _is2d = right._is2d;
48 _multScat = right._multScat;
49 _fitValid = right._fitValid;
50 _fitCurrent = right._fitCurrent;
51 _history = right._history;
52 }
53 return *this;
54}

Referenced by TrkRep::operator=().

◆ printHistory()

ostream & TrkFitStatus::printHistory ( std::ostream &  os = std::cout) const

Definition at line 84 of file TrkFitStatus.cxx.

85{
86 //FIXME: this doesn't work because ostream isn't a std::ostream, so
87 // std::ostream_iterator doesn't like this...
88 // std::copy(_history.begin(),_history.end(),std::ostream_iterator<TrkHistory>(os,"\n"));
89 for(history_iterator i=_history.begin();i!=_history.end();++i)
90 os << *i << endl;
91 return os;
92}

Referenced by printStatus().

◆ printStatus()

ostream & TrkFitStatus::printStatus ( std::ostream &  os = std::cout) const

Definition at line 69 of file TrkFitStatus.cxx.

70{
71 os << " 3-d: " << (is2d() == 0) << " ";
72 return printHistory(os);
73}
bool is2d() const
Definition: TrkFitStatus.h:32
std::ostream & printHistory(std::ostream &os=std::cout) const

◆ reverseBeginHistory()

history_riterator TrkFitStatus::reverseBeginHistory ( ) const
inline

Definition at line 48 of file TrkFitStatus.h.

48{ return _history.rbegin(); }

◆ reverseEndHistory()

history_riterator TrkFitStatus::reverseEndHistory ( ) const
inline

Definition at line 49 of file TrkFitStatus.h.

49{ return _history.rend(); }

◆ set2d()

void TrkFitStatus::set2d ( bool  d)
inline

Definition at line 40 of file TrkFitStatus.h.

40{ _is2d = d; };

Referenced by TrkCircleRep::TrkCircleRep().

◆ setCurrent()

◆ setMultScat()

void TrkFitStatus::setMultScat ( bool  m)
inline

Definition at line 41 of file TrkFitStatus.h.

41{ _multScat = m; };

◆ setValid()

void TrkFitStatus::setValid ( bool  v)

Definition at line 57 of file TrkFitStatus.cxx.

58{
59 _fitValid = v;
60 if (!v) setCurrent(false);
61}
**********Class see also m_nmax DOUBLE PRECISION m_amel DOUBLE PRECISION m_x2 DOUBLE PRECISION m_alfinv DOUBLE PRECISION m_Xenph INTEGER m_KeyWtm INTEGER m_idyfs DOUBLE PRECISION m_zini DOUBLE PRECISION m_q2 DOUBLE PRECISION m_Wt_KF DOUBLE PRECISION m_WtCut INTEGER m_KFfin *COMMON c_KarLud $ !Input CMS energy[GeV] $ !CMS energy after beam spread beam strahlung[GeV] $ !Beam energy spread[GeV] $ !z boost due to beam spread $ !electron beam mass *ff pair spectrum $ !minimum v
Definition: KarLud.h:35
void setCurrent(bool c)
Definition: TrkFitStatus.h:39

Referenced by TrkHelixMaker::addZValues(), TrkCircleRep::clone(), TrkLineRep::clone(), TrkCircleRep::cloneNewHypo(), TrkHelixRep::cloneNewHypo(), TrkLineRep::cloneNewHypo(), and TrkSimpleRep::fit().


The documentation for this class was generated from the following files: