Jpp test-rotations-new
the software that should make you happy
Loading...
Searching...
No Matches
JTurbot2D.sh
Go to the documentation of this file.
1#!/usr/bin/env zsh
2#
3# \author shallmann
4#
5version=1.0
6script=${0##*/}
7
8
9if [ -z $JPP_DIR ]; then
10 echo "Variable JPP_DIR undefined."
11 exit
12fi
13
14
15source $JPP_DIR/setenv.sh $JPP_DIR
16
17
18typeset -Z 8 ID
19typeset -Z 8 RUN
20
21set_variable DEBUG 2
22set_variable WORKDIR ./
23set_variable ID 29
24set_variable MODULE 808964815
25set_variable RUN 2550
26set_variable INPUT_FILE $WORKDIR/KM3NeT_${ID}_${RUN}.root
27set_variable OUTPUT_FILE turbot_time_evolution_${RUN}.root
28set_variable DETECTOR $KM3NET_THRONG_DIR/detectors/KM3NeT_00000029_20170920.detx #$WORKDIR/orca.detx
29set_variable MIN_TIME_BIN 2 # study offset in bins of MIN_TIME_BIN (-M) option
30set_variable OFFSET_MAX 40 # range of slices to look for the offset
31if do_usage $*; then
32 usage "$script [detector file [input file [output file]]]"
33fi
34
35case $# in
36 3) set_variable OUTPUT_FILE $3;&
37 2) set_variable INPUT_FILE $2;&
38 1) set_variable DETECTOR $1;;
39esac
40
41if (( 1 )); then
42
43 timer_start
44
45 JTurbot2D \
46 -f ${INPUT_FILE} \
47 -a ${DETECTOR} \
48 -o ${OUTPUT_FILE} \
49 -M ${MIN_TIME_BIN} \
50 -N ${OFFSET_MAX} \
51 -d ${DEBUG} --!
52
53 timer_stop
54 timer_print
55
56fi
57if (( 1 )); then
58
59 JPlot2D \
60 -f ${OUTPUT_FILE}:M2D_${MODULE} \
61 -T "Run ${RUN}, Module ${MODULE}"
62
63fi