3 # Script to merge objects coming out of the calibration train:
5 # 1 - directory on which to look for the files to be merged
10 # mergeMakeOCDB.sh /alice/cern.ch/user/a/aliprod/Pass0/output/ 000120691 alien://folder=/alice/cern.ch/user/a/aliprod/Pass0/output
13 # $1 = directory where to perform the find
17 echo ">>>>>>> Running AliRoot to merge calib objects found in $1 with pattern AliESDfriends_v1.root"
18 aliroot -l -b -q merge.C\(\"$1\",\"AliESDfriends_v1.root\"\) 2>&1 | tee merge.log
19 mv syswatch.log syswatch_merge.log
21 echo ">>>>>>> Extract OCDB entries for run = $2, to be stored in $3"
22 aliroot -l -b -q makeOCDB.C\(\"$2\",\"$3\"\) 2>&1 | tee ocdb.log
23 mv syswatch.log syswatch_makeOCDB.log