2024-01-27 00:57:57 -05:00
|
|
|
#!/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-01-27 00:57:57 -05:00
|
|
|
|
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-01-27 00:57:57 -05:00
|
|
|
|
2024-04-15 13:29:57 -04:00
|
|
|
fileList=`\ls -1 ${rawFolder}/Run_${runID}_*.fsu`
|
|
|
|
|
|
|
|
./EventBuilder ${timeWindow} 0 0 10000000 ${fileList}
|
2024-01-27 00:57:57 -05:00
|
|
|
|
2024-03-22 18:45:13 -04:00
|
|
|
outFile=${rawFolder}/*${runID}*${timeWindow}.root
|
2024-01-27 00:57:57 -05:00
|
|
|
|
|
|
|
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\")"
|