File indexing completed on 2025-01-17 09:03:00
0001
0002
0003 set -e
0004
0005
0006 if [ -z "$DETECTOR_PATH" ]; then
0007 echo "ERROR: source environ.sh first"
0008 exit 1
0009 fi
0010
0011
0012 function usage {
0013 echo """
0014 USAGE:
0015 $0 [CONFIGURATION]
0016
0017 CONFIGURATIONS: (one required)
0018 -e default EPIC detector
0019 -a arches (mRICH)
0020 -b brycecanyon (pfRICH)
0021 -c <compact_file>
0022 custom compact file
0023
0024 For -e,-a,-b, compact files are assumed to be at
0025 \$DETECTOR_PATH = $DETECTOR_PATH
0026 (rendered by build.sh epic)
0027
0028 Use grep to search the output
0029
0030 """
0031 exit 2
0032 }
0033 if [ $
0034
0035
0036 while getopts "heabc:" opt; do
0037 case $opt in
0038 h|\?) usage ;;
0039 e) compactFile="${DETECTOR_PATH}/${DETECTOR}.xml" ;;
0040 a) compactFile="${DETECTOR_PATH}/${DETECTOR}_arches.xml" ;;
0041 b) compactFile="${DETECTOR_PATH}/${DETECTOR}_brycecanyon.xml" ;;
0042 c) compactFile=$OPTARG ;;
0043 esac
0044 done
0045 echo """
0046 compactFile = $compactFile
0047 """
0048 if [ -z "$compactFile" ]; then
0049 echo "ERROR: specify CONFIGURATION"
0050 usage
0051 exit 1
0052 fi
0053
0054
0055 npdet_info dump $compactFile