Index: trunk/psphot/src/psphotStackReadout.c
===================================================================
--- trunk/psphot/src/psphotStackReadout.c	(revision 34226)
+++ trunk/psphot/src/psphotStackReadout.c	(revision 34266)
@@ -416,10 +416,17 @@
     psphotMagnitudes(config, view, STACK_SRC);
 
-    // XXX NOTE: this function wants to have the PSF of the image, but we (so far) only measure the 
-    // PSF of the SRC image.  can we fake it by generating the PSF for DET as well (up above)? 
-    if (false && !psphotEfficiency(config, view, STACK_DET)) {
+    if (!useRaw) {
+        // psphotEfficiency wants to have the PSF of the image, but since we are measuring on
+        // the convolved images we need to generate PSFs for the DET images
+        if (!psphotChoosePSF (config, view, STACK_DET, false)) { // pass 1
+            psLogMsg ("psphot", 3, "failure to construct a psf model for raw input");
+            return psphotReadoutCleanup (config, view, STACK_DET);
+        }
+    }
+    if (!psphotEfficiency(config, view, STACK_DET)) {
         psErrorStackPrint(stderr, "Unable to determine detection efficiencies from fake sources");
         psErrorClear();
     }
+    psphotCopyEfficiency (config, view, STACK_OUT, STACK_DET);
 
     // replace failed sources?
