#!/bin/bash #$ -l h_vmem=1000M,short=TRUE # Divert output to directory #$ -o /nfs/nas/data/panda/tpc/SIM/prototype/bergerm/sgeout/ # Write error in same file #$ -j y # ~/.bashrc cd $PANDAPATH #source ./build/config.sh ./setenv.sh echo $start $stop $num $filenum $field $gas $outpath $gaincorr $reclust if [ ${filenum} -ge 1600 ] then # path=/nfs/hicran/data/tpc/fopi/2011/decoded/runC_${filenum}.lmd_decoded.root echo $path root -l -b -q macro/tpc/FOPI/runReco_mb.C\(${filenum}\,\"${outpath}\",${reclust},${stop},${start},1,1,${num},${gaincorr}\) else path=outfiles/MC/Cosmics_FopiMC_${field}${gas}_${filenum}.raw.root root -l -b -q macro/tpc/FOPI/runRecoFOPI_MC_mb.C\(\"${path}\"\,${field},\"${gas}\",1,1,${stop},${start},${num}\) fi #exit 0