FairRoot/PandaRoot
|
Exception class for error handling in GENFIT (provides storage for diagnostic information) More...
#include <GFException.h>
Public Member Functions | |
GFException (std::string, int, std::string) | |
Initializing constructor. More... | |
virtual | ~GFException () throw () |
void | setFatal (bool b=true) |
set fatal flag. if this is true, the fit stops for this current track repr. More... | |
bool | isFatal () |
get fatal flag. More... | |
void | setNumbers (std::string, const std::vector< double > &) |
set list of numbers with description More... | |
void | setMatrices (std::string, const std::vector< TMatrixT< double > > &) |
set list of matrices with description More... | |
void | info () |
print information in the exception object More... | |
virtual const char * | what () const throw () |
standard error message handling for exceptions. use like "std::cerr << e.what();" More... | |
std::string | getExcString () |
Static Public Member Functions | |
static void | quiet (bool b=true) |
Private Attributes | |
std::string | fExcString |
int | fLine |
std::string | fFile |
std::string | fErrorMessage |
std::string | fNumbersLabel |
std::string | fMatricesLabel |
std::vector< double > | fNumbers |
std::vector< TMatrixT< double > > | fMatrices |
bool | fFatal |
Static Private Attributes | |
static bool | fQuiet = false |
Exception class for error handling in GENFIT (provides storage for diagnostic information)
This is the class that is used for all error handling in GENFIT. It is a utility class that allows to store numbers and matrices together with an error string. The exception class can then be thrown when an error is detected and the C++ exception handling facilities can be used to catch and process the exception.
Definition at line 45 of file GFException.h.
GFException::GFException | ( | std::string | _excString, |
int | _line, | ||
std::string | _file | ||
) |
Initializing constructor.
what | error message |
line | line at which the exception is created. Can be set through LINE macro |
file | sorcefile in which the exception is created. Can be set through FILE macro |
Definition at line 23 of file GFException.cxx.
References fErrorMessage, fExcString, fFatal, fFile, and fLine.
|
virtual |
Definition at line 32 of file GFException.cxx.
|
inline |
void GFException::info | ( | ) |
print information in the exception object
Definition at line 52 of file GFException.cxx.
References fMatrices, fMatricesLabel, fNumbers, fNumbersLabel, fQuiet, and i.
Referenced by GFDaf::calcWeights(), GFKalman::fittingPass(), and GFDaf::processTrack().
|
inline |
get fatal flag.
Definition at line 79 of file GFException.h.
References fFatal.
Referenced by GFKalman::fittingPass().
|
inlinestatic |
Definition at line 93 of file GFException.h.
References b.
Referenced by PndRecoDafFit::Init(), and PndRecoKalmanFit::Init().
|
inline |
set fatal flag. if this is true, the fit stops for this current track repr.
Definition at line 77 of file GFException.h.
References b.
Referenced by GFRecoHitFactory::addProducer(), GFKalman::chi2Increment(), GFRecoHitFactory::createOne(), RKTrackRep::Extrap(), GeaneTrackRep::extrapolate(), GeaneTrackRep::extrapolateToLine(), GeaneTrackRep::extrapolateToPoint(), GeaneTrackRep::getPocaOnLine(), GFTools::invertMatrix(), PndSttRecoHitProducer< hit_T, recoHit_T >::produce(), PndFtsRecoHitProducer< hit_T, recoHit_T >::produce(), GFRecoHitProducer< hit_T, recoHit_T >::produce(), and GFDaf::setProbCut().
void GFException::setMatrices | ( | std::string | _matricesLabel, |
const std::vector< TMatrixT< double > > & | _matrices | ||
) |
set list of matrices with description
Definition at line 41 of file GFException.cxx.
References fMatrices, and fMatricesLabel.
Referenced by GFKalman::chi2Increment().
void GFException::setNumbers | ( | std::string | _numbersLabel, |
const std::vector< double > & | _numbers | ||
) |
set list of numbers with description
Definition at line 35 of file GFException.cxx.
References fNumbers, and fNumbersLabel.
Referenced by GFRecoHitFactory::addProducer(), and GFRecoHitFactory::createOne().
|
virtual |
standard error message handling for exceptions. use like "std::cerr << e.what();"
Definition at line 47 of file GFException.cxx.
References fErrorMessage, and fQuiet.
Referenced by GFDaf::calcWeights(), PndHypKalmanTask::Exec(), PndHypDKalmanTask::Exec(), PndLmdKalmanTask::Exec(), PndRecoDafFit::Fit(), PndRecoKalmanFit::Fit(), GFKalman::fittingPass(), GenfitTrack2PndTrack(), and GFDaf::processTrack().
|
private |
Definition at line 55 of file GFException.h.
Referenced by GFException(), and what().
|
private |
Definition at line 51 of file GFException.h.
Referenced by getExcString(), and GFException().
|
private |
Definition at line 62 of file GFException.h.
Referenced by GFException(), and isFatal().
|
private |
Definition at line 53 of file GFException.h.
Referenced by GFException().
|
private |
Definition at line 52 of file GFException.h.
Referenced by GFException().
|
private |
Definition at line 60 of file GFException.h.
Referenced by info(), and setMatrices().
|
private |
Definition at line 58 of file GFException.h.
Referenced by info(), and setMatrices().
|
private |
Definition at line 59 of file GFException.h.
Referenced by info(), and setNumbers().
|
private |
Definition at line 57 of file GFException.h.
Referenced by info(), and setNumbers().
|
staticprivate |
Definition at line 49 of file GFException.h.