92 virtual const char*
what()
const throw();
96 static void quiet(
bool b=
true){fQuiet=b;}
104 template <
class ROOTOBJ>
111 template <
typename T>
117 template <
class ROOTOBJ>
119 { std::ostringstream sstr;
PrintROOTobject(sstr, obj);
return sstr.str(); }
128 template <
class ROOTOBJ>
131 template <
typename T>
134 constexpr std::streamsize fw = 11;
135 constexpr std::streamsize ifw = 4 + (fw & 1);
136 const Int_t rb = m.GetRowLwb(), cb = m.GetColLwb();
138 const Int_t
R = m.GetNrows(), C = m.GetNcols();
139 out << R <<
"x" << C <<
" matrix is as follows";
141 std::streamsize swidth = out.width(4);
142 std::ios::fmtflags sflags = out.flags();
143 out.unsetf(std::ios_base::floatfield);
146 std::string index_pad((fw-ifw)/2,
' ');
147 out <<
"\n" << std::string(ifw,
' ') <<
" |";
148 for (Int_t c = 0; c < C; ++c)
149 out << index_pad << std::setw(ifw) << (cb + c) << index_pad <<
"|";
152 out <<
"\n" << std::string((C+1) * (fw+1),
'-');
155 for (Int_t r = 0; r <
R; ++r) {
157 out <<
"\n" << std::setw(ifw) << (rb + r) <<
" |";
158 for (Int_t c = 0; c < C; ++c) out << std::setw(fw) << m(rb + r, cb + c) <<
" ";
GFException & setNumbers(std::string, const std::vector< double > &)
set list of numbers with description
std::string fNumbersLabel
std::vector< TMatrixT< Double_t > > fMatrices
Generic Interface to magnetic fields in GENFIT.
void PrintROOTmatrix(std::ostream &out, const TMatrixT< T > &m)
Small utility functions which print some ROOT objects into an output stream.
virtual const char * what() const
standard error message handling for exceptions. use like "std::cerr << e.what();" ...
std::string fMatricesLabel
static void quiet(bool b=true)
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
void PrintROOTobject(std::ostream &, const TVector3 &v)
Small utility functions which print some ROOT objects into an output stream.
bool isFatal()
get fatal flag.
std::string getExcString()
GFException & setMatrices(std::string, const std::vector< TMatrixT< Double_t > > &)
set list of matrices with description
std::string ROOTobjectToString(const ROOTOBJ &obj)
Shortcut to write one ROOT object into a string.
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.
GFException & setFatal(bool b=true)
set fatal flag. if this is true, the fit stops for this current track repr.
cet::coded_exception< error, detail::translate > exception