4 # --------------------------------------------------------------------------------------------
6 # Auxiliary script to plot chi2 evolution of acoustics-fit.sh
8 # --------------------------------------------------------------------------------------------
10 if [ -z $JPP_DIR ];
then
11 echo "Variable JPP_DIR undefined."
15 source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/
null
23 usage "$script <stage file> [YMIN YMAX]"
30 *) fatal
"Wrong number of arguments."
36 eval
awk \
'\/Processing stage\/,\/Elapsed\/ \{ print \$0 \}\' $INPUT_FILE \
40 | awk '{ printf
"%5d %8.3f\n", NR, $(NF) }
' > $GRAPH_TXT
46 if [[ "$YMIN" != "" && "$YMAX" != "" ]]; then
47 set_variable OPTION -y "$YMIN $YMAX"
57 -o ${${${INPUT_FILE}##*/}%%.*}.$FORMAT $BATCH
then usage $script< detector file >< detectorfile > nIf the range of floors is the first detector file is aligned to the second before the comparison nIn only modules within the given range of floors are used fi case set_variable RANGE $argv[3]
*fatal Wrong number of arguments esac set_variable GRAPH_TXT
fatal Invalid number of arguments esac let YMIN
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
do set_variable STRING_TXT awk
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR if do_usage *then usage $script[(input file)+] fi set_variable DEBUG set_variable WORKDIR TMPDIR
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable DEBUG set_variable WORKDIR
then usage $script< input_file >< detector_file > fi set_variable OUTPUT_DIR set_variable SELECTOR JDAQTimesliceL1 set_variable DEBUG case set_variable DEBUG
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
esac $JPP_BIN JLogger sh $LOGGER until pgrep JGetMessage</dev/null > dev null