Skip to content

Commit

Permalink
Merge pull request cms-sw#44359 from sroychow/ReferenceTrajectory_upd…
Browse files Browse the repository at this point in the history
…ate_forV03-01-01_backport140X

[14.0.X] Backport - Refactor scatterer addition in aGblPoint to explicitly specify type for scatPrecision.inverse()
  • Loading branch information
cmsbuild authored Mar 11, 2024
2 parents f40519a + 409969f commit c55fafc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Alignment/ReferenceTrajectories/src/ReferenceTrajectory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1024,7 +1024,7 @@ bool ReferenceTrajectory::addMaterialEffectsLocalGbl(const std::vector<Algebraic
}
} else {
// GBL add scatterer to point
aGblPoint.addScatterer(scatterer, scatPrecision.inverse());
aGblPoint.addScatterer(scatterer, Eigen::Matrix2d(scatPrecision.inverse()));
}
// add point to list
GblPointList.push_back(aGblPoint);
Expand Down Expand Up @@ -1129,7 +1129,7 @@ bool ReferenceTrajectory::addMaterialEffectsCurvlinGbl(const std::vector<Algebra
}

// GBL add scatterer to point
aGblPoint.addScatterer(scatterer, scatPrecDiag);
aGblPoint.addScatterer(scatterer, Eigen::Vector2d(scatPrecDiag));

// add point to list
GblPointList.push_back(aGblPoint);
Expand Down

0 comments on commit c55fafc

Please sign in to comment.