Jpp 19.3.0-rc.2
the software that should make you happy
Loading...
Searching...
No Matches
JConvertEvt.sh
Go to the documentation of this file.
1#!/usr/bin/env zsh
2#
3# \author mdejong
4#
5script=${0##*/}
6
7# ------------------------------------------------------------------------------------------
8#
9# Utility script to convert fit results to offline format.
10#
11# ------------------------------------------------------------------------------------------
12
13if [ -z $JPP_DIR ]; then
14 echo "Variable JPP_DIR undefined."
15 exit
16fi
17
18source $JPP_DIR/setenv.sh $JPP_DIR
19
20set_variable: DEBUG RECONSTRUCTION_DEBUG 1
21set_variable: TMAX_S RECONSTRUCTION_TMAX_S 100
22
23if do_usage $*; then
24 usage "$script <detector file> <input file> <output file> <PMT parameters file> [(calibration file)+]"
25fi
26
27if (( $# < 4 )); then
28 fatal "Wrong number of arguments."
29fi
30
31set_variable DETECTOR $argv[1]
32set_variable INPUT_FILE $argv[2]
33set_variable OUTPUT_FILE $argv[3]
34set_variable PMT $argv[4]
35set_array CALIBRATION $argv[5,-1]
36
37JConvertEvt \
38 -f $INPUT_FILE \
39 -o $OUTPUT_FILE \
40 -a $DETECTOR \
41 -+${^CALIBRATION} \
42 -P $PMT \
43 -d $DEBUG --!
44