#!/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 source ~/.bashrc cd $PANDAPATH #source ./build/config.sh source ./setenv.sh if [ ${filenum} -ge 1001 ] then field="65" gas="ar83" fi if [ ${filenum} -ge 1006 ] then field="86" gas="ar83" fi if [ ${filenum} -ge 1011 ] then field="100" gas="ar83" fi if [ ${filenum} -ge 1016 ] then field="65" gas="ar85" fi if [ ${filenum} -ge 1021 ] then field="86" gas="ar85" fi if [ ${filenum} -ge 1026 ] then field="100" gas="ar85" fi if [ ${filenum} -ge 1031 ] then field="65" gas="ar81" fi if [ ${filenum} -ge 1036 ] then field="86" gas="ar81" fi if [ ${filenum} -ge 1041 ] then field="100" gas="ar81" fi if [ ${filenum} -ge 1201 ] then field="100" gas="ne70" fi if [ ${filenum} -ge 1206 ] then field="100" gas="ne71" fi if [ ${filenum} -ge 1221 ] then field="100" gas="ne72" fi if [ ${filenum} -ge 1226 ] then field="100" gas="ne73" fi if [ ${filenum} -ge 1261 ] then field="100" gas="ne74" fi if [ ${filenum} -ge 1266 ] then field="100" gas="ne75" fi if [ ${filenum} -ge 1271 ] then field="100" gas="ne76" fi if [ ${filenum} -ge 1301 ] then field="100" gas="ne74" fi if [ ${filenum} -ge 2232 ] then field="100" gas="ar83" fi if [ ${filenum} -ge 2247 ] then field="100" gas="ar84" fi if [ ${filenum} -ge 2249 ] then field="100" gas="ar86" fi if [ ${filenum} -ge 2263 ] then field="100" gas="ne72" fi if [ ${filenum} -ge 2274 ] then field="100" gas="ne73" fi if [ ${filenum} -ge 2278 ] then field="100" gas="ne74" fi if [ ${filenum} -ge 2280 ] then field="100" gas="ne75" fi if [ ${filenum} -ge 2283 ] then field="100" gas="ne76" fi if [ ${filenum} -ge 2287 ] then field="100" gas="ne76" fi if [ ${filenum} -ge 2290 ] then field="100" gas="ne72" fi if [ ${filenum} -ge 2296 ] then field="100" gas="ne73" fi if [ ${filenum} -ge 2299] then field="100" gas="ne74" fi if [ ${filenum} -ge 2302 ] then field="100" gas="ne75" fi if [ ${filenum} -ge 2400 ] then field="100" gas="ne74" fi if [ ${filenum} -ge 2451 ] then field="100" gas="ne73" fi if [ ${filenum} -ge 2464 ] then field="100" gas="ne72" fi if [ ${filenum} -ge 2620 ] then field="100" gas="ne70" fi if [ ${filenum} -ge 3701 ] then field="85" gas="ar81" fi if [ ${filenum} -ge 3704 ] then field="86" gas="ar81" fi if [ ${filenum} -ge 3721 ] then field="65" gas="ar81" fi if [ ${filenum} -ge 3744 ] then field="65" gas="ar80" fi if [ ${filenum} -ge 3774 ] then field="86" gas="ar82" fi if [ ${filenum} -ge 3814 ] then field="86" gas="ar83" fi if [ ${filenum} -ge 3843 ] then field="86" gas="ar84" fi if [ ${filenum} -ge 3883 ] then field="86" gas="ar85" fi if [ ${filenum} -ge 3912 ] then field="86" gas="ar86" fi if [ ${filenum} -ge 3980 ] then field="86" gas="ar81" fi if [ ${filenum} -ge 4012] then field="96" gas="ne70" fi if [ ${filenum} -ge 4023] then field="90" gas="ne70" fi if [ ${filenum} -ge 4066] then field="90" gas="ne71" fi if [ ${filenum} -ge 4101] then field="90" gas="ne72" fi if [ ${filenum} -ge 4141] then field="90" gas="ne73" fi echo $start $stop $num $filenum $field $gas 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/runRecoFOPI_batch_standalone_mb.C\(\"${path}\"\,\"./outfiles/parts/\",${field},\"${gas}\",1,1,${stop},${start},${num}\) 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