Skip to content

Instantly share code, notes, and snippets.

@pgjones
Created March 14, 2012 15:45
Show Gist options
  • Save pgjones/2037380 to your computer and use it in GitHub Desktop.
Save pgjones/2037380 to your computer and use it in GitHub Desktop.
Useful batch script file
#!/bin/bash
CODEFOLDER=/home/jonesph/MCComparison/Electrons/RAT
DATAFOLDER=/data/snoplus/jonesph/MCComparisonData
TEMPFOLDER=$TMPDIR
source /home/jonesph/snoplusenv
file[1]=RAT5MeV
cd $TEMPFOLDER
for index in 1
do
cp ${CODEFOLDER}/${file[index]}.mac .
rat ${file[index]}.mac
cp *.log ${DATAFOLDER}/${file[index]}.log
cp *.root ${DATAFOLDER}/
rm *.log
rm *.root
done
cd $DATAFOLDER
root .X ${CODEFOLDER}/Extract.c
echo done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment