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