|
ACTS
Experiment-independent tracking
|
A constrained step class for the steppers. More...
#include <Acts/Propagator/ConstrainedStep.hpp>
Public Types | |
| enum class | Type : int { Navigator = 0 , Actor = 1 , User = 2 } |
| the types of constraints from navigator - this would be a navigation step from actor - this would be an actor condition from user - this is user given for what reason ever | |
Public Member Functions | |
| constexpr | ConstrainedStep (double v) |
| constructor | |
| constexpr double | accuracy () const |
| Access the accuracy value. | |
| constexpr void | release (Type type) |
| release a certain constraint value | |
| constexpr void | releaseAccuracy () |
| release accuracy | |
| constexpr void | setAccuracy (double v) |
| set accuracy | |
| constexpr void | setUser (double v) |
| set user | |
| std::ostream & | toStream (std::ostream &os) const |
| Stream the constrained step into an output stream. | |
| std::string | toString () const |
| Convert the constrained step to a string representation. | |
| constexpr void | update (double v, Type type) |
| Update the step size of a certain type. | |
| constexpr double | value () const |
| returns the min step size | |
| constexpr double | value (Type type) const |
| Access a specific value. | |
A constrained step class for the steppers.
This class is symmetrical for forward and backward propagation. The sign of the propagation direction should not enter here but rather be applied the step is actually taken.
As simple as this class looks it hides a few very important details:
Because of the points mentioned above, the update function will always prefer negative step sizes. A side effect of this is that we will propagate in the opposite direction if the target is "behind us".
The hierarchy is:
|
explicitconstexpr |
constructor
| v | is the user given initial value |
|
constexpr |
Access the accuracy value.
|
constexpr |
release a certain constraint value
| type | is the constraint type to be released |
|
constexpr |
set accuracy
this will set only the accuracy, as this is the most exposed to the Propagator
| v | is the new accuracy value |
|
constexpr |
set user
| v | is the new user value |
| std::ostream & Acts::ConstrainedStep::toStream | ( | std::ostream & | os | ) | const |
Stream the constrained step into an output stream.
| os | Output stream to write to |
| std::string Acts::ConstrainedStep::toString | ( | ) | const |
Convert the constrained step to a string representation.
|
constexpr |
Update the step size of a certain type.
Only navigation and target abortion step size updates may change the sign due to overstepping
| v | is the new value to be updated |
| type | is the constraint type |
|
constexpr |
returns the min step size
|
constexpr |
Access a specific value.
| type | is the requested parameter type |