]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - test/cosmic/rawqa.sh
Removal of out-of-event-loop QA. Correlation QA. Some clean-up in QA code (Yves)
[u/mrichter/AliRoot.git] / test / cosmic / rawqa.sh
index d70187e5a6a1e6dbc0b230b931bdde98910df93f..7704225f4295d129922bd7c39a34de8a6960f7f8 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/sh 
 #############################################################################
 # rawqa.sh. Front-end script to run reconstruction from the grid chunks
 # Usage:
@@ -10,7 +10,6 @@
 # author Yves Schutz CERN
 #
 
-
 # SET THE FOLLOWING PARAMETERS IF NEEDED: 
 # ---------------------------------------
 export YEAR=08
@@ -22,8 +21,10 @@ export RUNNUM=$1
 
 [ ! -e "$HOME/.globus/usercert.pem" ] && { echo "FAILED: There is no certificate in $HOME/.globus"; exit 1; }
 
-[ -e "/tmp/gclient_env_$UID" ] && { source /tmp/gclient_env_$UID; }
+#[ -e "/tmp/gclient_env_$UID" ] && { source /tmp/gclient_env_$UID; }
+#echo 12==========================  $LD_LIBRARY_PATH
 alien-token-init 
+source /tmp/gclient_env_$UID;
 
 [ ! "$?" -eq "0" ] && { echo "FAILED: Token creation failed"; exit 1; }
 
@@ -59,15 +60,19 @@ echo
 #dialog --clear --no-cancel \
 #        --ok-label OK --radiolist "Program to run:" 15 20 5 "aliroot -b" \| on alieve \| off 2> $tempfile
 PROGRAM=aliroot #`cat $tempfile`
+
 # 
-rm -rf $RUNNUM"/"*QA.$RUNNUM*.root
 for filename in $CHUNKS; do
      filename=${filename//\"/} 
      CHUNK=`basename $filename | cut -d "." -f 1,2`
-     SUBCHUNK=${CHUNK#*.}
+     BEG=`expr index "$CHUNK" .`
+     BEG=`expr $BEG - 4`
+     SUBCHUNK=${CHUNK:$BEG}
      echo "Running QA for chunk $filename. Outputs will be stored in "$RUNNUM"/"$CHUNK".   $SUBCHUNK"
-     rm -rf   $RUNNUM"/"$CHUNK
+     [ -e $RUNNUM"/"$CHUNK ] && { rm -rf   $RUNNUM"/"$CHUNK ; }
      mkdir -p $RUNNUM"/"$CHUNK
+     rm $RUNNUM"/"*.QA.$RUNNUM.$SUBCHUNK.root 
+     rm $RUNNUM"/"QA.$SUBCHUNK.root 
      cd       $RUNNUM"/"$CHUNK
      $PROGRAM -q $ALICE_ROOT/test/cosmic/rawqa.C\(\"$filename\"\) 2>&1 | tee rawqa.log
      ls *.QA.$RUNNUM.0.root > $tempfile
@@ -79,7 +84,7 @@ for filename in $CHUNKS; do
         ln -si $in $ou
      done
      ln -si $CHUNK/QA.root QA.$SUBCHUNK.root
-     cd ../
+     cd ..
 done
 cd $RUNNUM
 $PROGRAM -b <<EOF
@@ -88,5 +93,6 @@ $PROGRAM -b <<EOF
 EOF
 rm -f tempo.txt
 
-$PROGRAM -b $ALICE_ROOT/test/cosmic/qasummary.C
+$PROGRAM -b -q $ALICE_ROOT/test/cosmic/qasummary.C 
+$PROGRAM -b  $ALICE_ROOT/test/QA/menuQA.C
 cd ..