Index: /branches/eam_branches/ipp-20101205/psModules/src/objects/pmSource.h
===================================================================
--- /branches/eam_branches/ipp-20101205/psModules/src/objects/pmSource.h	(revision 30152)
+++ /branches/eam_branches/ipp-20101205/psModules/src/objects/pmSource.h	(revision 30153)
@@ -35,4 +35,5 @@
     PM_SOURCE_TMPF_SIZE_CR_CANDIDATE = 0x0008,
     PM_SOURCE_TMPF_MOMENTS_MEASURED  = 0x0010,
+    PM_SOURCE_TMPF_CANDIDATE_PSFSTAR = 0x0020,
 } pmSourceTmpF;
 
@@ -42,4 +43,16 @@
  *  simplest measurement of a source is the location and flux of the peak pixel
  *  associated with the source:
+ *
+ * a pmSource is the information about a (possible) blob of flux in a specific image.  A source
+ * may represent an insignificant or undetected source.  There may be multiple representations
+ * of an image (eg, alternate smoothed copies); sources on alternate images may have a pointer
+ * to the version on the primary image (source->parent).  A set of sources on different, but
+ * related images (eg, multiple exposures or different filters) which (may) represent the same
+ * astronomical object are grouped together with the pmPhotObj type (set pmPhotObj.h).
+ * 
+ * A single source may be fitted with multiple models (not at the same time!).  The PSF model
+ * fit is a fit of the position (optionally) and the flux to the PSF model at the location of
+ * the source.  Alternate model fits are extended source models. The best model fit is used to
+ * subtract the object from the image.
  *
  *  XXX do I have to re-organize this (again!) to allow an arbitrary set of extended model fits??
@@ -94,17 +107,4 @@
 };
 
-/* a pmSource is the information about a (possible) blob of flux in a specific image.  A source
- * may represent an insignificant or undetected source.  There may be multiple representations
- * of an image (eg, alternate smoothed copies); sources on alternate images may have a pointer
- * to the version on the primary image (source->parent).  A set of sources on different, but
- * related images (eg, multiple exposures or different filters) which (may) represent the same
- * astronomical object are grouped together with the pmPhotObj type (set pmPhotObj.h).
- * 
- * A single source may be fitted with multiple models (not at the same time!).  The PSF model
- * fit is a fit of the position (optionally) and the flux to the PSF model at the location of
- * the source.  Alternate model fits are extended source models. The best model fit is used to
- * subtract the object from the image.
- */
-
 /** pmPSFClump data structure
  *
@@ -173,6 +173,11 @@
     psF32 x,     ///< center coords of source
     psF32 y,      ///< center coords of source
-    psF32 Radius,   ///< size of box on source
-    bool force	    ///< guaranteed pixels are re-assigned
+    psF32 Radius   ///< size of box on source
+);
+
+bool pmSourceRedefinePixelsByRegion (
+    pmSource *mySource,   ///< source to be re-defined
+    const pmReadout *readout,   ///< base the source on this readout
+    psRegion newRegion ///< region for source pixel definition
 );
 
