3 # Script to merge objects coming out of the calibration train:
5 # 1 - directory on which to look for the files to be merged
11 # mergeMakeOCDB.sh /alice/cern.ch/user/a/aliprod/CPass0/output/ 120691 alien://folder=/alice/cern.ch/user/a/aliprod/CPass0/output
14 # $1 = directory where to perform the find
22 # if fourth argument given, its the default OCDB, otherwise use the default raw://
24 [[ -n $4 ]] && defaultOCDB=$4
26 if [ -f Run0_999999999_v3_s0.root ]; then
27 mkdir -p TPC/Calib/Correction
28 mv Run0_999999999_v3_s0.root TPC/Calib/Correction/
31 echo ">>>>>>> Running AliRoot to merge calib objects found in $path with pattern AliESDfriends_v1.root"
32 aliroot -l -b -q "merge.C(\"$path\",\"AliESDfriends_v1.root\")" 2>&1 | tee merge.log
33 mv syswatch.log syswatch_merge.log
35 echo ">>>>>>> Extract OCDB entries for run = $runNumber, to be stored in $outputOCDB"
36 aliroot -l -b -q "makeOCDB.C($runNumber,\"$outputOCDB\",\"$defaultOCDB\")" 2>&1 | tee ocdb.log
37 mv syswatch.log syswatch_makeOCDB.log