Jpp 19.3.0-rc.3
the software that should make you happy
Loading...
Searching...
No Matches
JModuleMapper.sh
Go to the documentation of this file.
1#!/usr/bin/env zsh
2#
3# \author mdejong
4#
5version=1.0
6script=${0##*/}
7
8# ------------------------------------------------------------------------------------------
9#
10# Utility script to test JModuleMapper.
11#
12# ------------------------------------------------------------------------------------------
13
14
15if [ -z $JPP_DIR ]; then
16 echo "Variable JPP_DIR undefined."
17 exit
18fi
19
20
21source $JPP_DIR/setenv.sh $JPP_DIR
22
23
24set_variable DEBUG 2
25set_variable WORKDIR ./
26set_variable DETECTOR $JPP_DATA/km3net_reference.detx
27set_variable: FORMAT GRAPHICS_FORMAT gif
28set_variable+ BATCH GRAPHICS_BATCH -B
29
30
31if do_usage $*; then
32 usage "$script [detector file]"
33fi
34
35case $# in
36 1) set_variable DETECTOR $1;;
37esac
38
39
40set_variable OUTPUT_FILE $WORKDIR/mapper.root
41
42
43if (( 1 )); then
44
45 $JPP_DIR/examples/JDetector/JModuleMapper \
46 -a $DETECTOR \
47 -o $OUTPUT_FILE \
48 -d $DEBUG \
49 --!
50
51fi
52
53if (( 1 )); then
54
55 JPlot1D \
56 -f ${OUTPUT_FILE}:h1 \
57 -> "distance [m]" \
58 -\^ "number of modules" \
59 -o map.$FORMAT $BATCH
60
61fi