Index: trunk/DataCheck/QuickLook/ReDoStar.sh
===================================================================
--- trunk/DataCheck/QuickLook/ReDoStar.sh	(revision 17617)
+++ trunk/DataCheck/QuickLook/ReDoStar.sh	(revision 17900)
@@ -12,6 +12,7 @@
 printprocesslog "INFO get list of calibrated files"
 
+date="2014/05/24"
 #calfiles=( `find $anapath -type f -name '*_C.root' 2>/dev/null | grep -v failed_stuff | sort` )
-calfiles=( `find $anapath/callisto -type f -name '*_C.root' 2>/dev/null | sort` )
+calfiles=( `find $anapath/callisto/$date -type f -name '*_C.root' 2>/dev/null | sort` )
 if [ ${#calfiles[@]} -eq 0 ]
 then
@@ -20,9 +21,9 @@
 fi
 #starfiles=( `find $anapath -type f -name '*_I.root' 2>/dev/null | grep -v failed_stuff | sort` )
-starfiles=( `find $anapath/star -type f -name '*_I.root' 2>/dev/null | sort` )
+starfiles=( `find $anapath/star/$date -type f -name '*_I.root' 2>/dev/null | sort` )
 if [ ${#starfiles[@]} -eq 0 ]
 then
    printprocesslog "INFO no star files available "
-   finish
+#   finish
 fi
 
@@ -35,14 +36,11 @@
    do 
       starfile=`echo $calfile | sed -e 's/callisto/star/' -e 's/_C/_I/'`
+      logfile=`echo $starfile | sed -e 's/_I.root/-images.log/'`
       if ! ls $starfile >/dev/null 2>&1
       then
-         echo $starfile
          echo $starfile" is missing -> reprocess. "
-         #source=`echo $starfile | cut -d/ -f4`
-         seqfile=`echo $starfile | sed -e 's/star/sequences/' -e 's/_I.root/.seq/'`
-         echo $seqfile
-         ##echo $source" "$seqfile
-         #`dirname $0`/RunStar.sh $source $seqfile 
-         `dirname $0`/RunStar.sh $seqfile 
+         outpath=`dirname $starfile`
+         makedir $outpath
+         `dirname $0`/RunStar.sh $logfile $calfile $outpath $starfile &	
          if ! ls $starfile >/dev/null 2>&1
          then 
