Berkeley Nuclear Data Software
Static Public Member Functions | List of all members
EigenRootHelpers Class Reference

#include <EigenRootHelpers.h>

Static Public Member Functions

static Eigen::MatrixXf getEigenMat (TH2 *a_hist)
 
static Eigen::MatrixXf getEigenMat (TH2 *a_hist, int a_xBinMin, int a_xBinMax, int a_yBinMin, int a_yBinMax)
 
static Eigen::VectorXf getEigenVector (TH1 *a_hist)
 
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 More...
 
static TH1F * get1DHist (Eigen::VectorXf a_vec, double a_xMin, double a_yMin)
 
static TH1F * get1DHist (Eigen::VectorXf a_vec, std::vector< double > a_xBinEdges)
 

Detailed Description

this class is intended to provide conversion interfaces between root object and eigen objects for doing linear algebra and returning results to root objects for visualization

Member Function Documentation

◆ get1DHist() [1/2]

TH1F * EigenRootHelpers::get1DHist ( Eigen::VectorXf  a_vec,
double  a_xMin,
double  a_yMin 
)
static
Here is the caller graph for this function:

◆ get1DHist() [2/2]

TH1F * EigenRootHelpers::get1DHist ( Eigen::VectorXf  a_vec,
std::vector< double >  a_xBinEdges 
)
static

◆ get2DHist()

TH2F * EigenRootHelpers::get2DHist ( Eigen::MatrixXf  a_mat,
double  a_xMin,
double  a_xMax,
double  a_yMin,
double  a_yMax 
)
static

constructs 2D root histogram assuming constant bin width in X and Y

◆ getEigenMat() [1/2]

Eigen::MatrixXf EigenRootHelpers::getEigenMat ( TH2 *  a_hist)
static

this function provides a one to one mapping between the bin content of a 2d histogram and a dynamic eigen matrix of floats abondoning under and overflow

this function provides a one to one mapping between the bin content of a 2d histogram and a dynamic eigen matrix of floats

Here is the caller graph for this function:

◆ getEigenMat() [2/2]

Eigen::MatrixXf EigenRootHelpers::getEigenMat ( TH2 *  a_hist,
int  a_xBinMin,
int  a_xBinMax,
int  a_yBinMin,
int  a_yBinMax 
)
static

◆ getEigenVector()

Eigen::VectorXf EigenRootHelpers::getEigenVector ( TH1 *  a_hist)
static

this function provides a one to one mapping between the bin content of a 1d histogram and a dynamic eigen vector of floats abandoning under and overflow

Here is the caller graph for this function:

The documentation for this class was generated from the following files: