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);
144 std::string index_pad((fw-ifw)/2,
' ');
145 out <<
"\n" << std::string(ifw,
' ') <<
" |";
146 for (Int_t c = 0; c < C; ++c)
147 out << index_pad << std::setw(ifw) << (cb + c) << index_pad <<
"|";
150 out <<
"\n" << std::string((C+1) * (fw+1),
'-');
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
double std(const std::vector< short > &wf, const double ped_mean, size_t start, size_t nsample)
std::string fNumbersLabel
std::vector< TMatrixT< Double_t > > fMatrices
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
tuple m
now if test mode generate materials, CRT shell, world, gdml header else just generate CRT shell for u...
static void quiet(bool b=true)
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
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.
BEGIN_PROLOG don t mess with this pandoraTrackGausCryoW true