Jpp 19.3.0-rc.1
the software that should make you happy
Loading...
Searching...
No Matches
JPrintDetector.sh
Go to the documentation of this file.
1#!/usr/bin/env zsh
2#
3# \author mdejong
4#
5script=${0##*/}
6
7# ------------------------------------------------------------------------------------------
8#
9# Example script to set can environment variables.
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 >& /dev/null
19
20set_variable DETECTOR $JPP_DATA/km3net_reference.detx
21
22if do_usage $*; then
23 usage "$script [detector file]"
24fi
25
26case $# in
27 1) set_variable DETECTOR $1;;
28esac
29
30
31eval `JPrintDetector -a $DETECTOR -O CAN`
32
33print_variable CAN_ZMIN
34print_variable CAN_ZMAX
35print_variable CAN_RADIUS
36print_variable CAN_DEPTH_M
37print_variable CAN_DEPTH_KM