Adding scripts for filtering
[u/mrichter/AliRoot.git] / TPC / scripts / filterCorrupted.sh
CommitLineData
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
15qname=$1
16mydir=`pwd`
17for adir in `cat run.list`; do
18 cd $adir
19 bsub -q $qname aliroot -b -q $ALICE_ROOT/TPC/macros/filterRAW.C
20 cd $mydir
21 done;
22done;
23#
24mydir=`pwd`
25for adir in `cat run.list`; do
26cd $adir
27echo bsub -q $qname aliroot -b -q $ALICE_ROOT/TPC/macros/filterESD.C
28bsub -q $qname aliroot -b -q $ALICE_ROOT/TPC/macros/filterESD.C
29cd $mydir
30done;
31
32