30 if ((rows <= 0) || (cols <= 0))
32 Fatal(
"TGDMLMatrix::TGDMLMatrix(rows,cols)",
"Wrong number of rows/cols");
42 :
TNamed(rhs), fNelem(rhs.fNelem), fNrows(rhs.fNrows), fNcols(rhs.fNcols), fMatrix(nullptr)
56 if (
this == &rhs) {
return *
this; }
93 for (
size_t row = 0; row <
fNrows; ++row) {
95 for (
size_t col = 0; col <
fNcols; ++col) {
96 printf(
"%8.3g",
Get(row, col));
void Fatal(const char *location, const char *msgfmt,...)
Use this function in case of a fatal error. It will abort the program.
This class is used in the process of reading and writing the GDML "matrix" tag.
TGDMLMatrix & operator=(const TGDMLMatrix &rhs)
Double_t Get(size_t r, size_t c) const
void Set(size_t r, size_t c, Double_t a)
void Print(Option_t *option="") const
Print TNamed name and title.
The TNamed class is the base class for all named ROOT classes.
TNamed & operator=(const TNamed &rhs)
TNamed assignment operator.
virtual const char * GetName() const
Returns name of object.
const char * Data() const