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
24 usage "$script <stage file> <stage> [YMIN YMAX]"
32 *) fatal
"Wrong number of arguments."
41 eval awk \
'\/Processing stage $STAGE\/,\/Elapsed\/ \{ print \$0 \}\' $INPUT_FILE \
45 | awk '{ printf
"%5d %8.3f\n", NR, $(NF) }
' > $GRAPH_TXT
49 let STAGE="-1 * $STAGE"
51 egrep -v "(Processing|Elapsed)" $INPUT_FILE \
52 | awk '{ printf
"%5d %8.3f\n", NR, $(NF) }
' > $GRAPH_TXT
59 if [[ "$YMIN" != "" && "$YMAX" != "" ]]; then
60 set_variable OPTION -y "$YMIN $YMAX"
70 -o stage-${STAGE}.$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 fi case set_variable RANGE $argv[3]
then usage $script< detector file >< inputfile > nUtility script to create PDF and CDF of transition time distribution fi case set_variable WORKDIR
fatal Invalid number of arguments esac let YMIN
*fatal Wrong number of arguments esac set_variable GRAPH_TXT
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
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
then eval awk Processing stage $STAGE
esac $JPP_BIN JLogger sh $LOGGER until pgrep JGetMessage</dev/null > dev null