Index: trunk/psModules/src/objects/pmSourceGroups.h
===================================================================
--- trunk/psModules/src/objects/pmSourceGroups.h	(revision 26162)
+++ trunk/psModules/src/objects/pmSourceGroups.h	(revision 26182)
@@ -16,10 +16,7 @@
 } pmSourceGroups;
 
-/// Allocator
-///
-/// Allocates the source groups
+/// Allocate the source groups
 pmSourceGroups *pmSourceGroupsAlloc(
     const pmReadout *readout,           // Readout on which the sources are defined
-    const psArray *sources,             // Sources of interest
     int nThreads                        // Number of threads
     );
@@ -34,6 +31,24 @@
     );
 
+/// Populate the source groups
+bool pmSourceGroupsPopulate(
+    pmSourceGroups *groups,              // Source groups to populate
+    const psVector *x, const psVector *y // Coordinates of sources
+    );
 
 
+/// Generate source groups from an array of sources
+pmSourceGroups *pmSourceGroupsFromSources(
+    const pmReadout *readout,           // Readout on which the sources are defined
+    const psArray *sources,             // Array of sources
+    int nThreads                        // Number of threads
+    );
+
+/// Generate source groups from vectors with source positions
+pmSourceGroups *pmSourceGroupsFromVectors(
+    const pmReadout *readout,             // Readout on which the sources are defined
+    const psVector *x, const psVector *y, // Coordinates of sources
+    int nThreads                          // Number of threads
+    );
 
 #endif
