9 if [ -z $JPP_DIR ]; 
then 
   10     echo "Variable JPP_DIR undefined." 
   14 source $JPP_DIR/setenv.sh $JPP_DIR
 
   27     usage "$script <detector file> (run[-run])+"\
 
   28           "\nAuxiliary script to download acoustic data from database and to process them through the event builder." 
   35     fatal 
"Wrong number of arguments." 
   40 eval `JPrintDetector -
a $DETECTOR -O IDENTIFIER`
 
   43 if [[ ! -
f $AHRS_CALIBRATION_FILE ]]; 
then 
   47         -
o $AHRS_CALIBRATION_FILE      \
 
   59         echo -
n "Writing $INPUT_FILE... " 
   63             -@ 
"detid  = $DETECTOR_ID"     \
 
   78         -
c $AHRS_CALIBRATION_FILE                   \
 
   90         -
o  ${
TMPDIR:-/tmp}/AHRS_$RUN.$FORMAT       $BATCH
 
   98 let 
"NY = sqrt(${#INPUT_FILES}) * 0.75 + 0.25" 
   99 let 
"NX = (${#INPUT_FILES} + $NY - 1)/ $NY" 
then usage $script< detector identifier >< startdate\"YYYY-MM-DDHH:MM:SS\"><finaldate\"YYYY-MM-DDHH:MM:SS\"><QA/QCfile> fi case set_variable QAQC_TXT $argv[4]
 
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O SUMMARY JPrintDAQHeader f $INPUT_FILE read A DAQ_HEADER set_variable DETECTOR_ID
 
o $QUALITY_ROOT d $DEBUG!CHECK_EXIT_CODE JPlot1D f
 
usr share Modules init zsh export TMPDIR
 
then fatal Wrong number of arguments fi DIR
 
then fatal Wrong number of arguments fi JConvertDetectorFormat a o
 
do JPrintDAQHeader f $INPUT_FILE d read DETECTOR_ID RUN FRAME_INDEX TIMESLICE_START set_variable OUTPUT_FILE $WORKDIR KM3NeT_
 
then fatal Detector file should be binary format fi eval JPrintDetector a $DETECTOR O IDENTIFIER typeset a INPUT_FILES expand_array RUNS for RUN in $RUNS[*]
 
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 rm i $OUTPUT_FILE fi let RUN
 
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable DEBUG set_variable WORKDIR
 
then JFileTuna f $INPUT_FILE
 
do sput $STRING $FLOOR sget MODULE INPUT_FILES
 
$WORKDIR ev_configure_dqsimulator txt echo process $DQ_SIMULATOR $i $SOURCE_HOST[$index] csh c(setenv ROOTSYS $ROOTSYS &&source $JPP_DIR/setenv.csh $JPP_DIR &&($DQ_SIMULATOR\-u\$NAME\$\-H\$SERVER\$\-M\$LOGGER\$\-d $DEBUG</dev/null > &/dev/null &))'
 
fi set_variable FILENAME $WORKDIR
 
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
 
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 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 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 eval ls $DIR $ID $TYPE _
 
do set_variable DETECTOR_TXT $WORKDIR detector
 
do echo Generating $dir eval D
 
esac $JPP_BIN JLogger sh $LOGGER until pgrep JGetMessage</dev/null > dev null
 
static const JPBS_t AHRS(3, 4, 3, 4)
PBS of compass 
 
#define DEBUG(A)
Message macros.