To run phast in farm:
$sbatch script.sh
script.sh should look like:
#!/bin/bash #
#
#SBATCH -p lipq
#SBATCH --mem-per-cpu=3G
#INPUT=/home/comp/marcia/phast
#OUTPUT=hist.root
#
# Load environment
module load root/6.18.04
cd phast
./phast -u 1 -N 10 /lstore/comp/marcia/mDST.root -h ../hist.root
where the number after -u should be your userevent number, and here was used -N 10 to run just 10 events to test if the script runs well. As the miniDST is stored in /lstore there is no need to pass it in the INPUT, if it is stored in your home you should pass it.