LArSoft  v10_04_05
Liquid Argon Software toolkit - https://larsoft.org/
LArEigenHelper.h
Go to the documentation of this file.
1 
8 #ifndef LAR_EIGEN_HELPER_H
9 #define LAR_EIGEN_HELPER_H 1
10 
11 #include "Objects/CartesianVector.h"
12 
13 #include <Eigen/Dense>
14 
15 #include <vector>
16 
17 namespace lar_content
18 {
19 
24 {
25 public:
32  template <class T>
33  static void Vectorize(const T &caloHitContainer, Eigen::MatrixXf &hitMatrix);
34 
43  template <class T>
44  static void Vectorize(const T &caloHitContainer, Eigen::MatrixXf &centre, Eigen::MatrixXf &low, Eigen::MatrixXf &high);
45 
53  static void GetAngles(const Eigen::MatrixXf &hitMatrix, const Eigen::RowVectorXf &origin, Eigen::RowVectorXf &phis);
54 };
55 
56 } // namespace lar_content
57 
58 #endif // #ifndef LAR_EIGEN_HELPER_H
LArEigenHelper class.
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 spec...
static void Vectorize(const T &caloHitContainer, Eigen::MatrixXf &hitMatrix)
Convert a container of calo hits into an Eigen matrix.
constexpr Point origin()
Returns a origin position with a point of the specified type.
Definition: geo_vectors.h:229