Skip to content

Commit

Permalink
Update for new Detector.transform API
Browse files Browse the repository at this point in the history
  • Loading branch information
r-owen committed Feb 27, 2018
1 parent 72cdbf4 commit d95def2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/shimCameraGeom.cc
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ int getHeight(CONST_PTR(afw::cameraGeom::Detector) det) {

afw::geom::Point2D detPxToFpPx(CONST_PTR(afw::cameraGeom::Detector) det, afw::geom::Point2D const detPt) {
auto scaling = makeScalingMmToPx(det->getPixelSize());
auto pixelsToFocalPlane = det->getTransform(afw::cameraGeom::PIXELS, afw::cameraGeom::FOCAL_PLANE);
return scaling(pixelsToFocalPlane->applyForward(detPt));
return scaling(det->transform(detPt, afw::cameraGeom::PIXELS, afw::cameraGeom::FOCAL_PLANE));
}

afw::geom::Point2D detPxToFpPxRot(CONST_PTR(afw::cameraGeom::Detector) det, afw::geom::Point2D const detPt) {
Expand Down

0 comments on commit d95def2

Please sign in to comment.