Skip to content

Commit

Permalink
TrackerMeasurementFromHits: fix time component of covariance
Browse files Browse the repository at this point in the history
This value is not used yet, but should be squared, in principle.
  • Loading branch information
veprbl authored Nov 6, 2024
1 parent 10184fa commit 92e4463
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/algorithms/tracking/TrackerMeasurementFromHits.cc
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ namespace eicrecon {
meas2D.setLoc({static_cast<float>(pos[0]),static_cast<float>(pos[1])}); // 2D location on surface
meas2D.setTime(hit.getTime()); // Measurement time
// fixme: no off-diagonal terms. cov(0,1) = cov(1,0)??
meas2D.setCovariance({cov(0,0),cov(1,1),hit.getTimeError(),cov(0,1)}); // Covariance on location and time
meas2D.setCovariance({cov(0,0), cov(1,1), hit.getTimeError() * hit.getTimeError(), cov(0,1)}); // Covariance on location and time
meas2D.addToWeights(1.0); // Weight for each of the hits, mirrors hits array
meas2D.addToHits(hit);
}
Expand Down

0 comments on commit 92e4463

Please sign in to comment.