Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
VectorHelpers.hpp File Reference
#include "Acts/Definitions/Algebra.hpp"
#include "Acts/Definitions/Common.hpp"
#include "Acts/Definitions/TrackParametrization.hpp"
#include "Acts/Utilities/BinningType.hpp"
#include "Acts/Utilities/TypeTraits.hpp"
#include <array>
#include <limits>
#include "Eigen/Dense"
+ Include dependency graph for VectorHelpers.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Acts
 Acts includes to create all necessary definitions.
 
namespace  Acts::VectorHelpers
 
namespace  Acts::VectorHelpers::detail
 

Typedefs

template<class T >
using Acts::VectorHelpers::detail::phi_method_t = decltype(std::declval< const T >().phi())
 
template<class T >
using Acts::VectorHelpers::detail::has_phi_method = Concepts::is_detected< phi_method_t, T >
 

Functions

template<typename Derived >
double Acts::VectorHelpers::phi (const Eigen::MatrixBase< Derived > &v) noexcept
 
template<typename T , std::enable_if_t< detail::has_phi_method< T >::value, int > = 0>
double Acts::VectorHelpers::phi (const T &v) noexcept
 
template<typename Derived >
double Acts::VectorHelpers::perp (const Eigen::MatrixBase< Derived > &v) noexcept
 
template<typename Derived >
double Acts::VectorHelpers::theta (const Eigen::MatrixBase< Derived > &v) noexcept
 
template<typename Derived >
double Acts::VectorHelpers::eta (const Eigen::MatrixBase< Derived > &v) noexcept
 
std::array< ActsScalar, 5 > Acts::VectorHelpers::evaluateTrigonomics (const Vector3 &direction)
 Fast evaluation of trigonomic functions.
 
double Acts::VectorHelpers::cast (const Vector3 &position, BinningValue bval)
 
ActsMatrix< 3, 3 > Acts::VectorHelpers::cross (const ActsMatrix< 3, 3 > &m, const Vector3 &v)
 Calculates column-wise cross products of a matrix and a vector and stores the result column-wise in a matrix.
 
auto Acts::VectorHelpers::position (const Vector4 &pos4)
 Access the three-position components in a four-position vector.
 
auto Acts::VectorHelpers::position (const FreeVector &params)
 Access the three-position components in a free parameters vector.
 
template<typename vector3_t >
auto Acts::VectorHelpers::makeVector4 (const Eigen::MatrixBase< vector3_t > &vec3, typename vector3_t::Scalar w) -> Eigen::Matrix< typename vector3_t::Scalar, 4, 1 >
 Construct a four-vector from a three-vector and scalar fourth component.
 
std::pair< double, doubleActs::VectorHelpers::incidentAngles (const Acts::Vector3 &direction, const Acts::RotationMatrix3 &globalToLocal)