From 92e44631ad2cd1cad595971f1200b5fb9d2ae877 Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Tue, 5 Nov 2024 20:01:12 -0500 Subject: [PATCH] TrackerMeasurementFromHits: fix time component of covariance This value is not used yet, but should be squared, in principle. --- src/algorithms/tracking/TrackerMeasurementFromHits.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/algorithms/tracking/TrackerMeasurementFromHits.cc b/src/algorithms/tracking/TrackerMeasurementFromHits.cc index af8d7dfb75..53c429e28f 100644 --- a/src/algorithms/tracking/TrackerMeasurementFromHits.cc +++ b/src/algorithms/tracking/TrackerMeasurementFromHits.cc @@ -125,7 +125,7 @@ namespace eicrecon { meas2D.setLoc({static_cast(pos[0]),static_cast(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); }