Commit a550dcef authored by Emilio Depero's avatar Emilio Depero
Browse files

script to merge run

parent e229ff36
if [ $# -lt 2 ]; then
echo "INVALID PARAMETER NUMBER: $#"
echo "usage: ./mergerun <1-run> <2-run> <3-run> ..."
exit
fi
#build outname
export outname="Analysed"
for file in $@;
do
filename=$(basename $file)
run=$(echo "$filename" | grep -o -E '[0-9]+')
outname=$outname"-$run"
done
outname=$outname".root"
echo "creating file with name $outname"
hadd -k -j $outname $@
echo "FINISHED MERGING"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment