BOSS 7.0.4
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
 
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
 
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 &)
 
virtual ~TrkFitStatus ()
 
 TrkFitStatus ()
 
TrkFitStatusoperator= (const TrkFitStatus &)
 
 TrkFitStatus (const TrkFitStatus &)
 

Detailed Description

Member Typedef Documentation

◆ predicate_type [1/2]

◆ predicate_type [2/2]

Constructor & Destructor Documentation

◆ ~TrkFitStatus() [1/2]

TrkFitStatus::~TrkFitStatus ( )
protectedvirtual

Definition at line 30 of file TrkFitStatus.cxx.

31{
32}

◆ TrkFitStatus() [1/4]

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/4]

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{}

◆ ~TrkFitStatus() [2/2]

virtual TrkFitStatus::~TrkFitStatus ( )
protectedvirtual

◆ TrkFitStatus() [3/4]

TrkFitStatus::TrkFitStatus ( )
protected

◆ TrkFitStatus() [4/4]

TrkFitStatus::TrkFitStatus ( const TrkFitStatus )
protected

Member Function Documentation

◆ addHistory() [1/6]

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/6]

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

◆ addHistory() [3/6]

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

Definition at line 59 of file InstallArea/include/TrkBase/TrkBase/TrkFitStatus.h.

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

Referenced by addHistory().

◆ addHistory() [4/6]

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

Definition at line 59 of file Reconstruction/MdcPatRec/TrkBase/TrkBase-00-01-12/TrkBase/TrkFitStatus.h.

59{ addHistory(p.first,p.second); }

Referenced by addHistory().

◆ addHistory() [5/6]

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

Definition at line 57 of file InstallArea/include/TrkBase/TrkBase/TrkFitStatus.h.

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

◆ addHistory() [6/6]

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

Definition at line 57 of file Reconstruction/MdcPatRec/TrkBase/TrkBase-00-01-12/TrkBase/TrkFitStatus.h.

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

◆ beginHistory() [1/2]

history_iterator TrkFitStatus::beginHistory ( ) const
inline

Definition at line 46 of file InstallArea/include/TrkBase/TrkBase/TrkFitStatus.h.

46{ return _history.begin(); }

Referenced by history().

◆ beginHistory() [2/2]

history_iterator TrkFitStatus::beginHistory ( ) const
inline

Definition at line 46 of file Reconstruction/MdcPatRec/TrkBase/TrkBase-00-01-12/TrkBase/TrkFitStatus.h.

46{ return _history.begin(); }

◆ endHistory() [1/2]

history_iterator TrkFitStatus::endHistory ( ) const
inline

Definition at line 47 of file InstallArea/include/TrkBase/TrkBase/TrkFitStatus.h.

47{ return _history.end(); }

Referenced by history().

◆ endHistory() [2/2]

history_iterator TrkFitStatus::endHistory ( ) const
inline

Definition at line 47 of file Reconstruction/MdcPatRec/TrkBase/TrkBase-00-01-12/TrkBase/TrkFitStatus.h.

47{ return _history.end(); }

◆ fitCurrent() [1/2]

◆ fitCurrent() [2/2]

bool TrkFitStatus::fitCurrent ( ) const
inline

Definition at line 33 of file Reconstruction/MdcPatRec/TrkBase/TrkBase-00-01-12/TrkBase/TrkFitStatus.h.

33{return _fitCurrent;}

◆ fitStatus() [1/2]

const TrkErrCode & TrkFitStatus::fitStatus ( ) const
inline

Definition at line 43 of file InstallArea/include/TrkBase/TrkBase/TrkFitStatus.h.

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

◆ fitStatus() [2/2]

const TrkErrCode & TrkFitStatus::fitStatus ( ) const
inline

Definition at line 43 of file Reconstruction/MdcPatRec/TrkBase/TrkBase-00-01-12/TrkBase/TrkFitStatus.h.

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

◆ fitValid() [1/2]

◆ fitValid() [2/2]

bool TrkFitStatus::fitValid ( ) const
inline

Definition at line 34 of file Reconstruction/MdcPatRec/TrkBase/TrkBase-00-01-12/TrkBase/TrkFitStatus.h.

34{return _fitValid;}

◆ history() [1/2]

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

Definition at line 50 of file InstallArea/include/TrkBase/TrkBase/TrkFitStatus.h.

