12#include <framework/logging/Logger.h>
20 template <
unsigned int NRows,
unsigned int NCols,
class AMatrix>
21 Eigen::Matrix<double, NRows, NCols, Eigen::RowMajor>
convertToEigen(
const AMatrix& matrix)
23 B2ASSERT(
"Matrix should be in the form " << NRows <<
"x" << NCols <<
", not " << matrix.GetNrows() <<
"x" << matrix.GetNcols(),
24 matrix.GetNcols() == NCols and matrix.GetNrows() == NRows);
25 return Eigen::Matrix<double, NRows, NCols, Eigen::RowMajor>(matrix.GetMatrixArray());
29 template <
unsigned int NRows>
32 B2ASSERT(
"Matrix should be in the form " << NRows <<
"x" << 1 <<
", not " << matrix.GetNrows() <<
"x" << 1,
33 matrix.GetNrows() == NRows);
34 return Eigen::Matrix<double, NRows, 1>(matrix.GetMatrixArray());
Eigen::Matrix< double, NRows, NCols, Eigen::RowMajor > convertToEigen(const AMatrix &matrix)
Convert a ROOT matrix to Eigen. Checks for the correct row and column number.
Abstract base class for different kinds of events.