Berkeley Nuclear Data Software
EigenRootHelpers.h
Go to the documentation of this file.
1 #ifndef EIGEN_ROOT_HELPERS
2 #define EIGEN_ROOT_HELPERS
3 
4 #include <Eigen/Dense>
5 
6 #include "TH2.h"
7 
8 
13 {
14 public:
18  static Eigen::MatrixXf getEigenMat(TH2* a_hist);
19  static Eigen::MatrixXf getEigenMat(TH2* a_hist,
20  int a_xBinMin,
21  int a_xBinMax,
22  int a_yBinMin,
23  int a_yBinMax);
27  static Eigen::VectorXf getEigenVector(TH1* a_hist);
29  static TH2F* get2DHist(Eigen::MatrixXf a_mat,
30  double a_xMin,
31  double a_xMax,
32  double a_yMin,
33  double a_yMax);
34  static TH1F* get1DHist(Eigen::VectorXf a_vec,
35  double a_xMin,
36  double a_yMin);
37 
38 };
39 #endif
Definition: EigenRootHelpers.h:13
static Eigen::VectorXf getEigenVector(TH1 *a_hist)
Definition: EigenRootHelpers.cpp:44
static TH2F * get2DHist(Eigen::MatrixXf a_mat, double a_xMin, double a_xMax, double a_yMin, double a_yMax)
constructs 2D root histogram assuming constant bin width in X and Y
Definition: EigenRootHelpers.cpp:55
static Eigen::MatrixXf getEigenMat(TH2 *a_hist)
Definition: EigenRootHelpers.cpp:6
static TH1F * get1DHist(Eigen::VectorXf a_vec, double a_xMin, double a_yMin)
Definition: EigenRootHelpers.cpp:80