7 # ------------------------------------------------------------------------------------------ 
    9 #                         Example script to test JFitToT results. 
   11 # ------------------------------------------------------------------------------------------ 
   13 if [ -z $JPP_DIR ]; 
then 
   14     echo "Variable JPP_DIR undefined." 
   18 source $JPP_DIR/setenv.sh $JPP_DIR
 
   24 set_variable:  CHI2_MAX        FITTOT_CHI2_MAX        3.0
 
   31     usage "$script (input file)+" 
   36     0)  fatal 
"Invalid number of arguments" 
   40 let YMAX=((
pow(10,$CHI2_MAX)))
 
   48         -
H "GetEntries 0.5 1.0e10"             \
 
   49         -
x "$CHI2_MIN $CHI2_MAX" -
X            \
 
   64         -y 
"$GAIN_MIN $GAIN_MAX"               \
 
   71         -y 
"$GAINSPREAD_MIN $GAINSPREAD_MAX"   \
 
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[*]
 
static const double FITTOT_GAIN_MAX
Default maximal gain. 
 
static const double FITTOT_GAIN_MIN
Default minimal gain. 
 
o $QUALITY_ROOT d $DEBUG!JPlot1D f
 
static const double H
Planck constant [eV s]. 
 
fatal Invalid number of arguments esac let YMIN
 
static const double FITTOT_GAINSPREAD_MAX
Default maximal gain spread. 
 
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
 
T pow(const T &x, const double y)
Power . 
 
then JFileTuna f $INPUT_FILE
 
do sput $STRING $FLOOR sget MODULE INPUT_FILES
 
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
 
no fit printf nominal n $STRING awk v X
 
static const double FITTOT_GAINSPREAD_MIN
Default minimal gain spread. 
 
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.