Jpp  master_rocky
the software that should make you happy
JPMTAngularAcceptance.sh
Go to the documentation of this file.
1 #!/bin/zsh
2 #
3 # \author mdejong
4 #
5 script=${0##*/}
6 
7 # ------------------------------------------------------------------------------------------
8 #
9 # Utility script to generate PMT angular acceptance function from CSV table.
10 #
11 # ------------------------------------------------------------------------------------------
12 
13 if [ -z $JPP_DIR ]; then
14  echo "Variable JPP_DIR undefined."
15  exit
16 fi
17 
18 source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/null
19 
20 set_variable DEBUG 2
21 
22 if do_usage $*; then
23  usage "$script <input file>"
24 fi
25 
26 case $# in
27  1) set_variable INPUT_FILE $1;;
28 esac
29 
30 JPMTAngularAcceptance \
31  -f $INPUT_FILE \
32  -d $DEBUG