#include <cmath>
Go to the source code of this file.
◆ deltaPhi()
Scalar deltaPhi |
( |
const MatrixBase< Derived > & |
vec | ) |
const |
|
inline |
◆ deltaR()
Scalar deltaR |
( |
const MatrixBase< Derived > & |
vec | ) |
const |
|
inline |
◆ eta()
pseudorapidity method
Definition at line 79 of file AmgMatrixBasePlugin.h.
80 EIGEN_STATIC_ASSERT_VECTOR_SPECIFIC_SIZE(MatrixBase, 3)
81 const Scalar
rho2 = (*this).
x() * (*this).
x() + (*this).
y() * (*this).
y();
84 constexpr Scalar epsilon = 2. * std::numeric_limits<Scalar>::epsilon();
87 const double m = std::sqrt(
rho2 + z2);
94 constexpr Scalar s_etaMax =
static_cast<Scalar
>(22756.0);
96 return (
z > 0) ?
z + s_etaMax :
z - s_etaMax;
◆ fillSymmetric()
void fillSymmetric |
( |
size_t |
i, |
|
|
size_t |
j, |
|
|
Scalar |
value |
|
) |
| |
◆ mag()
◆ mag2()
mag2 method - forward to squaredNorm()
Definition at line 30 of file AmgMatrixBasePlugin.h.
31 return (*this).squaredNorm();
◆ perp() [1/2]
perp method - perpenticular length
Definition at line 35 of file AmgMatrixBasePlugin.h.
38 return std::sqrt((*
this)[0] * (*
this)[0] + (*
this)[1] * (*
this)[1]);
◆ perp() [2/2]
Scalar perp |
( |
const MatrixBase< Derived > & |
vec | ) |
|
|
inline |
◆ perp2() [1/2]
perp2 method - perpendicular length squared
Definition at line 42 of file AmgMatrixBasePlugin.h.
45 return ((*
this)[0] * (*
this)[0] + (*
this)[1] * (*
this)[1]);
◆ perp2() [2/2]
Scalar perp2 |
( |
const MatrixBase< Derived > & |
vec | ) |
|
|
inline |
◆ phi()
◆ similarity()
template<typename OtherDerived >
Matrix<Scalar, OtherDerived::RowsAtCompileTime, OtherDerived::RowsAtCompileTime> similarity |
( |
const MatrixBase< OtherDerived > & |
m | ) |
const |
|
inline |
◆ similarityT()
template<typename OtherDerived >
Matrix<Scalar, OtherDerived::RowsAtCompileTime, OtherDerived::RowsAtCompileTime> similarityT |
( |
const MatrixBase< OtherDerived > & |
m | ) |
const |
|
inline |
similarityT method : yields ms = m^T*s*m
Definition at line 138 of file AmgMatrixBasePlugin.h.
139 return m.transpose() * (this->derived() *
m);
◆ theta()
theta method
Definition at line 71 of file AmgMatrixBasePlugin.h.
75 std::sqrt((*
this)[0] * (*
this)[0] + (*
this)[1] * (*
this)[1]), (*
this)[2]);
◆ unit()
const PlainObject unit |
( |
| ) |
const |
|
inline |
This is a plugin that makes Eigen look like CLHEP & defines some convenience methods.
unit method - forward normalized()
Definition at line 20 of file AmgMatrixBasePlugin.h.
21 return (*this).normalized();