8 # ------------------------------------------------------------------------------------------
 
   10 #                         Example script for JDAQEvent.
 
   12 # ------------------------------------------------------------------------------------------
 
   15 if [ -z $JPP_DIR ]; then
 
   16     echo "Variable JPP_DIR undefined."
 
   21 source $JPP_DIR/setenv.sh $JPP_DIR
 
   25 set_variable     WORKDIR      /tmp/
 
   26 define_variable  INPUT_FILE
 
   27 set_variable     OUTPUT_FILE  $WORKDIR/histogram.root
 
   28 #set_variable     TRIGGER_MASK    10    # 3D Shower
 
   29 #set_variable     TRIGGER_MASK   100    # MX Shower
 
   30 #set_variable     TRIGGER_MASK 10000    # 3D Muon
 
   31 set_variable     TRIGGER_MASK 11111    # All
 
   33 if ( do_usage $* ); then
 
   34     usage "$script <input file> [output file]"
 
   38     2) set_variable OUTPUT_FILE  $2;&
 
   39     1) set_variable INPUT_FILE   $1;;
 
   40     *) fatal "Wrong number of arguments."
 
   45     print_variable     INPUT_FILE OUTPUT_FILE
 
   46     check_input_file   $INPUT_FILE
 
   50     $JPP_DIR/examples/JDAQ/JDAQEvent \
 
   62    -f ${OUTPUT_FILE}:hn            \
 
   63    -f ${OUTPUT_FILE}:hm            \
 
   65    -\^ "number of events [a.u.]"   
 
   68    -f ${OUTPUT_FILE}:h0            \
 
   70    -\^ "number of events [a.u.]"   
 
   73    -f ${OUTPUT_FILE}:h1            \
 
   74    -> "time-over-threshold [ns]"  \
 
   75    -\^ "number of events [a.u.]"   \
 
   78    -f ${OUTPUT_FILE}:h2            \
 
   80    -\^ "number of events [a.u.]"   \