11 if( ncol >=
COLMAX )
return false;
12 if( nrow >=
ROWMAX )
return false;
15 for(
int i=0;i<nrow;++i ){
16 for(
int j=0;j<ncol;++j ){
17 TString bname = prefix.c_str();
28 if( ncol >=
COLMAX )
return false;
29 if( nrow >=
ROWMAX )
return false;
32 for(
int i=0;i<nrow;++i ){
33 for(
int j=0;j<ncol;++j ){
34 TString bname = prefix.c_str();
45 if(
m_ncols == -1 )
return false;
46 if( matrix.rows() >
m_nrows && matrix.cols() >
m_ncols )
return false;
50 if( i < matrix.rows() && j < matrix.cols() )
m_matrix[i][j] = matrix(i,j);
58 if(
m_ncols == -1 )
return false;
63 if( i < 3 && j < 3 )
m_matrix[i][j] = matrix(i,j);
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Ensure that the ATLAS eigen extensions are properly loaded.
bool fill(const Amg::MatrixX &matrix)
fill a vector
static const int COLMAX
data
float m_matrix[COLMAX][ROWMAX]
bool initForWrite(TTree &tree, const std::string &varname, int ncol, int nrow, const std::string &prefix="")
initialize class for writing
bool initForRead(TTree &tree, const std::string &varname, int ncol, int nrow, const std::string &prefix="")
initialize class for reading