Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix thread safety issue with PosteriorWeightsCalculator #3600

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion TrackingTools/GsfTracking/src/PosteriorWeightsCalculator.cc
Expand Up @@ -40,6 +40,7 @@ std::vector<double> PosteriorWeightsCalculator::weights(const TrackingRecHit& re
VecD r, rMeas;
SMatDD V, R;
AlgebraicVector5 x;
ProjectMatrix<double,5,D> p;
//
// calculate chi2 and determinant / component and find
// minimum / maximum of chi2
Expand All @@ -57,7 +58,7 @@ std::vector<double> PosteriorWeightsCalculator::weights(const TrackingRecHit& re

KfComponentsHolder holder;
x = predictedComponents[i].localParameters().vector();
holder.template setup<D>(&r, &V, &H, &rMeas, &R,
holder.template setup<D>(&r, &V, &H, &p, &rMeas, &R,
x, predictedComponents[i].localError().matrix());
recHit.getKfComponents(holder);

Expand Down