]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/global/fladevMacros/esdToFlat/command_list.sh
updated macros, fix in AliFlatTrack::Fill : padRow now the same as in normal ESD
[u/mrichter/AliRoot.git] / HLT / global / fladevMacros / esdToFlat / command_list.sh
1 #! /bin/bash
2 if [ $# -lt 1 ]
3     then
4         fileList=$PWD
5     else
6         fileList=$1
7     fi
8 if [ $# -lt 2 ]
9     then
10         useFriends=0
11     else
12         useFriends=$2
13     fi
14 if [ $# -lt 3 ]
15     then
16         useHLTtree=1
17     else
18         useHLTtree=$3
19     fi
20 if [ $# -lt 4 ]
21     then
22         verbose=0
23     else
24         verbose=$4
25     fi
26     
27     iFile=1
28 for file in ${fileList}*/AliESDs.root
29 do
30   mkdir ${iFile}
31   replace="AliESDfriends"
32   fileFriends="${file/AliESDs/$replace}"
33   aliroot -b -l -q $ALICE_ROOT/HLT/global/LoadLibs.C $ALICE_ROOT/HLT/global/FlatESDConverter.C++'("'${file}'", "'${fileFriends}'", "'${iFile}'/out.dat",'${useFriends}', '${useHLTtree}','${verbose}')' 2>&1| tee convert.log -a
34   cat ${iFile}/out.dat >> outFlatESD.dat
35   mv syswatch.log ${iFile}/syswatch.log
36         if [ $iFile -eq 1 ]
37                 then
38                         cp 1/syswatch.log syswatch_merged.log
39                 else
40                         sed 1d $iFile/syswatch.log >> syswatch_merged.log
41         fi
42   iFile=$((iFile+1))
43 done