Template Function Acts::makeMeasurement¶
Defined in File Measurement.hpp
Function Documentation¶
-
template<typename
source_link_t, typenameparameters_t, typenamecovariance_t, typenameindices_t, typename ...tail_indices_t>
autoActs::makeMeasurement(source_link_t source, const Eigen::MatrixBase<parameters_t> ¶ms, const Eigen::MatrixBase<covariance_t> &cov, indices_t index0, tail_indices_t... tailIndices) -> Measurement<source_link_t, indices_t, 1u + sizeof...(tail_indices_t)>¶ Construct a fixed-size measurement for the given indices.
This helper function can be used to create a fixed-size measurement using an explicit set of indices, e.g.
auto m = makeMeasurement(s, p, c, eBoundLoc0, eBoundTime);
- Return
Fixed-size measurement w/ the correct type and given inputs
- Template Parameters
source_link_t: Source link type to connect to the detector readoutparameters_t: Input parameters vector typecovariance_t: Input covariance matrix typeindices_t: Parameter index type, determines the full parameter spacetail_indices_t: Helper types required to support variadic arguments; all types must be convertibale toindices_t.
- Parameters
source: The link that connects to the underlying detector readoutparams: Measured parameters valuescov: Measured parameters covarianceindex0: Required parameter index, measurement must be at least 1dtailIndices: Additional parameter indices for larger measurements
for a 2d measurement w/ one position and time.
- Note
The indices must be ordered and must be consistent with the content of parameters and covariance.