Template Function Acts::makeDirectionUnitFromPhiEta¶
Defined in File UnitVectors.hpp
Function Documentation¶
-
template<typename
T
>
Eigen::Matrix<T, 3, 1>Acts
::
makeDirectionUnitFromPhiEta
(T phi, T eta)¶ Construct a normalized direction vector from phi angle and pseudorapidity.
- Note
The input arguments intentionally use the same template type so that a compile error occurs if inconsistent input types are used. Avoids unexpected implicit type conversions and forces the user to explicitely cast missmatched input types.
- Parameters
phi
: is the direction angle in the x-y plane.eta
: is the pseudorapidity towards the z-axis.