50 {
51 return std::pair<history_iterator,history_iterator>(beginHistory(),endHistory());
52 }

◆ history() [2/2]

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

Definition at line 50 of file Reconstruction/MdcPatRec/TrkBase/TrkBase-00-01-12/TrkBase/TrkFitStatus.h.

50 {
51 return std::pair<history_iterator,history_iterator>(beginHistory(),endHistory());
52 }

◆ historyVector() [1/2]

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

Definition at line 53 of file InstallArea/include/TrkBase/TrkBase/TrkFitStatus.h.

53{ return _history; }

◆ historyVector() [2/2]

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

Definition at line 53 of file Reconstruction/MdcPatRec/TrkBase/TrkBase-00-01-12/TrkBase/TrkFitStatus.h.

53{ return _history; }

◆ is2d() [1/2]

bool TrkFitStatus::is2d ( ) const
inline

Definition at line 32 of file InstallArea/include/TrkBase/TrkBase/TrkFitStatus.h.

32{return _is2d;}

Referenced by MdcTrackList::pickHits().

◆ is2d() [2/2]

bool TrkFitStatus::is2d ( ) const
inline

◆ multScat() [1/2]

bool TrkFitStatus::multScat ( ) const
inline

Definition at line 35 of file InstallArea/include/TrkBase/TrkBase/TrkFitStatus.h.

35{return _multScat;}

◆ multScat() [2/2]

bool TrkFitStatus::multScat ( ) const
inline

Definition at line 35 of file Reconstruction/MdcPatRec/TrkBase/TrkBase-00-01-12/TrkBase/TrkFitStatus.h.

35{return _multScat;}

◆ operator=() [1/2]

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=().

◆ operator=() [2/2]

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

◆ printHistory() [1/2]

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

◆ printHistory() [2/2]

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

◆ printStatus() [1/2]

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

◆ printStatus() [2/2]

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

◆ reverseBeginHistory() [1/2]

history_riterator TrkFitStatus::reverseBeginHistory ( ) const
inline

Definition at line 48 of file InstallArea/include/TrkBase/TrkBase/TrkFitStatus.h.

48{ return _history.rbegin(); }

◆ reverseBeginHistory() [2/2]

history_riterator TrkFitStatus::reverseBeginHistory ( ) const
inline

Definition at line 48 of file Reconstruction/MdcPatRec/TrkBase/TrkBase-00-01-12/TrkBase/TrkFitStatus.h.

48{ return _history.rbegin(); }

◆ reverseEndHistory() [1/2]

history_riterator TrkFitStatus::reverseEndHistory ( ) const
inline

Definition at line 49 of file InstallArea/include/TrkBase/TrkBase/TrkFitStatus.h.

49{ return _history.rend(); }

◆ reverseEndHistory() [2/2]

history_riterator TrkFitStatus::reverseEndHistory ( ) const
inline

Definition at line 49 of file Reconstruction/MdcPatRec/TrkBase/TrkBase-00-01-12/TrkBase/TrkFitStatus.h.

49{ return _history.rend(); }

◆ set2d() [1/2]

void TrkFitStatus::set2d ( bool  d)
inline

Definition at line 40 of file InstallArea/include/TrkBase/TrkBase/TrkFitStatus.h.

40{ _is2d = d; };

Referenced by TrkCircleRep::TrkCircleRep().

◆ set2d() [2/2]

void TrkFitStatus::set2d ( bool  d)
inline

◆ setCurrent() [1/2]

◆ setCurrent() [2/2]

void TrkFitStatus::setCurrent ( bool  c)
inline

Definition at line 39 of file Reconstruction/MdcPatRec/TrkBase/TrkBase-00-01-12/TrkBase/TrkFitStatus.h.

39{ _fitCurrent = c; }

◆ setMultScat() [1/2]

void TrkFitStatus::setMultScat ( bool  m)
inline

Definition at line 41 of file InstallArea/include/TrkBase/TrkBase/TrkFitStatus.h.

41{ _multScat = m; };

◆ setMultScat() [2/2]

void TrkFitStatus::setMultScat ( bool  m)
inline

Definition at line 41 of file Reconstruction/MdcPatRec/TrkBase/TrkBase-00-01-12/TrkBase/TrkFitStatus.h.

41{ _multScat = m; };

◆ setValid() [1/2]

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

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

◆ setValid() [2/2]

void TrkFitStatus::setValid ( bool  v)

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