![]() |
EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <acts/blob/sPHENIX/Core/include/Acts/Utilities/Ray.hpp>
Public Types | |
| using | value_type = value_t |
| Re expose the value type. | |
| using | VertexType = ActsVector< value_t, DIM > |
| Vertex type based on the value type and dimension. | |
| using | vertex_array_type = Eigen::Array< value_t, DIM, 1 > |
| Vertex array type corresponding to the vertex type. | |
| using | transform_type = Eigen::Transform< value_t, DIM, Eigen::Affine > |
| Associated transform type. | |
Public Member Functions | |
| Ray (const VertexType &origin, const VertexType &dir) | |
| const VertexType & | origin () const |
| const VertexType & | dir () const |
| const vertex_array_type & | idir () const |
| Ray< value_t, DIM > | transformed (const transform_type &trf) const |
| std::ostream & | toStream (std::ostream &os) const |
| template<size_t D = DIM, std::enable_if_t< D==3, int > = 0> | |
| void | draw (IVisualization3D &helper, value_type far_distance=10) const |
Private Attributes | |
| VertexType | m_origin |
| VertexType | m_dir |
| vertex_array_type | m_idir |
Class which models a ray. It is defined by a starting point and a direction.
| value_t | The floating point type to use |
| DIM | The number of dimensions in which this ray is defined (2 or 3) |
Definition at line 21 of file Ray.hpp.
View newest version in sPHENIX GitHub at line 21 of file Ray.hpp
| using Acts::Ray< value_t, DIM >::transform_type = Eigen::Transform<value_t, DIM, Eigen::Affine> |
| using Acts::Ray< value_t, DIM >::value_type = value_t |
| using Acts::Ray< value_t, DIM >::vertex_array_type = Eigen::Array<value_t, DIM, 1> |
| using Acts::Ray< value_t, DIM >::VertexType = ActsVector<value_t, DIM> |
| Acts::Ray< value_t, DIM >::Ray | ( | const VertexType & | origin, |
| const VertexType & | dir | ||
| ) |
|
inline |
Getter for the direction
Definition at line 43 of file Ray.hpp.
View newest version in sPHENIX GitHub at line 43 of file Ray.hpp
References Acts::Ray< value_t, DIM >::m_dir.
| void Acts::Ray< value_t, DIM >::draw | ( | IVisualization3D & | helper, |
| value_type | far_distance = 10 |
||
| ) | const |
Helper to draw this ray using a given visualization helper.
| helper | The visualization helper |
| far_distance | The "length" of the drawn line representing the ray |
Definition at line 43 of file Ray.ipp.
View newest version in sPHENIX GitHub at line 43 of file Ray.ipp
References DIM, and Acts::IVisualization3D::line().
Referenced by Acts::Test::BOOST_AUTO_TEST_CASE().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Getter for the element wise inverse of the direction.
Definition at line 47 of file Ray.hpp.
View newest version in sPHENIX GitHub at line 47 of file Ray.hpp
References Acts::Ray< value_t, DIM >::m_idir.
Referenced by Acts::AxisAlignedBoundingBox< entity_t, value_t, DIM >::intersect(), and pystrf().
Here is the caller graph for this function:
|
inline |
Getter for the origin
Definition at line 39 of file Ray.hpp.
View newest version in sPHENIX GitHub at line 39 of file Ray.hpp
References Acts::Ray< value_t, DIM >::m_origin.
Referenced by Acts::AxisAlignedBoundingBox< entity_t, value_t, DIM >::intersect().
Here is the caller graph for this function:| Acts::Ray< value_t, DIM > Acts::Ray< value_t, DIM >::transformed | ( | const transform_type & | trf | ) | const |
Transforms this ray using a given transform and returns a new instance
| trf | The transform to apply |
Definition at line 36 of file Ray.ipp.
View newest version in sPHENIX GitHub at line 36 of file Ray.ipp
Referenced by Acts::Test::BOOST_AUTO_TEST_CASE().
Here is the caller graph for this function:
|
private |
Definition at line 67 of file Ray.hpp.
View newest version in sPHENIX GitHub at line 67 of file Ray.hpp
Referenced by Acts::Ray< value_t, DIM >::dir().
|
private |
Definition at line 68 of file Ray.hpp.
View newest version in sPHENIX GitHub at line 68 of file Ray.hpp
Referenced by Acts::Ray< value_t, DIM >::idir().
|
private |
Definition at line 66 of file Ray.hpp.
View newest version in sPHENIX GitHub at line 66 of file Ray.hpp
Referenced by Acts::Ray< value_t, DIM >::origin().