#include"FitterExceptions.h" FitterException::FitterException(std::string _excString, int _line, std::string _file) : excString(_excString), line(_line), file(_file),fatal(false) { } FitterException::~FitterException() throw() { } void FitterException::setNumbers(std::string _numbersLabel, const std::vector& _numbers) { numbersLabel = _numbersLabel; numbers = _numbers; } void FitterException::setMatrices(std::string _matricesLabel, const std::vector< TMatrixT >& _matrices) { matricesLabel = _matricesLabel; matrices = _matrices; } const char* FitterException::what() const throw(){ std::ostringstream returnStream; returnStream << "FitterException thrown with excString:" << std::endl << excString << std::endl << "in line: " << line << " in file: " << file << std::endl << "with fatal flag " << fatal; return returnStream.str().c_str(); } void FitterException::info() { std::cout << "FitterException Info Output" << std::endl; std::cout << "===========================" << std::endl; if(numbersLabel != "") { std::cout << "Numbers Label String:" << std::endl; std::cout << numbersLabel << std::endl; } if(numbers.size() > 0) { std::cout << "---------------------------" << std::endl; std::cout << "Numbers:" << std::endl; for(unsigned int i=0;i 0) { std::cout << "---------------------------" << std::endl; std::cout << "Matrices:" << std::endl; for(unsigned int i=0;i