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> (input file)+"
23 fatal
"Not enough arguments."
30 if ( ! is_CCLyon );
then
32 # local batch processor
36 $JPP_DIR/examples/scripts/mkqueue.sh $QUEUE_NAME $QUEUE_SIZE
continue
39 fatal
"The job submission should be changed for running in CC-Lyon."
43 fatal
"Invalid detector file <${DETECTOR}>."
48 for ((
i=1;
i <= ${#INPUT_FILES};
i+=1 ));
do
58 for TIME_OFFSET_NS
in +20.4;
do
59 for MULTIPLICATION
in 0.94 0.96 0.97 0.98 0.99 1.00 1.01 1.02 1.03 1.04 1.06;
do
63 mkdir -p -- $OUTPUT_DIRECTORY
65 # detector calibration
71 -s
"1 add $TIME_OFFSET_NS" \
72 -s
"1 mul $MULTIPLICATION" \
73 -s
"2 mul $MULTIPLICATION" \
83 set_variable BATCH_FILE ${OUTPUT_DIRECTORY}/${${FILE_NAME##*/}/\.root/.sh}
87 echo "#!/bin/zsh" >> $BATCH_FILE
89 if [[ ! -
f ${OUPUT_FILE} ]];
then
91 # sequentially processing of applications
97 echo "JARCA${(C)APP}.sh $OUTPUT_DIRECTORY/detector.detx $INPUT_FILE $OUTPUT_FILE >& /dev/null" >> $BATCH_FILE
110 echo "rm -f $OUTPUT_FILE" >> $BATCH_FILE
114 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]
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
do set_variable OUTPUT_DIRECTORY $WORKDIR T
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 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 echo Submitting reweighting and histogram comparison jobs to nikhef stbc batch queue
then eval ls $DIR $ID $TYPE _
do set_variable DETECTOR_TXT $WORKDIR detector
static JNullStream null
Null I/O stream.
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
#define DEBUG(A)
Message macros.