File Common.hpp¶
-
namespace Acts
Note
This file is foreseen for the
Geometry
module to replaceExtent
Enums
-
enum CoordinateIndices¶
Components of coordinate vectors.
To be used to access coordinate components by named indices instead of magic numbers. This must be a regular
enum
and not a scopedenum class
to allow implicit conversion to an integer. The enum value are thus visible directly innamespace Acts
.This index enum is not user-configurable (in contrast e.g. to the track parameter index enums) since it must be compatible with varying dimensionality (2d-4d) and other access methods (
.{x,y,z}()
accessors).Values:
-
enumerator ePos0¶
-
enumerator ePos1¶
-
enumerator ePos2¶
-
enumerator eTime¶
-
enumerator eMom0¶
-
enumerator eMom1¶
-
enumerator eMom2¶
-
enumerator eEnergy¶
-
enumerator eX¶
-
enumerator eY¶
-
enumerator eZ¶
-
enumerator ePos0¶
-
enum MaterialUpdateStage¶
This is a steering enum to tell which material update stage:
PreUpdate : update on approach of a surface
FullUpdate : update when passing a surface
PostUpdate : update when leaving a surface
Values:
-
enumerator PreUpdate¶
-
enumerator FullUpdate¶
-
enumerator PostUpdate¶
The navigation direction is always with respect to a given momentum or direction.
Values:
Functions
-
inline constexpr NavigationDirection directionFromIndex(size_t index)¶
Convert and ndex [0,1] to a navigation direction for sorting in std::array<T,2u>
returns either 0 or 1
- Parameters
index – is the navigation direction at input
-
inline constexpr NavigationDirection directionFromStepSize(ActsScalar value)¶
This turns a signed value into a navigation direction.
- Parameters
value – is the signed value
- Returns
a navigation direciton enum
Convert navigation dir to index [0,1] which allows to store direction dependent objects in std::array<T,2u>
returns either 0 or 1
- Parameters
nDir – is the navigation direction at input
Invert a navigation direction enum.
return an opposite navigation direction
- Parameters
nDir – is the navigation direction at input
-
std::ostream &operator<<(std::ostream &os, MaterialUpdateStage matUpdate)¶
Variables
-
static constexpr ActsScalar s_curvilinearProjTolerance = 0.999995¶
Tolerance for not being within curvilinear projection this allows using the same curvilinear frame to eta = 6, validity tested with IntegrationTests/PropagationTest.
-
static constexpr ActsScalar s_epsilon = 3 * std::numeric_limits<ActsScalar>::epsilon()¶
Tolerance for being numerical equal for geometry building.
-
static constexpr ActsScalar s_onSurfaceTolerance = 1e-4¶
Tolerance for being on Surface.
Note
This is intentionally given w/o an explicit unit to avoid having to include the units header unneccessarily. With the native length unit of mm this corresponds to 0.1um.
-
enum CoordinateIndices¶