8 # ------------------------------------------------------------------------------------------
 
   10 #              Example script to run evaluate purity of L1/L2 coincidences.
 
   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        $JPP_DATA
 
   26 set_variable  DETECTOR       $WORKDIR/detector_arca.dat
 
   27 set_variable  OUTPUT_FILE    randomL1.root
 
   28 set_variable  TMAX_NS        20.0
 
   29 set_variable  BACKGROUND_HZ  5e3 500 50 5 0.5
 
   31 if ( do_usage $* ); then
 
   32     usage "$script [detector file]"
 
   41     check_input_file  $DETECTOR
 
   43     $JPP_DIR/examples/JTrigger/JRandomL1 \
 
   56        -f ${OUTPUT_FILE}:hn   \
 
   66        -f ${OUTPUT_FILE}:hc   \
 
   76        -f ${OUTPUT_FILE}:ht   \