]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG1/CalibMacros/Pass0/mergeMakeOCDB.sh
97cd66c0f8192672a59d0a4affa21b4ca2c5ec26
[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 - run number
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 = run number
15 # $3 = OCDB path
16
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
20
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