33 #include "RtypesCore.h" 90 virtual const char*
what()
const throw();
103 template <
class ROOTOBJ>
109 template <
typename T>
115 template <
class ROOTOBJ>
117 { std::ostringstream sstr;
PrintROOTobject(sstr, obj);
return sstr.str(); }
126 template <
class ROOTOBJ>
129 template <
typename T>
132 constexpr std::streamsize fw = 11;
133 constexpr std::streamsize ifw = 4 + (fw & 1);
134 const Int_t rb = m.GetRowLwb(), cb = m.GetColLwb();
136 const Int_t
R = m.GetNrows(),
C = m.GetNcols();
137 out << R <<
"x" <<
C <<
" matrix is as follows";
139 std::streamsize swidth = out.width(4);
140 std::ios::fmtflags sflags = out.flags();
141 out.unsetf(std::ios_base::floatfield);
146 for (Int_t
c = 0;
c < C; ++
c)
147 out << index_pad <<
std::setw(ifw) << (cb +
c) << index_pad <<
"|";
153 for (Int_t
r = 0;
r <
R; ++
r) {
155 out <<
"\n" <<
std::setw(ifw) << (rb +
r) <<
" |";
156 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)
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)
void PrintROOTobject(std::ostream &, const TVector3 &v)
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
Q_EXPORT QTSManip setw(int w)
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