Changeset 7572


Ignore:
Timestamp:
03/06/06 03:06:23 (19 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7571 r7572  
    2424     - improved layout
    2525
     26   * datacenter/script/makecallistolinks:
     27     - changed condition, when to make the link: only, if the link is
     28       not yet existing, it is done
     29     - added resetting of db: if link is done, callisto is resetted
     30
     31   * datacenter/macros/resetcolumn.C:
     32     - added failure columns to the resetting
     33
    2634
    2735
  • trunk/MagicSoft/Mars/datacenter/macros/resetcolumn.C

    r7528 r7572  
    106106    //build query and reset columns
    107107    TString query(Form("Update %s SET %s=NULL ", table.Data(), column.Data()));
     108    query+=", fStartTime=NULL, fFailedTime=NULL, fReturnCode=NULL, fFailedCode=NULL, fFailedCodeAdd=NULL ";
    108109
    109110    TIter Next(&l);
  • trunk/MagicSoft/Mars/datacenter/scripts/makecallistolinks

    r7568 r7572  
    6363for file in $files
    6464do
    65   pulse=`cat $file | grep "$reason1\|$reason2"` >> $scriptlog 2>&1
    66   if [ ! "$pulse" = "" ]
    67   then
    68      path=`dirname $file` >> $scriptlog 2>&1
    69      ln -vfs $setuppath/callisto/$callistorcnew $path/$callistorcseq >> $scriptlog 2>&1
    70   fi
     65   pulse=`cat $file | grep "$reason1\|$reason2"` >> $scriptlog 2>&1
     66   sequ=`echo $file | cut -d/ -f6`
     67
     68   if [ ! "$pulse" = "" ]
     69   then
     70      if ! ls -l $callistorcseq | grep $callistorcnew >> $scriptlog 2>&1
     71      then
     72         # resetting the calibration
     73         echo "resetting the callisto for sequence $sequ" >> $scriptlog 2>&1
     74         resetlogpath=$logpath/resetcallisto
     75         echo "resetlogpath: $resetlogpath" >> $scriptlog 2>&1
     76         makedir $resetlogpath >> $scriptlog 2>&1
     77         resetlog=$resetlogpath/reset-callisto-$sequ.log
     78
     79         check1=`root -q -b $macrospath/resetcolumn.C+\("\"fCallisto\""\,"\"SequenceProcessStatus\""\,"\"$sequ\""\,"\"$sequ\""\,kFALSE\) | tee $resetlog | grep int | sed -e 's/(int)//'`
     80         case $check1 in
     81            1)   echo "check1=$check1 -> everything ok, callisto has been reset " >> $scriptlog 2>&1
     82                 ;;
     83            *)   echo "check1=$check1 -> ERROR -> step could not be resetted -> continue " >> $scriptlog 2>&1
     84                 continue ;;
     85         esac
     86      #linking callisto.rc
     87      path=`dirname $file` >> $scriptlog 2>&1
     88      ln -vfs $setuppath/callisto/$callistorcnew $path/$callistorcseq >> $scriptlog 2>&1
     89      fi
     90   fi
    7191done
    7292
Note: See TracChangeset for help on using the changeset viewer.