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"
39 let
YMIN=((pow(10,$CHI2_MIN)))
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" \
void set_variable(const std::string &name, const std::string &value)
Set environment variable.
static const double FITTOT_GAIN_MAX
Maximal gain.
static const double FITTOT_GAIN_MIN
Minimal gain.
then usage for INPUT_FILE in $INPUT_FILES[*]
esac print_variable DETECTOR INPUT_FILE OUTPUT_FILE CDF for TYPE in
fatal Invalid number of arguments esac let YMIN
static const double FITTOT_GAINSPREAD_MAX
Maximal gain spread.
then print_variable DETECTOR INPUT_FILE INTERMEDIATE_FILE check_input_file $DETECTOR $INPUT_FILE check_output_file $INTERMEDIATE_FILE $OUTPUT_FILE JMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
then fatal Not enough arguments fi set_variable DETECTOR $argv[1] INPUT_FILES
then JFileTuna f $INPUT_FILE
static const double FITTOT_GAINSPREAD_MIN
Minimal gain spread.
#define DEBUG(A)
Message macros.