LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
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 () |
GFException & | 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... | |
GFException & | setNumbers (std::string, const std::vector< double > &) |
set list of numbers with description More... | |
GFException & | setMatrices (std::string, const std::vector< TMatrixT< Double_t >> &) |
set list of matrices with description More... | |
void | info () |
print information in the exception object More... | |
const char * | what () const noexcept override |
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 | fNumbersLabel |
std::string | fMatricesLabel |
std::vector< double > | fNumbers |
std::vector< TMatrixT< Double_t > > | 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 47 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 28 of file GFException.cxx.
References fExcString, fFatal, fFile, and fLine.
|
virtual |
Definition at line 38 of file GFException.cxx.
|
inline |
void GFException::info | ( | ) |
print information in the exception object
Definition at line 61 of file GFException.cxx.
References fMatrices, fMatricesLabel, fNumbers, fNumbersLabel, and fQuiet.
Referenced by genf::GFKalman::fittingPass(), isFatal(), and genf::GFDaf::processTrack().
|
inline |
get fatal flag.
Definition at line 81 of file GFException.h.
References fFatal, info(), setMatrices(), setNumbers(), lar::dump::vector(), and what().
Referenced by genf::GFKalman::fittingPass(), and genf::GFDaf::processTrack().
|
inlinestatic |
Definition at line 95 of file GFException.h.
References genf::PrintROOTmatrix(), and genf::PrintROOTobject().
|
inline |
set fatal flag. if this is true, the fit stops for this current track repr.
Definition at line 75 of file GFException.h.
Referenced by genf::GFAbsTrackRep::Abort(), genf::GFRecoHitFactory::addProducer(), genf::GFKalman::calcCov7x7(), genf::GFKalman::calcGain(), genf::GFKalman::chi2Increment(), genf::GFRecoHitFactory::createOne(), genf::GFEnergyLossBrems::energyLoss(), genf::GFEnergyLossBetheBloch::energyLoss(), genf::GFEnergyLossCoulomb::energyLoss(), genf::RKTrackRep::Extrap(), genf::RKTrackRep::extrapolateToLine(), genf::RKTrackRep::extrapolateToPoint(), genf::RKTrackRep::getAuxInfo(), genf::GFTrack::getBK(), genf::GFTrackCand::getHit(), genf::GFTrack::getHitsByPlane(), genf::GFTrackCand::getHitWithPlane(), genf::GFGeoMatManager::getMaterialParameters(), genf::GFTrack::getRepAtHit(), genf::GFRectFinitePlane::GFRectFinitePlane(), genf::GFTrackCand::GFTrackCand(), genf::GFDaf::invertMatrix(), MeanExcEnergy_get(), genf::GFMaterialEffects::MeanExcEnergy_get(), genf::RKTrackRep::poca2Line(), genf::GFBookkeeping::Print(), genf::GFTrackCand::Print(), genf::GFKalman::processTrack(), GFRecoHitProducer< hit_T, recoHit_T >::produce(), genf::RKTrackRep::RKutta(), genf::GFDetPlane::sane(), genf::RKTrackRep::setData(), genf::GFDaf::setProbCut(), and genf::GFTrack::setRepAtHit().
GFException & GFException::setMatrices | ( | std::string | _matricesLabel, |
const std::vector< TMatrixT< Double_t >> & | _matrices | ||
) |
set list of matrices with description
Definition at line 47 of file GFException.cxx.
References fMatrices, and fMatricesLabel.
Referenced by genf::GFKalman::calcGain(), genf::GFKalman::chi2Increment(), and isFatal().
GFException & GFException::setNumbers | ( | std::string | _numbersLabel, |
const std::vector< double > & | _numbers | ||
) |
set list of numbers with description
Definition at line 40 of file GFException.cxx.
References fNumbers, and fNumbersLabel.
Referenced by genf::GFRecoHitFactory::addProducer(), genf::GFKalman::chi2Increment(), genf::GFRecoHitFactory::createOne(), isFatal(), and genf::GFDaf::setProbCut().
|
overridenoexcept |
standard error message handling for exceptions. use like "std::cerr << e.what();"
Definition at line 55 of file GFException.cxx.
References fExcString, and fQuiet.
Referenced by genf::GFKalman::fittingPass(), isFatal(), genf::GFDaf::processTrack(), and trkf::Track3DKalman::produce().
|
private |
Definition at line 51 of file GFException.h.
Referenced by getExcString(), GFException(), and what().
|
private |
Definition at line 60 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 58 of file GFException.h.
Referenced by info(), and setMatrices().
|
private |
Definition at line 56 of file GFException.h.
Referenced by info(), and setMatrices().
|
private |
Definition at line 57 of file GFException.h.
Referenced by info(), and setNumbers().
|
private |
Definition at line 55 of file GFException.h.
Referenced by info(), and setNumbers().
|
staticprivate |
Definition at line 49 of file GFException.h.