Ignore:
Timestamp:
02/01/06 18:04:43 (19 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/datacenter/scripts/fillcallisto

    r7465 r7471  
    104104   no=`printf %08d $sequence | cut -c 0-4`
    105105   no2=`printf %08d $sequence`
     106   var1=$no
     107   var2=$no2
    106108   path="$datapath/callisto/$no/$no2"
    107109   signalfile=$path/signal$no2.root
     
    114116
    115117   echo "run $program for sequence $sequence" >> $scriptlog 2>&1
     118   setstatus "start" >> $scriptlog 2>&1
    116119   echo "run fillcalib..." >> $scriptlog 2>&1
     120
    117121   check1=`root -q -b $macrospath/fillcalib.C+\("\"$calibfile\""\,kFALSE\) | tee $fillcaliblog | grep int | sed -e 's/(int)//'`
    118122
    119123   case $check1 in
    120       1)   echo "check1=$check1 -> everything ok -> run fillsignal " >> $scriptlog 2>&1;;
     124      1)   echo "check1=$check1 -> everything ok -> run fillsignal " >> $scriptlog 2>&1 ;;
    121125      *)   echo "check1=$check1 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1
    122            continue;;
     126           com="fillcalib for sequence $sequence failed"
     127           check=$check1
     128           setstatus "stop" >> $scriptlog 2>&1
     129           continue ;;
    123130   esac
    124131
    125132   check2=`root -q -b $macrospath/fillsignal.C+\("\"$signalfile\""\,kFALSE\) | tee $fillsignallog | grep int | sed -e 's/(int)//'`
    126133   case $check2 in
    127       1)   echo "check2=$check2 -> everything ok " >> $scriptlog 2>&1
    128            echo "-> inserting the status for $program for sequence $sequence into the db" >> $scriptlog 2>&1
    129            statustime="Now()"
    130            failed="NULL"
    131            starttime="NULL"
    132            failedtime="NULL"
    133            var1=$no
    134            var2=$sequence
    135            setstatus
    136           ;;
    137       *)   echo "check2=$check2 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1;;
     134      1)   echo "check2=$check2 -> everything ok " >> $scriptlog 2>&1 ;;
     135      *)   echo "check2=$check2 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1
     136           com="fillsignal for sequencec $sequence failed"
     137           check=$check2
     138           ;;
    138139   esac
     140   echo "inserting the status for $program for sequence $sequence into the db" >> $scriptlog 2>&1
     141   setstatus "stop" >> $scriptlog 2>&1
    139142done
    140143
Note: See TracChangeset for help on using the changeset viewer.