fix a but where ESD files would not be moved to the final location upon failure of...
authormkrzewic <mkrzewic@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 25 Sep 2013 09:23:36 +0000 (09:23 +0000)
committermkrzewic <mkrzewic@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 25 Sep 2013 09:23:36 +0000 (09:23 +0000)
PWGPP/CalibMacros/CPass1/runCPass1.sh

index f5cdd9a..590ba71 100755 (executable)
@@ -140,6 +140,8 @@ if [ $exitcode -ne 0 ]; then
     exit $exitcode
 fi
 
+mv AliESDs.root ../AliESDs_Barrel.root
+mv AliESDfriends.root ../AliESDfriends_Barrel.root
 mv syswatch.log ../syswatch_rec_Barrel.log
 
 echo "* Running AliRoot to make calibration..."
@@ -153,6 +155,7 @@ if [ $exitcode -ne 0 ]; then
     exit $exitcode
 fi
 
+mv AliESDfriends_v1.root ../
 mv syswatch.log ../syswatch_calib.log
 
 if [ -f QAtrain_duo.C ]; then
@@ -173,10 +176,7 @@ if [ -f QAtrain_duo.C ]; then
     done
 fi
 
-mv AliESDs.root ../AliESDs_Barrel.root
-mv AliESDfriends.root ../AliESDfriends_Barrel.root
-
-for file in AliESDfriends_v1.root QAresults_barrel.root EventStat_temp_barrel.root AODtpITS.root; do
+for file in QAresults_barrel.root EventStat_temp_barrel.root AODtpITS.root; do
     if [ -f "$file" ]; then
         mv "$file" ../
     fi