4 if [ -z $JPP_DIR ];
then
5 echo "Variable JPP_DIR undefined."
9 source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/
null
16 usage "$script <detector file> (input file)+ <output file>"\
17 "\nAuxiliary script to process acoustic data for dynamic position calibration."\
18 "\nInput files correspond to the output of JAcousticsEventBuilder[.sh]."
22 fatal
"Wrong number of arguments."
29 eval `JPrintDetector -
a $DETECTOR -O IDENTIFIER`
31 source JAcoustics.sh $DETECTOR_ID
39 -
f "$INPUT_FILES[*]" \
44 -@
$WORKDIR/acoustics_fit_parameters.txt \
*set_variable DETECTOR_ID $argv[1] set_array RUNS $argv[2,-2]
o $QUALITY_ROOT d $DEBUG!JPlot1D f
V(JDAQEvent-JTriggerReprocessor)*1.0/(JDAQEvent+1.0e-10)
then timer_start(JRandomTimesliceWriter-a ${DETECTOR}-o ${PIPE}-n ${NUMBER_OF_SLICES}-P ${PMT_FILE}-d ${DEBUG}-S ${SEED}-B"$BACKGROUND_HZ"-N"$RECYCLING"--!&&for((i=0;$i!=10;++i));do;echo 'EOF' > $PIPE;usleep 100000;done &&rm-f $PIPE)&JTimesliceReprocessor-a $
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
do set_variable OUTPUT_DIRECTORY $WORKDIR T
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable DEBUG set_variable WORKDIR
then JConvertDetectorFormat a $DETECTOR[1] o
do sput $STRING $FLOOR sget MODULE INPUT_FILES
&set_variable OUTPUT_FILE
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
then set_variable MODULE getModule a $DETECTOR L $STRING $FLOOR JEditDetector a $DETECTOR M $MODULE add $X o $DETECTOR else echo No update of detector $DETECTOR
then usage $script< input_file >< detector_file > fi set_variable OUTPUT_DIR set_variable SELECTOR JDAQTimesliceL1 set_variable DEBUG case set_variable DEBUG
esac $JPP_BIN JLogger sh $LOGGER until pgrep JGetMessage</dev/null > dev null