]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
find in the alien catalog runs now over every year
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 11 Mar 2010 17:47:22 +0000 (17:47 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 11 Mar 2010 17:47:22 +0000 (17:47 +0000)
prod/cosmic/rawqa.sh

index dc876bb5097f3608330d4421a2885687ddb235f0..ee7be0855bb447dabc142fa59aca061b71e406fb 100755 (executable)
@@ -12,7 +12,6 @@
 
 # SET THE FOLLOWING PARAMETERS IF NEEDED: 
 # ---------------------------------------
-export YEAR=10
 # ---------------------------------------
 kill -9 `ps | grep aliroot | awk '{print $1}'`
 
@@ -33,9 +32,8 @@ VERSION=1.0
 TITLE="Standalone QA checking of Grid rawdata chunks. v$VERSION"
 
 # Retrieve the list of chunks from AliEn.......
-export BASEDIR="/alice/data/20"$YEAR/LHC${YEAR}*
-PATTERN="$RUNNUM/raw/${YEAR}*${RUNNUM}*.root"
-#aliensh -c "gbbox find $BASEDIR $PATTERN" | head --lines=-1 > collection.tmp
+export BASEDIR="/alice/data/20*"
+PATTERN="$RUNNUM/raw/*${RUNNUM}*.root"
 aliensh -c "gbbox find $BASEDIR $PATTERN" > collection.tmp
 
 [ `ls -al collection.tmp | awk '{print $5}'` -eq 0 ] && { echo "No chunks found for the given run"; exit 1; }
@@ -66,6 +64,7 @@ PROGRAM=aliroot #`cat $tempfile`
 for filename in $CHUNKS; do
      CHUNK=`basename $filename | cut -d "." -f 1,2`
      BEG=`expr index "$CHUNK" .`
+     echo !!!!!!!!!!!!! $BEG
      BEG=`expr $BEG - 4`
      SUBCHUNK=${CHUNK:$BEG}
      echo "Running QA for chunk $filename. Outputs will be stored in "$RUNNUM"/"$CHUNK".   $SUBCHUNK"