8 # ------------------------------------------------------------------------------------------
10 # Utility script to create histogram of particle light pattern
12 # ------------------------------------------------------------------------------------------
16 while getopts
f:h option
24 echo "Please pass data file."
28 if [ -
z $JPP_DIR ];
then
29 echo "Variable JPP_DIR undefined."
34 PARTICLES_RE=
"J[-_[:digit:]]*?s"
42 source $JPP_DIR/setenv.sh $JPP_DIR
then fatal Wrong number of arguments fi JConvertDetectorFormat a o
then JFileTuna f $INPUT_FILE
&set_variable OUTPUT_FILE
then usage $script[energy[distance[z of PMT]]] fi case set_variable z
then fatal The output file must have the wildcard in the e g root fi eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
then JHobbit a $DETECTOR f