|
ACTS
Experiment-independent tracking
|
Stepper that moves the track along a helix in closed form. More...
#include <Acts/Propagator/HelixStepper.hpp>
Classes | |
| struct | Config |
| Configuration for the helix stepper. More... | |
| struct | Options |
| Runtime options for helix propagation. More... | |
| struct | State |
| State for track parameter propagation. More... | |
Public Types | |
| using | BoundParameters = BoundTrackParameters |
| Type alias for bound track parameters. | |
| using | Covariance = BoundMatrix |
| Type alias for covariance matrix. | |
| using | Jacobian = BoundMatrix |
| Type alias for jacobian matrix. | |
Public Member Functions | |
| HelixStepper (const Config &config) | |
| Constructor with configuration. | |
| HelixStepper (std::shared_ptr< const MagneticFieldProvider > bField) | |
| Constructor requires knowledge of the detector's magnetic field. | |
| double | absoluteMomentum (const State &state) const |
| Absolute momentum accessor. | |
| Result< BoundParameters > | boundParameters (const State &state, const Surface &surface) const |
| Get the bound parameters at the current position. | |
| double | charge (const State &state) const |
| Charge access. | |
| const std::optional< Covariance > & | covariance (const State &state) const |
| Get the covariance at the anchor. | |
| Result< Vector3 > | curvature (State &state) const |
| Current global geometric curvature d(direction)/ds in inverse length. | |
| BoundParameters | curvilinearParameters (const State &state) const |
| Get the curvilinear parameters at the current position. | |
| Vector3 | direction (const State &state) const |
| Momentum direction accessor. | |
| Result< Vector3 > | getField (State &state, const Vector3 &pos) const |
| Get the field for the stepping, it checks first if the access is still within the Cell, and updates the cell if necessary. | |
| double | getStepSize (const State &state, ConstrainedStep::Type stype) const |
| Get the step size. | |
| bool | hasCovariance (const State &state) const |
| Check if the state carries a covariance. | |
| void | initialize (State &state, const BoundParameters &par) const |
| Initialize the state from bound track parameters. | |
| void | initialize (State &state, const BoundVector &boundParams, const std::optional< BoundMatrix > &cov, ParticleHypothesis particleHypothesis, const Surface &surface) const |
| Initialize the state from bound parameters. | |
| State | makeState (const Options &options) const |
| Create a state object. | |
| Vector3 | momentum (const State &state) const |
| Momentum accessor. | |
| std::string | outputStepSize (const State &state) const |
| Output the Step Size - single component. | |
| const ParticleHypothesis & | particleHypothesis (const State &state) const |
| Particle hypothesis. | |
| double | pathLength (const State &state) const |
| Get the path length. | |
| Vector3 | position (const State &state) const |
| Global particle position accessor. | |
| bool | prepareCurvilinearState (State &state) const |
| If necessary fill additional members needed for transportToCurvilinear. | |
| double | qOverP (const State &state) const |
| QoP direction accessor. | |
| void | releaseStepSize (State &state, ConstrainedStep::Type stype) const |
| Release the Step size. | |
| void | setCovariance (State &state, const Covariance &covariance) const |
| Set the covariance at the anchor. | |
| const StepperStatistics & | statistics (const State &state) const |
| Get the stepper statistics. | |
| Result< double > | step (State &state, Direction propDir, const IVolumeMaterial *material) const |
| Perform a helix track parameter propagation step. | |
| const ConstrainedStep & | stepSize (const State &state) const |
| Get the step size constraints. | |
| double | time (const State &state) const |
| Time access. | |
| Result< Jacobian > | transportToBound (State &state, const Surface &surface, const FreeToBoundCorrection &freeToBoundCorrection=FreeToBoundCorrection(false)) const |
| Transport the covariance to a surface at the current position. | |
| Jacobian | transportToCurvilinear (State &state) const |
| Transport the covariance to the curvilinear frame at the current position. | |
| void | update (State &state, const FreeVector &freeParams, const BoundVector &boundParams, const Covariance &covariance, const Surface &surface) const |
| Method to update a stepper state to the some parameters. | |
| void | update (State &state, const Vector3 &uposition, const Vector3 &udirection, double qop, double time) const |
| Method to update the stepper state. | |
| void | updateStepSize (State &state, const NavigationTarget &target, Direction direction, ConstrainedStep::Type stype) const |
| Update step size. | |
| void | updateStepSize (State &state, double stepSize, ConstrainedStep::Type stype) const |
| Update step size - explicitly with a double. | |
| IntersectionStatus | updateSurfaceStatus (State &state, const Surface &surface, std::uint8_t index, Direction navDir, const BoundaryTolerance &boundaryTolerance, double surfaceTolerance, ConstrainedStep::Type stype, const Logger &logger=getDummyLogger(), const Vector3 &curvature=Vector3::Zero()) const |
| Update surface status. | |
Stepper that moves the track along a helix in closed form.
Each step reads the magnetic field at the start position and moves the track along the exact helix in that field. The transport jacobian is also closed form. It is the exact derivative of the helix step, so it treats the field as constant over the step and has no field gradient term.
The field at the end of a step is also the field at the start of the next step. The stepper uses it to estimate the position error from the field change along the step, and it adapts the step size to StepperPlainOptions::stepTolerance. An accepted step needs no extra field lookup.
The navigation estimates the distance to a surface with a straight line. A step of that length along the helix passes a surface perpendicular to the track by about |omega x T|^2 h^3 / 3, with omega = (q/p) B, and the next step goes back. A target aborter must accept an intersection that far behind the track. The default near limit of SurfaceReached is 100 um.
|
explicit |
Constructor requires knowledge of the detector's magnetic field.
| bField | The magnetic field provider |
|
explicit |
Constructor with configuration.
| config | The configuration of the stepper |
| double Acts::HelixStepper::absoluteMomentum | ( | const State & | state | ) | const |
Absolute momentum accessor.
| state | [in] The stepping state (thread-local cache) |
| Result< BoundParameters > Acts::HelixStepper::boundParameters | ( | const State & | state, |
| const Surface & | surface ) const |
Get the bound parameters at the current position.
The parameters carry the covariance at the anchor if the state has one.
surface or anchored on it| [in] | state | The stepping state (thread-local cache) |
| [in] | surface | The surface of the parameters |
surface | double Acts::HelixStepper::charge | ( | const State & | state | ) | const |
Charge access.
| state | [in] The stepping state (thread-local cache) |
| const std::optional< Covariance > & Acts::HelixStepper::covariance | ( | const State & | state | ) | const |
Get the covariance at the anchor.
The anchor is the frame of the last initialization, transport or update.
| state | [in] The stepping state (thread-local cache) |
Current global geometric curvature d(direction)/ds in inverse length.
Unchanged under propagation reversal; reflects current momentum and field.
| state | Stepping state; the field cache may be updated |
| BoundParameters Acts::HelixStepper::curvilinearParameters | ( | const State & | state | ) | const |
Get the curvilinear parameters at the current position.
The parameters carry the covariance at the anchor if the state has one.
| [in] | state | The stepping state (thread-local cache) |
Momentum direction accessor.
| state | [in] The stepping state (thread-local cache) |
Get the field for the stepping, it checks first if the access is still within the Cell, and updates the cell if necessary.
| [in,out] | state | is the propagation state associated with the track the magnetic field cell is used (and potentially updated) |
| [in] | pos | is the field position |
| double Acts::HelixStepper::getStepSize | ( | const State & | state, |
| ConstrainedStep::Type | stype ) const |
Get the step size.
| state | [in] The stepping state (thread-local cache) |
| stype | [in] The step size type to be returned |
| bool Acts::HelixStepper::hasCovariance | ( | const State & | state | ) | const |
Check if the state carries a covariance.
| state | [in] The stepping state (thread-local cache) |
| void Acts::HelixStepper::initialize | ( | State & | state, |
| const BoundParameters & | par ) const |
Initialize the state from bound track parameters.
| state | The state to initialize |
| par | The bound track parameters |
| void Acts::HelixStepper::initialize | ( | State & | state, |
| const BoundVector & | boundParams, | ||
| const std::optional< BoundMatrix > & | cov, | ||
| ParticleHypothesis | particleHypothesis, | ||
| const Surface & | surface ) const |
Initialize the state from bound parameters.
| state | The state to initialize |
| boundParams | Bound track parameters vector |
| cov | Covariance matrix |
| particleHypothesis | Particle hypothesis |
| surface | Reference surface |
Create a state object.
| options | Stepper options |
Momentum accessor.
| state | [in] The stepping state (thread-local cache) |
| std::string Acts::HelixStepper::outputStepSize | ( | const State & | state | ) | const |
Output the Step Size - single component.
| state | [in,out] The stepping state (thread-local cache) |
| const ParticleHypothesis & Acts::HelixStepper::particleHypothesis | ( | const State & | state | ) | const |
Particle hypothesis.
| state | [in] The stepping state (thread-local cache) |
| double Acts::HelixStepper::pathLength | ( | const State & | state | ) | const |
Get the path length.
| state | [in] The stepping state (thread-local cache) |
Global particle position accessor.
| state | [in] The stepping state (thread-local cache) |
| bool Acts::HelixStepper::prepareCurvilinearState | ( | State & | state | ) | const |
If necessary fill additional members needed for transportToCurvilinear.
Compute path length derivatives in case they have not been computed yet, which is the case if no step has been executed yet.
| [in,out] | state | State of the stepper |
| double Acts::HelixStepper::qOverP | ( | const State & | state | ) | const |
QoP direction accessor.
| state | [in] The stepping state (thread-local cache) |
| void Acts::HelixStepper::releaseStepSize | ( | State & | state, |
| ConstrainedStep::Type | stype ) const |
Release the Step size.
| state | [in,out] The stepping state (thread-local cache) | |
| [in] | stype | The step size type to be released |
| void Acts::HelixStepper::setCovariance | ( | State & | state, |
| const Covariance & | covariance ) const |
Set the covariance at the anchor.
The state must already carry a covariance, because the stepper only transports the Jacobian while it has one.
| [in,out] | state | The stepping state (thread-local cache) |
| [in] | covariance | The new covariance at the anchor |
| std::logic_error | if the state does not carry a covariance |
| const StepperStatistics & Acts::HelixStepper::statistics | ( | const State & | state | ) | const |
Get the stepper statistics.
| state | [in] The stepping state (thread-local cache) |
| Result< double > Acts::HelixStepper::step | ( | State & | state, |
| Direction | propDir, | ||
| const IVolumeMaterial * | material ) const |
Perform a helix track parameter propagation step.
| [in,out] | state | State of the stepper |
| propDir | is the direction of propagation | |
| material | is ignored, the stepper propagates in vacuum only |
| const ConstrainedStep & Acts::HelixStepper::stepSize | ( | const State & | state | ) | const |
Get the step size constraints.
| state | [in] The stepping state (thread-local cache) |
| double Acts::HelixStepper::time | ( | const State & | state | ) | const |
Time access.
| state | [in] The stepping state (thread-local cache) |
| Result< Jacobian > Acts::HelixStepper::transportToBound | ( | State & | state, |
| const Surface & | surface, | ||
| const FreeToBoundCorrection & | freeToBoundCorrection = FreeToBoundCorrection(false) ) const |
Transport the covariance to a surface at the current position.
This anchors the state on surface. Without a covariance the state does not change. The state must be on surface, and it stays unchanged if it is not.
| [in,out] | state | State of the stepper |
| [in] | surface | The surface to transport the covariance to |
| [in] | freeToBoundCorrection | Correction for non-linearity effect during transform from free to bound |
surface, or a failure if the state is not on surface Transport the covariance to the curvilinear frame at the current position.
This anchors the state on the curvilinear frame. Without a covariance the state does not change.
| [in,out] | state | State of the stepper |
| void Acts::HelixStepper::update | ( | State & | state, |
| const FreeVector & | freeParams, | ||
| const BoundVector & | boundParams, | ||
| const Covariance & | covariance, | ||
| const Surface & | surface ) const |
Method to update a stepper state to the some parameters.
This anchors the state on surface.
| [in,out] | state | State object that will be updated |
| [in] | freeParams | Free parameters that will be written into state |
| [in] | boundParams | Corresponding bound parameters used to update jacToGlobal in state |
| [in] | covariance | The covariance that will be written into state if the state carries a covariance |
| [in] | surface | The surface used to update the jacToGlobal |
| void Acts::HelixStepper::update | ( | State & | state, |
| const Vector3 & | uposition, | ||
| const Vector3 & | udirection, | ||
| double | qop, | ||
| double | time ) const |
Method to update the stepper state.
| [in,out] | state | State object that will be updated |
| [in] | uposition | the updated position |
| [in] | udirection | the updated direction |
| [in] | qop | the updated qop value |
| [in] | time | the updated time value |
| void Acts::HelixStepper::updateStepSize | ( | State & | state, |
| const NavigationTarget & | target, | ||
| Direction | direction, | ||
| ConstrainedStep::Type | stype ) const |
Update step size.
This method intersects the provided surface and update the navigation step estimation accordingly (hence it changes the state). It also returns the status of the intersection to trigger onSurface in case the surface is reached.
| state | [in,out] The stepping state (thread-local cache) |
| target | [in] The NavigationTarget |
| direction | [in] The propagation direction |
| stype | [in] The step size type to be set |
| void Acts::HelixStepper::updateStepSize | ( | State & | state, |
| double | stepSize, | ||
| ConstrainedStep::Type | stype ) const |
Update step size - explicitly with a double.
| state | [in,out] The stepping state (thread-local cache) |
| stepSize | [in] The step size value |
| stype | [in] The step size type to be set |
| IntersectionStatus Acts::HelixStepper::updateSurfaceStatus | ( | State & | state, |
| const Surface & | surface, | ||
| std::uint8_t | index, | ||
| Direction | navDir, | ||
| const BoundaryTolerance & | boundaryTolerance, | ||
| double | surfaceTolerance, | ||
| ConstrainedStep::Type | stype, | ||
| const Logger & | logger = getDummyLogger(), | ||
| const Vector3 & | curvature = Vector3::Zero() ) const |
Update surface status.
It checks the status to the reference surface & updates the step size accordingly
| [in,out] | state | The stepping state (thread-local cache) |
| [in] | surface | The surface provided |
| [in] | index | The surface intersection index |
| [in] | navDir | The navigation direction |
| [in] | boundaryTolerance | The boundary check for this status update |
| [in] | surfaceTolerance | Surface tolerance used for intersection |
| [in] | stype | The step size type to be set |
| [in] | logger | A Logger instance |
| curvature | Global geometric curvature for the crossing estimate |