3 #####################################################
4 # Script to run the ToT - K40 PMT calibration chain.#
5 #####################################################
10 source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/
null
13 usage "$script <input_file> <detector_file> [output_path [selection]]"
26 *) fatal
"Wrong number of arguments"
42 cp $DETECTOR_FILE $K40_DETECTOR
61 -
P $PMT_PARAMETERS_FILE \
84 -
P $PMT_PARAMETERS_FILE \
JFitK40_t< TF2 > JFitK40
Type definition for backward compatibility.
set_variable DETECTOR_FILE
static const double C
Physics constants.
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
then fatal Not enough arguments fi set_variable DAQ_FILE $argv[1] set_variable DETECTOR_FILE $argv[2] set_variable OUTPUT_DIR $argv[3] set_variable OUTPUT_JC_TOT
&set_variable DETECTOR_FILE set_variable DAQ_FILE
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
then usage $script< input_file >< detector_file > fi set_variable OUTPUT_DIR set_variable SELECTOR JDAQTimesliceL1 set_variable DEBUG case set_variable DEBUG
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
source $JPP_DIR setenv csh $JPP_DIR eval JShellParser o a A
esac $JPP_BIN JLogger sh $LOGGER until pgrep JGetMessage</dev/null > dev null