ANASEN_analysis/ProcessRun.sh

28 lines
656 B
Bash
Raw Normal View History

#!/bin/bash
if [ "$#" -ne 2 ]; then
echo "Usage: $0 runID timeWindow_ns"
echo "Exiting..."
exit 1
fi
runID=$1
timeWindow=$2
2024-04-15 13:29:57 -04:00
rawFolder=/home/tandem/Desktop/analysis/data
rootFolder=/home/tandem/Desktop/analysis/data/root_data
2024-04-15 13:29:57 -04:00
rsync -a splitpole@128.186.111.223:/media/nvmeData/ANASEN27Alap/*.fsu /home/tandem/Desktop/analysis/data
2024-04-15 13:29:57 -04:00
fileList=`\ls -1 ${rawFolder}/Run_${runID}_*.fsu`
./EventBuilder ${timeWindow} 0 0 10000000 ${fileList}
2024-03-22 18:45:13 -04:00
outFile=${rawFolder}/*${runID}*${timeWindow}.root
mv -vf ${outFile} ${rootFolder}/.
2024-03-22 18:45:13 -04:00
./Mapper ${rootFolder}/*${runID}*${timeWindow}.root
2024-04-15 13:29:57 -04:00
root "processRun.C(\"${rootFolder}/Run_${runID}_mapped.root\")"