- aliroot $opts $ALICE_ROOT/PWG2/FORWARD/analysis2/Pass1.C\(\".\",$nev,$af\) \
- $redir
- rm -f event_stat.root EventStat_temp.root outputs_valid
- if test ! -f AnalysisResults.root || test ! -f AliAODs.root ; then
- echo "Analysis failed"
- exit 1
+ echo "Running aliroot ${opts} ${opts1} ${ana}/${pass1}\(\".\",$nev,$proof,$mc\) $redir"
+ if test $batch -gt 0 ; then
+ aliroot $opts $opts1 ${ana}/${pass1}\(\".\",$nev,$proof,$mc\) 2>&1 | tee ${base}.log
+ else
+ aliroot $opts $opts1 ${ana}/${pass1}\(\".\",$nev,$proof,$mc\)
+ fi
+ fail=$?
+ rm -f outputs_valid \
+ `printf %09d.stat $nev`
+ if test $fail -gt 0 ; then
+ echo "Return value $fail not 0" ; exit $fail
+ fi
+ if test ! -f ${output} ; then
+ echo "$output not made" ; exit 1;
+ fi
+ if test ! -f AliAODs.root ; then
+ echo "No AOD creates" ; exit 1;