d1513470 |
1 | #!/bin/sh |
2 | # 1 argument - qname |
3 | |
4 | # marian.ivanov@cern.ch |
5 | # filter corrupted files |
6 | # batch farm internaly used |
7 | # |
8 | # Assumption - the data organize in the Workspace - predefined directory structure |
9 | # - each directory contain the list of files |
10 | # - raw.txt and esd.txt |
11 | # Output: |
12 | # esd.txt => esd.txt.Good and esd.txt.Bad |
13 | # eaw.txt -> raw.txt.Good and raw.txt.Bad |
14 | |
15 | qname=$1 |
16 | mydir=`pwd` |
17 | for adir in `cat run.list`; do |
18 | cd $adir |
acd4c700 |
19 | up=`cat raw.txt | grep -c .root` |
20 | if [ $up -gt 0 ] ; then |
21 | echo bsub -q $qname aliroot -b -q $ALICE_ROOT/TPC/macros/filterRAW.C |
22 | bsub -q $qname aliroot -b -q $ALICE_ROOT/TPC/macros/filterRAW.C |
23 | fi; |
d1513470 |
24 | cd $mydir |
84ddafc8 |
25 | done |
26 | |
d1513470 |
27 | mydir=`pwd` |
28 | for adir in `cat run.list`; do |
84ddafc8 |
29 | cd $adir |
acd4c700 |
30 | up=`cat esd.txt | grep -c .root` |
31 | if [ $up -gt 1 ] ; then |
32 | echo bsub -q $qname aliroot -b -q $ALICE_ROOT/TPC/macros/filterESD.C |
33 | bsub -q $qname aliroot -b -q $ALICE_ROOT/TPC/macros/filterESD.C |
34 | fi; |
84ddafc8 |
35 | cd $mydir |
36 | done |
37 | |
d1513470 |
38 | |