]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG1/CalibMacros/Pass0/mergeMakeOCDB.sh
cpass0 code update (see README for more info)
[u/mrichter/AliRoot.git] / PWG1 / CalibMacros / Pass0 / mergeMakeOCDB.sh
CommitLineData
674af238 1#!/bin/bash
2
3# Script to merge objects coming out of the calibration train:
4# Arguments:
5# 1 - directory on which to look for the files to be merged
a21c8945 6# 2 - pattern
674af238 7# 3 - OCDB output path
8
9# example:
e4ed8435 10# mergeMakeOCDB.sh /alice/cern.ch/user/a/aliprod/Pass0/output/ 000120691 alien://folder=/alice/cern.ch/user/a/aliprod/Pass0/output
674af238 11
12#ALIEN setting
13# $1 = directory where to perform the find
a21c8945 14# $2 = pattern
674af238 15# $3 = OCDB path
16
a21c8945 17if [ -f Run0_999999999_v3_s0.root ]; then
18 mkdir -p TPC/Calib/Correction
19 mv Run0_999999999_v3_s0.root TPC/Calib/Correction/
20fi
21
674af238 22echo ">>>>>>> Running AliRoot to merge calib objects found in $1 with pattern AliESDfriends_v1.root"
23aliroot -l -b -q merge.C\(\"$1\",\"AliESDfriends_v1.root\"\) 2>&1 | tee merge.log
604d265e 24mv syswatch.log syswatch_merge.log
674af238 25
26echo ">>>>>>> Extract OCDB entries for run = $2, to be stored in $3"
27aliroot -l -b -q makeOCDB.C\(\"$2\",\"$3\"\) 2>&1 | tee ocdb.log
604d265e 28mv syswatch.log syswatch_makeOCDB.log