Scipt to run/submit laser runs analysis
authormarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 23 Nov 2009 11:58:51 +0000 (11:58 +0000)
committermarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 23 Nov 2009 11:58:51 +0000 (11:58 +0000)
TPC/scripts/submitLaserDump.sh [new file with mode: 0755]

diff --git a/TPC/scripts/submitLaserDump.sh b/TPC/scripts/submitLaserDump.sh
new file mode 100755 (executable)
index 0000000..f226651
--- /dev/null
@@ -0,0 +1,29 @@
+#!/bin/sh
+#
+# 1 argument      - queue name
+# $ALICE_ROOT/TPC/scripts/submitLaserDump.sh alice-t3_8h 
+
+bqueue=$1
+echo Queue name $bqueue
+mydir=`pwd`
+counterCalib=0
+counterESD=0
+rm runLaserESDMissing.list
+for adir in `cat runLaser.list`;do
+  if [ -s $mydir/$adir/esd.txt ]; then
+    let counterESD=counterESD+1
+  else
+    echo $adir >>runLaserESDMissing.list
+  fi;   
+  if [ -e $mydir/$adir/CalibObjectsTrain1.root ]; then
+    #ls -al $mydir/$adir/CalibObjectsTrain1.root
+    cd $mydir/$adir
+    bsub -q $bqueue aliroot -b -q CalibMacros/CalibLaser.C\($adir\) 
+    cd $mydir 
+    echo $adir
+    let counterCalib=counterCalib+1
+  fi;
+done;
+echo Laser calibration
+echo Number of runs with esd= $counterESD 
+echo Number of runs with calib= $counterCalib