8 # ------------------------------------------------------------------------------------------
 
   10 #                 Utility script to test make basic plots of data
 
   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  INPUT_FILE        $WORKDIR/gandalf.root
 
   27 set_variable  OUTPUT_FILE       $WORKDIR/postfit.root
 
   28 set_variable  DETECTOR          $WORKDIR/km3net_reference.detx
 
   29 set_variable  APPLICATION       5                               # JStart - See JFitApplications.hh for more info
 
   30 set_variable  NUMBER_OF_PREFITS 1
 
   32 if ( do_usage $* ); then
 
   33     usage "$script [detector file [input file [output file]]]"
 
   42 print_variable     INPUT_FILE OUTPUT_FILE
 
   43 check_input_file   $INPUT_FILE
 
   52    -N $NUMBER_OF_PREFITS        \
 
   60    -f ${OUTPUT_FILE}:hz         \
 
   62    -\^ "number of events [a.u]" \
 
   69    -f ${OUTPUT_FILE}:hxy   \
 
   79    -f ${OUTPUT_FILE}:hzR   \
 
   89    -f ${OUTPUT_FILE}:hq1          \
 
   91    -\^ "number of events [a.u]"   \
 
   98    -f ${OUTPUT_FILE}:hq2          \
 
  100    -\^ "number of events [a.u]" \
 
  107         -f ${OUTPUT_FILE}:hmu           \
 
  108         -> "P(upgoing) - P(downgoing)" \
 
  109    -\^ "number of events [a.u]"    \
 
  110         -o atmosphericmuon.gif
 
  116    -f ${OUTPUT_FILE}:hmz           \
 
  117    -> "P(upgoing) - P(downgoing)" \
 
  120    -o atmosphericmuon2D.gif
 
  126    -f ${OUTPUT_FILE}:hqz           \
 
  130    -o zenithVsQuality.gif