Find the measurement corresponding to the source link.
61 {
64 assert(m_measurements and
65 "Undefined measurement container in LdmxMeasurementCalibrator");
66 assert((sourceLink.index() < m_measurements->size()) and
67 "Source link index is outside the container bounds in "
68 "LdmxMeasurementCalibrator");
69
70 auto meas = m_measurements->at(sourceLink.index());
71 Acts::Vector2 local_pos{meas.getLocalPosition()[0],
72 meas.getLocalPosition()[1]};
73 auto tsCal{trackState.template calibrated<2>()};
74 auto tsCalCov{trackState.template calibratedCovariance<2>()};
75 tsCal.setZero();
76 tsCal.template head<2>() = local_pos;
77 Acts::SquareMatrix2 local_cov;
78 local_cov.setZero();
79 local_cov(0, 0) = meas.getLocalCovariance()[0];
80 local_cov(1, 1) = meas.getLocalCovariance()[1];
81 tsCalCov.setZero();
82
83 tsCalCov.block(0, 0, 2, 2) = local_cov;
84
85 Acts::ActsMatrix<2, 6> projector;
86 projector.setZero();
87 projector(0, 0) = 1.;
88 projector(1, 1) = 1.;
89
90 trackState.setProjector(projector);
91 }
A source link that stores just an index.