2 # marian.ivanov@cern.ch
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
10 # Notice -OCDB missing is indicated only for GRP
11 # -in next version - query from the alien
20 for 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
26 echo 0000$adir >>rawPresent.list
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
33 echo $adir >>esdPresent.list
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
40 echo $adir >>ocdbPresent.list
48 for adir in `cat run.list`; do
50 nesd=`cat esd.txt.Good| grep -c root`
51 if [ $nesd -gt 0 ] ; then
52 ncalib=`find $wdir/$adir/ | grep -c CalibObjects`
53 if [ $ncalib -lt 1 ] ; then
55 echo $adir >> $wdir/runMissing.list