|
ACTS
Experiment-independent tracking
|
Runge-Kutta-Nystroem stepper based on Eigen implementation for the following ODE: More...
#include <Acts/Propagator/EigenStepper.hpp>
Classes | |
| struct | Config |
| struct | Options |
| struct | State |
| State for track parameter propagation. More... | |
Public Types | |
| using | BoundState = std::tuple<BoundTrackParameters, Jacobian, double> |
| Type alias for bound state tuple containing parameters, jacobian, and path length. | |
| using | Covariance = BoundSquareMatrix |
| Type alias for covariance matrix (bound square matrix). | |
| using | Jacobian = BoundMatrix |
| Jacobian, Covariance and State definitions. | |
Public Member Functions | |
| EigenStepper (const Config &config) | |
| Constructor with configuration. | |
| EigenStepper (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< BoundState > | boundState (State &state, const Surface &surface, bool transportCov=true, const FreeToBoundCorrection &freeToBoundCorrection=FreeToBoundCorrection(false)) const |
| Create and return the bound state at the current position. | |
| double | charge (const State &state) const |
| Charge access. | |
| BoundState | curvilinearState (State &state, bool transportCov=true) const |
| Create and return a curvilinear state 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. | |
| void | initialize (State &state, const BoundTrackParameters &par) const |
| Initialize the stepper 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 stepper state from bound parameters and surface. | |
| State | makeState (const Options &options) const |
| Create a stepper state from given options. | |
| 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. | |
| Vector3 | position (const State &state) const |
| Global particle position accessor. | |
| bool | prepareCurvilinearState (State &state) const |
| If necessary fill additional members needed for curvilinearState. | |
| double | qOverP (const State &state) const |
| QoP direction accessor. | |
| void | releaseStepSize (State &state, ConstrainedStep::Type stype) const |
| Release the Step size. | |
| void | setIdentityJacobian (State &state) const |
| Method that reset the Jacobian to the Identity for when no bound state are available. | |
| Result< double > | step (State &state, Direction propDir, const IVolumeMaterial *material) const |
| Perform a Runge-Kutta track parameter propagation step. | |
| double | time (const State &state) const |
| Time access. | |
| void | transportCovarianceToBound (State &state, const Surface &surface, const FreeToBoundCorrection &freeToBoundCorrection=FreeToBoundCorrection(false)) const |
| Method for on-demand transport of the covariance to a new curvilinear frame at current position, or direction of the state. | |
| void | transportCovarianceToCurvilinear (State &state) const |
| Method for on-demand transport of the covariance to a new curvilinear frame at current position, or direction of the state. | |
| 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 qOverP, 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 propDir, const BoundaryTolerance &boundaryTolerance, double surfaceTolerance, ConstrainedStep::Type stype, const Logger &logger=getDummyLogger()) const |
| Update surface status. | |
Protected Attributes | |
| std::shared_ptr< const MagneticFieldProvider > | m_bField |
| Magnetic field inside of the detector. | |
Runge-Kutta-Nystroem stepper based on Eigen implementation for the following ODE:
r = (x,y,z) ... global position T = (Ax,Ay,Az) ... momentum direction (normalized)
dr/ds = T dT/ds = q/p * (T x B)
with s being the arc length of the track, q the charge of the particle, p the momentum magnitude and B the magnetic field
| using Acts::EigenStepper< extension_t >::BoundState = std::tuple<BoundTrackParameters, Jacobian, double> |
Type alias for bound state tuple containing parameters, jacobian, and path length.
| using Acts::EigenStepper< extension_t >::Covariance = BoundSquareMatrix |
Type alias for covariance matrix (bound square matrix).
| using Acts::EigenStepper< extension_t >::Jacobian = BoundMatrix |
Jacobian, Covariance and State definitions.
|
explicit |
Constructor requires knowledge of the detector's magnetic field.
| bField | The magnetic field provider |
|
explicit |
Constructor with configuration.
| [in] | config | The configuration of the stepper |
| double Acts::EigenStepper< extension_t >::absoluteMomentum | ( | const State & | state | ) | const |
Absolute momentum accessor.
| state | [in] The stepping state (thread-local cache) |
| Result< BoundState > Acts::EigenStepper< extension_t >::boundState | ( | State & | state, |
| const Surface & | surface, | ||
| bool | transportCov = true, | ||
| const FreeToBoundCorrection & | freeToBoundCorrection = FreeToBoundCorrection(false) ) const |
Create and return the bound state at the current position.
This transports (if necessary) the covariance to the surface and creates a bound state. It does not check if the transported state is at the surface, this needs to be guaranteed by the propagator
| [in] | state | State that will be presented as BoundState |
| [in] | surface | The surface to which we bind the state |
| [in] | transportCov | Flag steering covariance transport |
| [in] | freeToBoundCorrection | Correction for non-linearity effect during transform from free to bound |
| double Acts::EigenStepper< extension_t >::charge | ( | const State & | state | ) | const |
Charge access.
| state | [in] The stepping state (thread-local cache) |
| BoundState Acts::EigenStepper< extension_t >::curvilinearState | ( | State & | state, |
| bool | transportCov = true ) const |
Create and return a curvilinear state at the current position.
This transports (if necessary) the covariance to the current position and creates a curvilinear state.
| [in] | state | State that will be presented as CurvilinearState |
| [in] | transportCov | Flag steering covariance transport |
| Vector3 Acts::EigenStepper< extension_t >::direction | ( | const State & | state | ) | const |
Momentum direction accessor.
| state | [in] The stepping state (thread-local cache) |
| Result< Vector3 > Acts::EigenStepper< extension_t >::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.
| [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::EigenStepper< extension_t >::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 |
| void Acts::EigenStepper< extension_t >::initialize | ( | State & | state, |
| const BoundTrackParameters & | par ) const |
Initialize the stepper state from bound track parameters.
| state | Stepper state to initialize |
| par | Bound track parameters to initialize from |
| void Acts::EigenStepper< extension_t >::initialize | ( | State & | state, |
| const BoundVector & | boundParams, | ||
| const std::optional< BoundMatrix > & | cov, | ||
| ParticleHypothesis | particleHypothesis, | ||
| const Surface & | surface ) const |
Initialize the stepper state from bound parameters and surface.
| state | Stepper state to initialize |
| boundParams | Vector of bound track parameters |
| cov | Optional covariance matrix |
| particleHypothesis | Particle hypothesis for the track |
| surface | Surface associated with the parameters |
| State Acts::EigenStepper< extension_t >::makeState | ( | const Options & | options | ) | const |
Create a stepper state from given options.
| options | Configuration options for the stepper state |
| Vector3 Acts::EigenStepper< extension_t >::momentum | ( | const State & | state | ) | const |
Momentum accessor.
| state | [in] The stepping state (thread-local cache) |
| std::string Acts::EigenStepper< extension_t >::outputStepSize | ( | const State & | state | ) | const |
Output the Step Size - single component.
| state | [in,out] The stepping state (thread-local cache) |
| const ParticleHypothesis & Acts::EigenStepper< extension_t >::particleHypothesis | ( | const State & | state | ) | const |
Particle hypothesis.
| state | [in] The stepping state (thread-local cache) |
| Vector3 Acts::EigenStepper< extension_t >::position | ( | const State & | state | ) | const |
Global particle position accessor.
| state | [in] The stepping state (thread-local cache) |
| bool Acts::EigenStepper< extension_t >::prepareCurvilinearState | ( | State & | state | ) | const |
If necessary fill additional members needed for curvilinearState.
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 | The state of the stepper |
| double Acts::EigenStepper< extension_t >::qOverP | ( | const State & | state | ) | const |
QoP direction accessor.
| state | [in] The stepping state (thread-local cache) |
| void Acts::EigenStepper< extension_t >::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::EigenStepper< extension_t >::setIdentityJacobian | ( | State & | state | ) | const |
Method that reset the Jacobian to the Identity for when no bound state are available.
| [in,out] | state | State of the stepper |
| Result< double > Acts::EigenStepper< extension_t >::step | ( | State & | state, |
| Direction | propDir, | ||
| const IVolumeMaterial * | material ) const |
Perform a Runge-Kutta track parameter propagation step.
| [in,out] | state | State of the stepper |
| propDir | is the direction of propagation | |
| material | is the optional volume material we are stepping through. |
| double Acts::EigenStepper< extension_t >::time | ( | const State & | state | ) | const |
Time access.
| state | [in] The stepping state (thread-local cache) |
| void Acts::EigenStepper< extension_t >::transportCovarianceToBound | ( | State & | state, |
| const Surface & | surface, | ||
| const FreeToBoundCorrection & | freeToBoundCorrection = FreeToBoundCorrection(false) ) const |
Method for on-demand transport of the covariance to a new curvilinear frame at current position, or direction of the state.
| surface_t | the Surface type |
| [in,out] | state | State of the stepper |
| [in] | surface | is the surface to which the covariance is forwarded to |
| [in] | freeToBoundCorrection | Correction for non-linearity effect during transform from free to bound |
| void Acts::EigenStepper< extension_t >::transportCovarianceToCurvilinear | ( | State & | state | ) | const |
Method for on-demand transport of the covariance to a new curvilinear frame at current position, or direction of the state.
| [in,out] | state | State of the stepper |
| void Acts::EigenStepper< extension_t >::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.
| [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 |
| [in] | surface | The surface used to update the jacToGlobal |
| void Acts::EigenStepper< extension_t >::update | ( | State & | state, |
| const Vector3 & | uposition, | ||
| const Vector3 & | udirection, | ||
| double | qOverP, | ||
| 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] | qOverP | the updated qOverP value |
| [in] | time | the updated time value |
| void Acts::EigenStepper< extension_t >::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::EigenStepper< extension_t >::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::EigenStepper< extension_t >::updateSurfaceStatus | ( | State & | state, |
| const Surface & | surface, | ||
| std::uint8_t | index, | ||
| Direction | propDir, | ||
| const BoundaryTolerance & | boundaryTolerance, | ||
| double | surfaceTolerance, | ||
| ConstrainedStep::Type | stype, | ||
| const Logger & | logger = getDummyLogger() ) 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] | propDir | The propagation 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 |
|
protected |
Magnetic field inside of the detector.