Index: /trunk/ippTools/src/detselect.c
===================================================================
--- /trunk/ippTools/src/detselect.c	(revision 9402)
+++ /trunk/ippTools/src/detselect.c	(revision 9403)
@@ -98,4 +98,12 @@
     }
 
+    {
+        psString str = NULL;
+        bool status = false;
+        if ((str = psMetadataLookupStr(&status, config->args, "-det_type"))) {
+            psStringAppend(&query, " AND detRun.det_type = '%s'", str);
+        }
+    }
+
     psStringAppend(&query, " LIMIT 1");
 
Index: /trunk/ippTools/src/detselectConfig.c
===================================================================
--- /trunk/ippTools/src/detselectConfig.c	(revision 9402)
+++ /trunk/ippTools/src/detselectConfig.c	(revision 9403)
@@ -195,5 +195,4 @@
     addWhereStr(telescope);
     addWhereStr(exp_type);
-    addWhereStr(det_type);
     addWhereS32(imfiles);
     addWhereStr(class);
