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
 
   30 if ( do_usage $* ); 
then 
   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 usage for INPUT_FILE in $INPUT_FILES[*]
 
void set_variable(const std::string &name, const std::string &value)
Set environment variable. 
 
static const double FITTOT_GAIN_MAX
Default maximal gain. 
 
static const double FITTOT_GAIN_MIN
Default minimal gain. 
 
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. 
 
T pow(const T &x, const double y)
Power . 
 
then break fi done getCenter read X Y Z let X
 
then JFileTuna f $INPUT_FILE
 
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
 
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 source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
 
#define DEBUG(A)
Message macros.