Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2026-07-16 08:11:27

0001 #! /bin/bash
0002 
0003 if [ "$#" -ne 1 ]; then
0004     echo "Usage: $0 <figpdfdir>"
0005     exit 1
0006 fi
0007 # the directory of the fit pdfs to be compiled
0008 figpdfdir=$1
0009 
0010 shopt -s nullglob
0011 fitpdfs=("${figpdfdir}"/*/RDataframeToRoofit_*_mass.pdf)
0012 
0013 if ((${#fitpdfs[@]} == 0)); then
0014     echo "No RDataframeToRoofit_*_mass.pdf files found in ${figpdfdir}"
0015     exit 1
0016 fi
0017 
0018 echo "Compiling ${#fitpdfs[@]} fit pdfs into ${figpdfdir}/allfit.pdf"
0019 gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=${figpdfdir}/allfit.pdf -dBATCH "${fitpdfs[@]}"