#!/bin/bash #$ -l h_vmem=3000M,short=TRUE # Divert output to directory #$ -o /local/clusterErrorStudy/sgeout/ # Write error in same file #$ -j y gas="ar" field=$1 gain="85" ADCSens="300" C="1" nEvents=5000 filenum=1 source ~/.bashrc source ~/panda.sh echo gas:$gas field:$field gain:$gain root -l -b -q macro/tpc/FOPI/ClustErrStudy/runMC.C\($field\,\"$gas\"\,$gain\,\"/local/clusterErrorStudy\"\,$nEvents\) root -l -b -q macro/tpc/FOPI/ClustErrStudy/runDigi.C\(\"/local/clusterErrorStudy/Cosmics_FopiMC_$field$gas$gain\_${filenum}.mc.root\"\,$field\,\"$gas\"\,$gain\) root -l -b -q macro/tpc/FOPI/ClustErrStudy/runReco.C\(\"/local/clusterErrorStudy/Cosmics_FopiMC_$field$gas$gain\_${filenum}.raw.root\"\,$field\,\"$gas\"\,$gain,0,0,0,$ADCSens,$C\) python macro/tpc/FOPI/ClustErrStudy/analyzeClusterPulls.py -f /local/clusterErrorStudy/Cosmics_FopiMC_$field$gas$gain\_${filenum}_$ADCSens\_$C.reco.root #exit 0