]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
corrections
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 18 Jul 2008 14:14:22 +0000 (14:14 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 18 Jul 2008 14:14:22 +0000 (14:14 +0000)
test/cosmic/rawqa.C
test/cosmic/rawqa.sh

index 2904c019d3050b63074cadd385fe52a800e1a58c..773ea1be3afe6ca5f64b34ec65cf23f04469bbf4 100644 (file)
@@ -96,7 +96,7 @@ void rawqa(const char * filename)
            break ; 
        }
                if ( !detectors.IsNull() ) {
-         qas->SetMaxEvents(1) ; 
+         //qas->SetMaxEvents(1) ; 
          detectorsW = qas.Run(detectors, rawReader) ;
          qas.Reset() ;
                } else {
@@ -118,7 +118,7 @@ void rawqa(const char * filename)
          if ( qa) {
            for (Int_t index = 0 ; index < AliQA::kNDET ; index++)
              if (detectorsW.Contains(AliQA::GetDetName(index))) 
-               qa->Show((AliQA::DETECTORINDEX_t)index) ;
+               qa->Show((AliQA::GetDetIndex(AliQA::GetDetName(index)))) ;
          } else {
            printf("ERROR: %s not found in %s !", AliQA::GetQAName(), AliQA::GetQAResultFileName()) ; 
          }
index d70187e5a6a1e6dbc0b230b931bdde98910df93f..c013845ee20727b8ef74797ea4b85f13dca0c93c 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
@@ -23,6 +22,7 @@ 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; }
+echo 12==========================  $LD_LIBRARY_PATH
 alien-token-init 
 
 [ ! "$?" -eq "0" ] && { echo "FAILED: Token creation failed"; exit 1; }
@@ -59,15 +59,17 @@ 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#*.}
      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
@@ -88,5 +90,5 @@ $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 2>&1 | tee rawqasummary.log
 cd ..