Jpp master_rocky-44-g75b7c4f75
the software that should make you happy
Loading...
Searching...
No Matches
JARCACalibrateMuon.sh
Go to the documentation of this file.
1#!/bin/zsh
2#
3# \author mdejong
4#
5script=${0##*/}
6
7# ------------------------------------------------------------------------------------------
8#
9# Script to run the JCalibrateMuon for ARCA.
10#
11# ------------------------------------------------------------------------------------------
12
13if [ -z $JPP_DIR ]; then
14 echo "Variable JPP_DIR undefined."
15 exit
16fi
17source $JPP_DIR/setenv.sh $JPP_DIR
18
19set_variable DEBUG 2
20set_variable PDF $JPP_DATA/J%p.dat
21set_variable HISTOGRAM 260 -30.0 +100.0
22
23if do_usage $*; then
24 usage "$script <detector file> <input file> <output file> [PDF file descriptor]"
25fi
26
27case $# in
28 4) set_variable PDF $4;&
29 3) set_variable OUTPUT_FILE $3;
30 set_variable INPUT_FILE $2;
31 set_variable DETECTOR $1;;
32 *) fatal "Wrong number of arguments.";;
33esac
34
35PARAMETERS=(
36 TTS_ns 2
37 E_GeV 1.0e3
38 TMin_ns -50.0
39 TMax_ns +450.0
40 R_Hz 6.0e3
41 roadWidth_m 175.0
42 numberOfPrefits 1)
43
44timer_start
45
46eval JCalibrateMuon \
47 -a $DETECTOR \
48 -f $INPUT_FILE \
49 -o $OUTPUT_FILE \
50 -P $PDF \
51 -@ `make_equation PARAMETERS` \
52 -c \"$HISTOGRAM\" \
53 -d $DEBUG --!
54
55CHECK_EXIT_CODE
56
57timer_stop
58timer_print