3 PACKAGES="ESD ANALYSIS AnalysisCheck"
4 DETECTORS="PHOS EMCal PMD HMPID T0 MUON TOF VZERO"
5 LOGFILE=`echo $0 | sed -e 's/sh/log/'`
8 test=`cat CheckESD.log | grep "$2 done"`
9 if [ "$test" = "" ]; then
20 test=`cat CheckESD.log | grep "$2 Summary Report: OK"`
21 if [ "$test" = "" ]; then
31 if [ -e $LOGFILE ]; then
34 echo $0 LOG > $LOGFILE
37 for pack in $PACKAGES; do
38 make $pack.par >> $currentDir/$LOGFILE
40 # copy the par file to the working directory
42 for pack in $PACKAGES; do
44 mv $ALICE_ROOT/$pack.par .
46 cp $ALICE_ROOT/ESDCheck/ana.C .
48 if [ ! -e "AliESDs.root" ]; then
49 echo File AliESDs.root not found >> $LOGFILE
52 root -b -q ana.C >> $LOGFILE 2>&1
53 #test function for parsing log file
56 for pack in $PACKAGES; do
57 testpack creating $pack.par
58 testpack loading lib$pack
62 for det in $DETECTORS; do
66 if [ "$error" > "0" ]; then
67 echo --------------- $error errors signaled
69 echo +++++++++++++++ All OK