7 # ------------------------------------------------------------------------------------------ 
    9 #                         Utility script to plot fit results. 
   11 # ------------------------------------------------------------------------------------------ 
   14 if [ -z $JPP_DIR ]; 
then 
   15     echo "Variable JPP_DIR undefined." 
   20 source $JPP_DIR/setenv.sh $JPP_DIR
 
   23 # list of applications in the processing chain 
   25 APPLICATIONS=(prefit pointsimplex positionfit energyprefit directionprefit completefit)
 
   36     usage "$script [input file [working directory [muons]]]" 
   46 # Number of prefits as a function of application (0 = all) 
   58 # 
Fit application identifier
 
   60 typeset -
A ENUMERATION
 
   88     if [[ ! -
f $OUTPUT_FILE ]]; 
then 
   90         echo "************************************************ " $MUONS 
 
   91         if [[ -z $MUONS ]]; 
then 
   96                 -
A ${ENUMERATION[${
APP}]}     \
 
  105                 -
A ${ENUMERATION[${
APP}]}     \
 
  118         -
f $WORKDIR/jshowerpostfit\[completefit\].root:ha     \
 
  119         -\> 
"angle wrt selected fermion [deg]"                \
 
  120         -\^ 
"number of events [a.u.]"                         \
 
  131     for APP in prefit pointsimplex positionfit energyprefit directionprefit completefit; 
do 
  145         -
f $WORKDIR/jshowerpostfit\[completefit\].root:ee  \
 
  148         -\> 
"E_{true} [GeV]"                               \
 
  149         -\< 
"E_{fit} [GeV]"                                \
 
then usage $script< detector >< run >< outputfile > fi case set_variable OPTION
 
Q(UTCMax_s-UTCMin_s)-livetime_s
 
TFitResultPtr Fit(TH1D *h)
 
o $QUALITY_ROOT d $DEBUG!CHECK_EXIT_CODE JPlot1D f
 
then JShowerPostfit f $INPUT_FILE o $OUTPUT_FILE N
 
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 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
 
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
 
*set_array INPUT_FILES $argv[1,-2] set_variable OPTION $argv[-1] esac typeset A NUMBER_OF_FIT NUMBER_OF_FIT
 
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
 
source $JPP_DIR setenv csh $JPP_DIR &dev null eval JShellParser o a A
 
then usage $script[input file[working directory[muons]]] fi case set_variable MUONS
 
#define DEBUG(A)
Message macros.