4 if [ -z $JPP_DIR ]; 
then 
    5     echo "Variable JPP_DIR undefined." 
    9 source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/
null 
   19     usage "$script <detector file> <string identifier> (input file)+" 
   23     fatal 
"Not enough arguments." 
   31 if ( ! is_CCLyon ); 
then 
   33     # local batch processor 
   37     $JPP_DIR/examples/scripts/mkqueue.sh  $QUEUE_NAME  $QUEUE_SIZE  
continue 
   40     fatal 
"The job submission should be changed for running in CC-Lyon." 
   44     fatal 
"Invalid detector file <${DETECTOR}>." 
   58 for ROTATE_RAD 
in -2.8 -2.4 -2.0 -1.6 -1.2 -0.8 -0.4 0 +0.4 +0.8 +1.2 +1.6 +2.0 +2.4 +2.8; 
do 
   62     mkdir -p --  $OUTPUT_DIRECTORY
 
   64     # detector calibration 
   70             -S 
"$STRING_ID rot $ROTATE_RAD"  \
 
   80         set_variable  BATCH_FILE   ${OUTPUT_DIRECTORY}/${${FILE_NAME##*/}/\.root/.sh}
 
   84         echo "#!/bin/zsh"  >>  $BATCH_FILE
 
   86         if [[ ! -
f ${OUPUT_FILE} ]]; 
then 
   88             # sequentially processing of applications 
   94                 echo "JARCA${(C)APP}.sh  $OUTPUT_DIRECTORY/detector.detx  $INPUT_FILE $OUTPUT_FILE >& /dev/null"  >>  $BATCH_FILE
 
  107                 echo "rm -f  $OUTPUT_FILE"  >>  $BATCH_FILE
 
  111             echo "rm -f $BATCH_FILE"  >>  $BATCH_FILE
 
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 echo Submitting reweighting and histogram comparison jobs to nikhef stbc batch queue
 
o $QUALITY_ROOT d $DEBUG!CHECK_EXIT_CODE JPlot1D f
 
usr share Modules init zsh export TMPDIR
 
then fatal Wrong number of arguments fi JConvertDetectorFormat a o
 
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
 
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR set_variable DEBUG set_variable WORKDIR if do_usage *then usage for INPUT_FILE in $INPUT_FILES[*]
 
then rm i $OUTPUT_FILE fi done for APP in $APPLICATIONS[*]
 
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable DEBUG set_variable WORKDIR
 
then fatal The output file must have the wildcard in the e g root fi typeset A PARAMETERS typeset a APPLICATIONS APPLICATIONS
 
then JFileTuna f $INPUT_FILE
 
&set_variable OUTPUT_FILE
 
do sput $STRING $FLOOR sget MODULE INPUT_FILES
 
then JCookie sh JDataQuality D $DETECTOR_ID R
 
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
 
do set_variable DETECTOR_TXT $WORKDIR detector
 
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
 
esac $JPP_BIN JLogger sh $LOGGER until pgrep JGetMessage</dev/null > dev null
 
#define DEBUG(A)
Message macros.