Skip to content

Commit 7949889

Browse files
authored
TrackerMeasurementFromHits: fix time component of covariance (#1666)
This value is not used yet, but should be squared, in principle. ### Briefly, what does this PR introduce? ### What kind of change does this PR introduce? - [x] Bug fix (issue #__) - [ ] New feature (issue #__) - [ ] Documentation update - [ ] Other: __ ### Please check if this PR fulfills the following: - [ ] Tests for the changes have been added - [ ] Documentation has been added / updated - [ ] Changes have been communicated to collaborators ### Does this PR introduce breaking changes? What changes might users need to make to their code? ### Does this PR change default behavior?
1 parent 45eddf4 commit 7949889

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/algorithms/tracking/TrackerMeasurementFromHits.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ namespace eicrecon {
125125
meas2D.setLoc({static_cast<float>(pos[0]),static_cast<float>(pos[1])}); // 2D location on surface
126126
meas2D.setTime(hit.getTime()); // Measurement time
127127
// fixme: no off-diagonal terms. cov(0,1) = cov(1,0)??
128-
meas2D.setCovariance({cov(0,0),cov(1,1),hit.getTimeError(),cov(0,1)}); // Covariance on location and time
128+
meas2D.setCovariance({cov(0,0), cov(1,1), hit.getTimeError() * hit.getTimeError(), cov(0,1)}); // Covariance on location and time
129129
meas2D.addToWeights(1.0); // Weight for each of the hits, mirrors hits array
130130
meas2D.addToHits(hit);
131131
}

0 commit comments

Comments
 (0)