set defaults for PbPb at LHC
[u/mrichter/AliRoot.git] / TPC / scripts / filterMissing.sh
CommitLineData
d1513470 1#
2# marian.ivanov@cern.ch
3#
4# Create lists of missing runs
5# Expected the data follow given Workspace structure
6# input : run.list - list of runs of interest
7# output: rawMissing.list
8# esdMissing.list
9# ocdbMissing.list
10# Notice -OCDB missing is indicated only for GRP
11# -in next version - query from the alien
12
13rm rawMissing.list
14rm esdMissing.list
15rm ocdbMissing.list
16rm rawPresent.list
17rm esdPresent.list
18rm ocdPresent.list
19
20for adir in `cat run.list`; do
21 nfiles=`cat raw$adir.txt | grep -c .root`
22 if [ $nfiles -lt 2 ] ; then
23 #echo RAW: 0000$adir $nfiles
24 echo 0000$adir >>rawMissing.list
25 else
26 echo 0000$adir >>rawPresent.list
27 fi
28 nfilesReco=`cat esd$adir.txt | grep -c .root`
29 if [ $nfilesReco -lt 2 ] ; then
30 #echo ESD: $adir $nfilesReco
31 echo $adir >>esdMissing.list
32 else
33 echo $adir >>esdPresent.list
34 fi
35 nfilesOCDB=`cat grp.list | grep $adir| grep -c root`
36 if [ $nfilesOCDB -lt 1 ] ; then
37 #echo OCDB: $adir $nfilesOCDB
38 echo $adir >>ocdbMissing.list
39 else
40 echo $adir >>ocdbPresent.list
41 fi
42done;