Analysis Software
Documentation for sPHENIX simulation software
|
#include <acts/blob/sPHENIX/Core/include/Acts/Definitions/Direction.hpp>
Public Member Functions | |
constexpr std::size_t | index () const |
constexpr int | sign () const |
constexpr Direction | invert () const |
std::string | toString () const |
constexpr | Direction ()=default |
constexpr | Direction (Value value) |
constexpr bool | operator== (Direction other) const |
constexpr bool | operator!= (Direction other) const |
Static Public Member Functions | |
static constexpr Direction | fromScalar (ActsScalar scalar) |
static constexpr Direction | fromScalarZeroAsPositive (ActsScalar scalar) |
static constexpr Direction | fromIndex (std::size_t index) |
Static Public Attributes | |
static constexpr auto | Negative = Value::Negative |
static constexpr auto | Positive = Value::Positive |
static constexpr auto | Backward = Value::Negative |
static constexpr auto | Forward = Value::Positive |
Private Types | |
enum | Value : int |
Private Attributes | |
Value | m_value = Value::Positive |
The direction is always with respect to a given momentum, surface normal or other general axes
Definition at line 22 of file Direction.hpp.
View newest version in sPHENIX GitHub at line 22 of file Direction.hpp
|
private |
Definition at line 24 of file Direction.hpp.
View newest version in sPHENIX GitHub at line 24 of file Direction.hpp
|
inlinedefault |
|
inline |
Definition at line 95 of file Direction.hpp.
View newest version in sPHENIX GitHub at line 95 of file Direction.hpp
|
inlinestatic |
Convert and index [0,1] to a direction e.g. for sorting in std::array<T, 2u>
index | is the direction at input |
Definition at line 62 of file Direction.hpp.
View newest version in sPHENIX GitHub at line 62 of file Direction.hpp
References physmon_ckf_tracking::u.
Referenced by BOOST_AUTO_TEST_CASE(), and Acts::Experimental::DetectorVolume::closePortals().
|
inlinestatic |
This turns a signed value into a direction. Will assert on zero.
scalar | is the signed value |
Definition at line 41 of file Direction.hpp.
View newest version in sPHENIX GitHub at line 41 of file Direction.hpp
References assert.
Referenced by BOOST_AUTO_TEST_CASE(), Acts::TrackingVolume::glueTrackingVolume(), Acts::TrackingVolume::glueTrackingVolumes(), Acts::GenericCuboidVolumeBounds::orientedSurfaces(), transportFreely(), and Acts::Experimental::Portal::updateDetectorVolume().
|
inlinestatic |
This turns a signed value into a direction and 0 will be handled as a positive direction. Only use this when you are convinced that the 0 case is properly handled downstream.
scalar | is the signed value |
Definition at line 53 of file Direction.hpp.
View newest version in sPHENIX GitHub at line 53 of file Direction.hpp
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_DATA_TEST_CASE(), and ActsExamples::VertexPerformanceWriter::writeT().
|
inline |
Convert dir to index [0,1] which allows to store direction dependent objects in std::array<T, 2u>
Definition at line 73 of file Direction.hpp.
View newest version in sPHENIX GitHub at line 73 of file Direction.hpp
References m_value, and physmon_ckf_tracking::u.
Referenced by Acts::Experimental::Portal::assignDetectorVolumeUpdator(), Acts::Experimental::Portal::fuse(), and Acts::Experimental::Portal::updateDetectorVolume().
|
inline |
Reverse the direction
Definition at line 88 of file Direction.hpp.
View newest version in sPHENIX GitHub at line 88 of file Direction.hpp
References m_value.
Referenced by Acts::Experimental::Portal::fuse().
|
inline |
Definition at line 101 of file Direction.hpp.
View newest version in sPHENIX GitHub at line 101 of file Direction.hpp
References m_value.
|
inline |
Definition at line 97 of file Direction.hpp.
View newest version in sPHENIX GitHub at line 97 of file Direction.hpp
References m_value.
|
inline |
Turns the direction into a signed value
Definition at line 83 of file Direction.hpp.
View newest version in sPHENIX GitHub at line 83 of file Direction.hpp
References m_value.
Referenced by Acts::operator*(), and Acts::operator*=().
std::string Acts::Direction::toString | ( | ) | const |
Definition at line 13 of file Direction.cpp.
View newest version in sPHENIX GitHub at line 13 of file Direction.cpp
References assert, and m_value.
Referenced by Acts::operator<<().
|
static |
Definition at line 33 of file Direction.hpp.
View newest version in sPHENIX GitHub at line 33 of file Direction.hpp
Referenced by Acts::BoundarySurfaceT< volume_t >::attachVolume(), Acts::BoundarySurfaceT< volume_t >::attachVolumeArray(), BOOST_AUTO_TEST_CASE(), Acts::Test::BOOST_AUTO_TEST_CASE(), ActsExamples::TrackFindingAlgorithm::execute(), Acts::Experimental::Portal::fuse(), Acts::ConeVolumeBounds::orientedSurfaces(), Acts::Test::runTest(), and FitterTester::test_ZeroFieldWithSurfaceBackward().
|
static |
Definition at line 34 of file Direction.hpp.
View newest version in sPHENIX GitHub at line 34 of file Direction.hpp
Referenced by Acts::detail::GsfActor< bethe_heitler_approx_t, traj_t >::applyBetheHeitler(), BOOST_AUTO_TEST_CASE(), Acts::Test::BOOST_AUTO_TEST_CASE(), ActsExamples::TrackFindingAlgorithm::execute(), Acts::Experimental::Portal::fuse(), Acts::MaterialInteractor::operator()(), Acts::ConeVolumeBounds::orientedSurfaces(), Acts::CombinatorialKalmanFilter< propagator_t, traj_t >::Actor< source_link_accessor_t, parameters_t >::processSelectedTrackStates(), test_component_bound_state(), test_multi_stepper_surface_status_update(), FitterTester::test_ZeroFieldWithSurfaceForward(), transportToSurface(), and Acts::GainMatrixUpdater::visitMeasurement().
|
private |
Definition at line 106 of file Direction.hpp.
View newest version in sPHENIX GitHub at line 106 of file Direction.hpp
Referenced by index(), invert(), operator!=(), operator==(), sign(), and toString().
|
static |
Definition at line 30 of file Direction.hpp.
View newest version in sPHENIX GitHub at line 30 of file Direction.hpp
Referenced by BOOST_AUTO_TEST_CASE(), Acts::TrackingVolume::connectDenseBoundarySurfaces(), Acts::AbstractVolume::createBoundarySurfaces(), Acts::TrackingVolume::createBoundarySurfaces(), Acts::ISurfaceMaterial::factor(), Acts::CutoutCylinderVolumeBounds::orientedSurfaces(), Acts::CuboidVolumeBounds::orientedSurfaces(), Acts::ConeVolumeBounds::orientedSurfaces(), Acts::TrapezoidVolumeBounds::orientedSurfaces(), and Acts::CylinderVolumeBounds::orientedSurfaces().
|
static |
Definition at line 31 of file Direction.hpp.
View newest version in sPHENIX GitHub at line 31 of file Direction.hpp
Referenced by BOOST_AUTO_TEST_CASE(), Acts::TrackingVolume::connectDenseBoundarySurfaces(), Acts::ISurfaceMaterial::factor(), Acts::CutoutCylinderVolumeBounds::orientedSurfaces(), Acts::CuboidVolumeBounds::orientedSurfaces(), Acts::ConeVolumeBounds::orientedSurfaces(), Acts::TrapezoidVolumeBounds::orientedSurfaces(), and Acts::CylinderVolumeBounds::orientedSurfaces().