Index: trunk/DataCheck/QuickLook/RunCallisto.sh
===================================================================
--- trunk/DataCheck/QuickLook/RunCallisto.sh	(revision 18267)
+++ trunk/DataCheck/QuickLook/RunCallisto.sh	(revision 18268)
@@ -23,20 +23,35 @@
 done
 
+# get all needed paths and files
+delays="resources/delays-20150217.txt"
+drstimefiles=`ls $drstimepath | sort`
+for drstimefile in $drstimefiles
+do 
+   num=`echo $drstimefile | cut -c 1-8`
+   if [ $num -gt $night ]
+   then
+      break
+   fi
+   drstime=$drstimepath/$drstimefile
+done
+   
 case $1 in
    drun) # process data run
-         printprocesslog "DEBUG fact/analysis/callisto_data.C\("\"$3\""\,"\"$4\""\,"\"$5\""\,"\"\""\,"\"$6\""\) | tee $logfile "
-         check1=`root -q -b fact/analysis/callisto_data.C\("\"$3\""\,"\"$4\""\,"\"$5\""\,"\"\""\,"\"$6\""\) | tee $logfile | intgrep`
+         printprocesslog "DEBUG fact/analysis/callisto_data.C\("\"$3\""\,"\"$4\""\,"\"$drstime\""\,"\"$delays\""\,"\"$5\""\) | tee $logfile "
+         check1=`root -q -b fact/analysis/callisto_data.C\("\"$3\""\,"\"$4\""\,"\"$drstime\""\,"\"$delays\""\,"\"$5\""\) | tee $logfile | intgrep`
          ;;
    prun) # process pedestal run
          # currently not done (s Step1.sh)
-         printprocesslog "DEBUG fact/analysis/callisto_pedestal.C\("\"$3\""\,"\"$4\"","\"$5\""\) | tee $logfile "
-         check1=`root -q -b fact/analysis/callisto_pedestal.C\("\"$3\""\,"\"$4\"","\"$5\""\) | tee $logfile | intgrep`
+         echo "processing pedetal runs currently not implemented"
+         # printprocesslog "DEBUG fact/analysis/callisto_pedestal.C\("\"$3\""\,"\"$4\"","\"$5\""\) | tee $logfile "
+         #check1=`root -q -b fact/analysis/callisto_pedestal.C\("\"$3\""\,"\"$4\"","\"$5\""\) | tee $logfile | intgrep`
          ;;
    crun) # process light-pulser run
          # currently not done (s Step1.sh)
-         printprocesslog "DEBUG fact/analysis/callisto_lightpulser.C\("\"$3\""\,"\"$4\""\,"\"$5\""\,"\"$6\""\) | tee $logfile "
-         check1=`root -q -b fact/analysis/callisto_lightpulser.C\("\"$3\""\,"\"$4\""\,"\"$5\""\,"\"$6\""\) | tee $logfile | intgrep`
+         echo "processing light-pulser runs currently not implemented"
+         #printprocesslog "DEBUG fact/analysis/callisto_lightpulser.C\("\"$3\""\,"\"$4\""\,"\"$5\""\,"\"$5\""\) | tee $logfile "
+         #check1=`root -q -b fact/analysis/callisto_lightpulser.C\("\"$3\""\,"\"$4\""\,"\"$5\""\,"\"$5\""\) | tee $logfile | intgrep`
          ;;
-   time) # do drs-calib
+   time) # do drs-time-calib
          printprocesslog "DEBUG fact/analysis/callisto_drstime.C\("\"$3\""\,"\"$4\"","\"$5\""\) | tee $logfile "
          check1=`root -q -b fact/analysis/callisto_drstime.C\("\"$3\""\,"\"$4\"","\"$5\""\) | tee $logfile | intgrep`
@@ -51,10 +66,10 @@
         if [ "$1" == "drun" ]
         then
-           printprocesslog "INFO start RunStar.sh for file "$7
-           starfile=`echo $7 | sed -e 's/callisto/star/g' -e 's/_C/_I/'`
+           printprocesslog "INFO start RunStar.sh for file "$6
+           starfile=`echo $6 | sed -e 's/callisto/star/g' -e 's/_C/_I/'`
            starlog=`echo $starfile | sed -e 's/_I.root/-images.log/'`
            outpath=`dirname $starfile`
            makedir $outpath
-           `dirname $0`/RunStar.sh $starlog $7 $outpath $starfile
+           `dirname $0`/RunStar.sh $starlog $6 $outpath $starfile
         fi
         ;;
