Skip to content

Commit d03fb6a

Browse files
authored
Merge pull request cms-sw#33881 from ericcano/warning-fix-PixelTrackFitting-Eigen
Resolved uninitialized value warning in PixelTrackFitting
2 parents 57abd4d + b23ba5a commit d03fb6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RecoPixelVertexing/PixelTrackFitting/interface/RiemannFit.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ namespace riemannFit {
515515
// scale
516516
const double tempQ = mc.squaredNorm();
517517
const double tempS = sqrt(n * 1. / tempQ); // scaling factor
518-
p3D *= tempS;
518+
p3D.block(0, 0, 2, n) *= tempS;
519519

520520
// project on paraboloid
521521
p3D.row(2) = p3D.block(0, 0, 2, n).colwise().squaredNorm();

0 commit comments

Comments
 (0)