Possible error in covariance matrix transfer in SOATrackConversion.h
In the code fragment below quoted from Event/TrackEvent/include/Event/SOATrackConversion.h, it looks like at least one element of the covariance matrix for a state is incorrectly transferred:
outTrack.template field<v3::Tag::StateCovs>( L ).set( cov[0][0], cov[0][1], cov[0][2], cov[0][3], cov[0][4],
cov[1][1], cov[1][2], cov[1][3], cov[1][4], cov[2][3],
cov[2][3], cov[2][4], cov[3][3], cov[3][4], cov[4][4] );
Note the duplication of cov[2][3]
at the end of the second line (L136 in file) and at the beginning of third line (L137 in file). Also note that the diagonal element cov[2][2]
is missing. It looks like the first cov[2][3]
should be cov[2][2]
.
Edited by Patrick Spradlin