7 # ------------------------------------------------------------------------------------------
9 # Example script to test JFitK40 results.
11 # ------------------------------------------------------------------------------------------
13 if [ -z $JPP_DIR ];
then
14 echo "Variable JPP_DIR undefined."
18 source $JPP_DIR/setenv.sh $JPP_DIR
28 if ( do_usage $* );
then
29 usage "$script (input file)+"
34 0) fatal
"Invalid number of arguments"
43 -
H "GetEntries 0.5 1.0e10" \
44 -x
"$CHI2_MIN $CHI2_MAX" -X \
52 -y
"$QE_MIN $QE_MAX" \
59 -y
"$T0_MIN $T0_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 H
Planck constant [eV s].
do set_array DAQHEADER JPrintDAQHeader f
static const double FITK40_QE_MAX
Maximal quantum efficiency [unit].
then fatal Not enough arguments fi set_variable DETECTOR $argv[1] INPUT_FILES
then JFileTuna f $INPUT_FILE
static const double FITK40_QE_MIN
Minimal quantum efficiency [unit].
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
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 typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
#define DEBUG(A)
Message macros.