XIAEventBuilder/batch_to2root

30 lines
515 B
Plaintext
Raw Normal View History

2022-02-02 16:37:27 -05:00
#!/bin/bash
if [ $# -eq 0 ] || [ $1 == "-help" ]; then
echo "$./process_run [saveFile] [TimeWindow] [evtDir]"
echo ""
exit 1
fi;
SaveFile=$1
DIR=$(pwd)
TIMEWINDOW=100
DATA_DIR=data/data/$3
2022-02-02 16:37:27 -05:00
2022-03-10 13:59:06 -05:00
fileList=$(\ls $DIR/${DATA_DIR}/*.evt.to.fsu.100)
numFile=$(\ls -1 $DIR/${DATA_DIR}/*.evt.to.fsu.100 | wc -l)
2022-02-02 16:37:27 -05:00
echo "##############################################"
echo "number of files : "$numFile
echo "##############################################"
./armory/to2root $SaveFile 100 $fileList
exit 0