# Script to merge objects coming out of the calibration train:
# Arguments:
# 1 - directory on which to look for the files to be merged
-# 2 - pattern
+# 2 - run number
# 3 - OCDB output path
# example:
-# mergeMakeOCDB.sh /alice/cern.ch/user/j/jotwinow/Pass0/output/ 000120691 alien://folder=/alice/cern.ch/user/j/jotwinow/Pass0/output
+# mergeMakeOCDB.sh /alice/cern.ch/user/a/aliprod/Pass0/output/ 000120691 alien://folder=/alice/cern.ch/user/a/aliprod/Pass0/output
#ALIEN setting
# $1 = directory where to perform the find
-# $2 = pattern
+# $2 = run number
# $3 = OCDB path
echo ">>>>>>> Running AliRoot to merge calib objects found in $1 with pattern AliESDfriends_v1.root"
# runPass0.sh raw.root 50 104892
#ALIEN setting
-entries=500
# $1 = raw input filename
runnum=`echo $1 | cut -d "/" -f 6`
echo
echo ">>>>>>> Running AliRoot to reconstruct $1. Run number is $runnum..."
-aliroot -l -b -q recPass0.C\(\"alien://$1\",$entries\) 2>&1 | tee rec.log
+aliroot -l -b -q recPass0.C\(\"alien://$1\"\) 2>&1 | tee rec.log
mv syswatch.log syswatch_rec.log
echo ">>>>>>> Running AliRoot to make calibration..."