26 GFException::GFException(std::string _excString,
int _line, std::string _file) : fExcString(_excString), fLine(_line), fFile(_file),fFatal(false) {
33 const std::vector<double>& _numbers) {
40 const std::vector< TMatrixT<Double_t> >& _matrices) {
48 std::ostringstream returnStream;
49 returnStream <<
"GFException thrown with excString:" 51 <<
"in line: " <<
fLine <<
" in file: " <<
fFile << std::endl
52 <<
"with fatal flag " <<
fFatal << std::endl;
53 return returnStream.str().c_str();
59 std::cout <<
"GFException Info Output" << std::endl;
60 std::cout <<
"===========================" << std::endl;
62 std::cout <<
"Numbers Label String:" << std::endl;
66 std::cout <<
"---------------------------" << std::endl;
67 std::cout <<
"Numbers:" << std::endl;
68 for(
unsigned int i=0;i<
fNumbers.size(); i++ ) std::cout <<
fNumbers.at(i) << std::endl;
71 std::cout <<
"---------------------------" << std::endl;
72 std::cout <<
"Matrices Label String:" << std::endl;
76 std::cout <<
"---------------------------" << std::endl;
77 std::cout <<
"Matrices:" << std::endl;
80 std::cout <<
"===========================" << std::endl;
87 out <<
"(x,y,z)=(" << v.X() <<
"," << v.Y() <<
"," << v.Z() <<
")" 88 " (rho,theta,phi)=(" << v.Mag() <<
"," << (v.Theta()*TMath::RadToDeg())
89 <<
"," << (v.Phi()*TMath::RadToDeg()) <<
")";
GFException & setNumbers(std::string, const std::vector< double > &)
set list of numbers with description
std::string fNumbersLabel
std::vector< TMatrixT< Double_t > > fMatrices
virtual const char * what() const
standard error message handling for exceptions. use like "std::cerr << e.what();" ...
std::string fMatricesLabel
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
GFException & setMatrices(std::string, const std::vector< TMatrixT< Double_t > > &)
set list of matrices with description
void info()
print information in the exception object
Exception class for error handling in GENFIT (provides storage for diagnostic information) ...
GFException(std::string, int, std::string)
Initializing constructor.
std::vector< double > fNumbers
void PrintROOTobject(std::ostream &, const ROOTOBJ &)
Small utility functions which print some ROOT objects into an output stream.