Invert US<->LS in trigger response according to hardware (Valerie)
[u/mrichter/AliRoot.git] / TPC / macros / testTPC / action.sh
CommitLineData
8b35d234 1#!/bin/bash
2#aguments
3#1 TString jobID,
4#2 TString inputData
5#3 TString outputDir
6#4 TString action
7
8echo $1
9echo $2
10echo $3
11echo $4
12
13
c6d9a3a0 14olddir=`pwd`
15
8b35d234 16mkdir -p /tmp/$USER/$1
c6d9a3a0 17mkdir -p /tmp/$USER/$1/$4
18
19cd /tmp/$USER/$1/$4
8b35d234 20which xrdcp
21
c6d9a3a0 22xrdcp -np $2 data.root
8b35d234 23
24echo aliroot -b -q $ALICE_ROOT/TPC/macros/testTPC/$4.C
25
c6d9a3a0 26aliroot -b -q $ALICE_ROOT/TPC/macros/testTPC/$4.C
27echo END ACTION $1
28
497c5329 29rm data.root
c6d9a3a0 30ls -al
31echo CREATING ZIP FILE
32zip -n root $4 *.root
33echo COPING DATA
8b35d234 34for name in `ls *.root`; do
c6d9a3a0 35 echo xrdcp $name $3/$4/$name
36 xrdcp -np $name $3/$4/$name
8b35d234 37done
c6d9a3a0 38echo xrdcp -np $4.zip $3/$4.zip
39 xrdcp -np $4.zip $3/$4.zip
8b35d234 40
41
c6d9a3a0 42cd $olddir
8b35d234 43