Install macros
[u/mrichter/AliRoot.git] / TPC / Upgrade / macros / createLookup
1 #!/bin/bash
2
3 #1: space charge file
4 #2: output dir
5 #3: module
6
7 mapFile=$1
8 outDir=$2
9 mod=$3
10
11 module use /cvmfs/alice.gsi.de/modules
12 module purge
13 #module load ALICE/${vers}
14 module use -a /hera/alice/wiechula/software/modules
15 module load $mod
16
17 declare -i job=$SGE_TASK_ID
18 job=$job-1
19
20 mapName=$(basename $mapFile .root)
21 outFile=$outDir/${mapName}.$(printf "%03d" $job).root
22
23 root.exe -l -b -q $ALICE_ROOT/TPC/Upgrade/macros/{loadlibs.C,ConfigOCDB.C} $ALICE_ROOT/TPC/Upgrade/macros/CreateLookup.C\(\"$1\",\"$outFile\",$job\)