![]() |
LArSoft
v10_04_05
Liquid Argon Software toolkit - https://larsoft.org/
|
LArEigenHelper class. More...
#include "LArEigenHelper.h"
Static Public Member Functions | |
template<class T > | |
static void | Vectorize (const T &caloHitContainer, Eigen::MatrixXf &hitMatrix) |
Convert a container of calo hits into an Eigen matrix. More... | |
template<class T > | |
static void | Vectorize (const T &caloHitContainer, Eigen::MatrixXf ¢re, Eigen::MatrixXf &low, Eigen::MatrixXf &high) |
Convert a container of calo hits into a collection of Eigen matrices representing the centre, low and high coordinates of hits. More... | |
static void | GetAngles (const Eigen::MatrixXf &hitMatrix, const Eigen::RowVectorXf &origin, Eigen::RowVectorXf &phis) |
Retrieve the angle, coutner-clockwise relative to the x axis, between all hits in a matrix and a specified origin. More... | |
LArEigenHelper class.
Definition at line 23 of file LArEigenHelper.h.
|
static |
Retrieve the angle, coutner-clockwise relative to the x axis, between all hits in a matrix and a specified origin.
hitMatrix | the input collection of hits |
origin | the origin from which to measure hits |
phis | the output vector of angles in the range [0, 2pi] |
Definition at line 58 of file LArEigenHelper.cc.
References geo::origin(), and util::pi().
|
static |
Convert a container of calo hits into an Eigen matrix.
caloHitContainer | the calo hit list containing the hits from which to construct a maxtrix |
hitMatrix | the output Eigen matrix |
Definition at line 26 of file LArEigenHelper.cc.
|
static |
Convert a container of calo hits into a collection of Eigen matrices representing the centre, low and high coordinates of hits.
caloHitContainer | the calo hit list containing the hits from which to construct matrices |
centre | the output Eigen matrix of hit centres |
low | the output Eigen matrix of hit low edges (centre - width / 2) |
high | the output Eigen matrix of hit high edges (centre + width / 2) |
Definition at line 41 of file LArEigenHelper.cc.