Index: /branches/haf_branches/ipp.20100512/ippTasks/addstar.pro
===================================================================
--- /branches/haf_branches/ipp.20100512/ippTasks/addstar.pro	(revision 28059)
+++ /branches/haf_branches/ipp.20100512/ippTasks/addstar.pro	(revision 28060)
@@ -7,5 +7,4 @@
 
 book init addPendingExp
-book init minidvodbPending
 
 macro addstar.status
@@ -46,28 +45,8 @@
 end
 
-macro minidvodb.status
-  book listbook minidvodbPending
-end
-
-macro minidvodb.reset
-  book init minidvodbPending
-end
-
-macro minidvodb.create.on
-  task minidvodb.create
-    active true
-  end
-end
-macro minidvodb.create.off
-  task minidvodb.create
-    active false
-  end
-end
 
 # this variable will cycle through the known database names
 $addstar_DB = 0
 $addstar_revert_DB = 0
-$minidvodb_DB = 0
-$minidvodb_revert_DB = 0
 
 
@@ -193,5 +172,5 @@
     $run = $run --minidvodb
     $run = $run --minidvodb_group
-	if ("$MINIDVODB_NAME" != "NULL")
+	if (("$MINIDVODB_NAME" != "NULL") && ("$MINIDVODB_NAME" != "(null)"))
            $run = $run --minidvodb_name  #have addstar_run.pl grab the 'active' name if it is NULL
 	end
Index: /branches/haf_branches/ipp.20100512/ippTasks/minidvodb.pro
===================================================================
--- /branches/haf_branches/ipp.20100512/ippTasks/minidvodb.pro	(revision 28060)
+++ /branches/haf_branches/ipp.20100512/ippTasks/minidvodb.pro	(revision 28060)
@@ -0,0 +1,32 @@
+## addstar.pro : globals and support macros : -*- sh -*-
+## this file contains the tasks for running the addstar analysis stage
+## these tasks use the book addPendingExp
+
+# test for required global variables
+check.globals
+
+book init minidvodbPending
+
+macro minidvodb.status
+  book listbook minidvodbPending
+end
+
+macro minidvodb.reset
+  book init minidvodbPending
+end
+
+macro minidvodb.create.on
+  task minidvodb.create
+    active true
+  end
+end
+macro minidvodb.create.off
+  task minidvodb.create
+    active false
+  end
+end
+
+# this variable will cycle through the known database names
+
+$minidvodb_DB = 0
+$minidvodb_revert_DB = 0
Index: /branches/haf_branches/ipp.20100512/ippTasks/survey.pro
===================================================================
--- /branches/haf_branches/ipp.20100512/ippTasks/survey.pro	(revision 28059)
+++ /branches/haf_branches/ipp.20100512/ippTasks/survey.pro	(revision 28060)
@@ -207,10 +207,11 @@
 
 macro survey.add.addstar
-  if ($0 != 3)
-    echo "USAGE: survey.add.addstar (label) (dvodb)"
+  if ($0 != 4)
+    echo "USAGE: survey.add.addstar (label) (dvodb) (minidvodb_group)"
     break
   end
   book newpage SURVEY_ADDSTAR $1
   book setword SURVEY_ADDSTAR $1 DVODB $2
+  book setword SURVEY_ADDSTAR $1 MINIDVODB_GROUP $3
   book setword SURVEY_ADDSTAR $1 STATE PENDING
 end
@@ -638,4 +639,5 @@
     book setword SURVEY_ADDSTAR $label STATE DONE
     book getword SURVEY_ADDSTAR $label DVODB -var dvodb
+    book getword SURVEY_ADDSTAR $label MINIDVODB_GROUP -var minidvodb_group
   
  #   $run = addtool -definebyquery -destreaked -label $label -set_dvodb $dbodb
@@ -648,5 +650,5 @@
     end
     
-    $run = $run -definebyquery -destreaked -label $label -set_dvodb $dvodb
+    $run = $run -definebyquery -destreaked -label $label -set_dvodb $dvodb -set_minidvodb_group $minidvodb_group
     echo $run
     command $run
