Template Class TrackState

Class Documentation

template<typename source_link_t, typename parameters_t>
class Acts::TrackState

Templated class to hold the track information on a surface along the trajectory.

Note

the Surface is only stored as a pointer, i.e. it is assumed the surface lives longer than the TrackState

Template Parameters
  • source_link_t: Type of the source link

  • parameters_t: Type of the parameters on the surface

Public Types

using Jacobian = typename Parameters::CovMatrix_t
using Parameters = parameters_t
using SourceLink = source_link_t

Public Functions

Constructor from (uncalibrated) measurement.

Parameters
  • m: The measurement object

TrackState(parameters_t p)

Constructor from parameters.

Template Parameters
  • parameters_t: Type of the predicted parameters

Parameters
  • p: The parameters object

TrackState(const TrackState &rhs)

Copy constructor.

Parameters
  • rhs: is the source TrackState

TrackState(TrackState &&rhs)

Copy move constructor.

Parameters
  • rhs: is the source TrackState

~TrackState() = default

Virtual destructor.

bool isType(const TrackStateFlag &flag) const

test if the tracks state is flagged as a given type

TrackState &operator=(const TrackState &rhs)

Assignment operator.

Parameters
  • rhs: is the source TrackState

TrackState &operator=(TrackState &&rhs)

Assignment move operator.

Parameters
  • rhs: is the source TrackState

const Surface &referenceSurface() const

return method for the surface

void setType(const TrackStateFlag &flag, bool status = true)

set the type flag

std::optional<size_t> size()

number of Measured parameters, forwarded

Note

This only returns a value if there is a calibrated measurement set. If not, this returns std::nullopt

Return

number of measured parameters, or std::nullopt

TrackStateType type() const

return method for the type flags

Public Members

std::optional<FittableMeasurement<SourceLink>> calibrated = {std::nullopt}

The optional calibrabed measurement.

double chi2 = 0

chisquare

std::optional<Parameters> filtered = {std::nullopt}

The filtered state.

std::optional<Jacobian> jacobian = {std::nullopt}

The transport jacobian matrix.

struct Acts::TrackState::[anonymous] measurement

Nested measurement part This is the uncalibrated and calibrated measurement (in case the latter is different)

struct Acts::TrackState::[anonymous] parameter

The parameter part This is all the information that concerns the the track parameterisation and the jacobian It is enough to to run the track smoothing.

double pathLength = 0.

The path length along the track - will help sorting.

std::optional<Parameters> predicted = {std::nullopt}

The predicted state.

std::optional<Parameters> smoothed = {std::nullopt}

The smoothed state.

std::optional<SourceLink> uncalibrated = {std::nullopt}

The optional (uncalibrated) measurement.