9# ------------------------------------------------------------------------------------------
11# Example script to test JGandalf.
13# ------------------------------------------------------------------------------------------
15if [ -z $JPP_DIR ]; then
16 echo "Variable JPP_DIR undefined."
20source $JPP_DIR/setenv.sh $JPP_DIR
23set_variable WORKDIR ${TMPDIR:-/tmp}/
26 usage "$script [working directory]"
30 1) set_variable WORKDIR $1;;
33set_variable DIR $JPP_DIR/examples/JFit/
34set_variable OUTPUT_FILE $WORKDIR/gandalf.root
35set_variable NUMBER_OF_EVENTS 1000
36set_variable GAUSS "0.0 1.0 1000.0 100.0"
37set_variable PRECISION "0.05 0.05 20.0 20.0"
39$DIR/JGandalfFitToGauss \
41 -n $NUMBER_OF_EVENTS \
53for H1 in ha hb hc hd; do
55 -f ${OUTPUT_FILE}:${H1} \
56 -> "$X_LABEL[${H1}]" \
57 -\^ "number of events [a.u.]" \