Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
get_convergence_angle.sh
Go to the documentation of this file.
1 #!/bin/zsh
2 #
3 #
4 # \author mdejong
5 #
6 version=1.0
7 script=${0##*/}
8 
9 if [ -z $JPP_DIR ]; then
10  echo "Variable JPP_DIR undefined."
11  exit
12 fi
13 
14 source $JPP_DIR/setenv.sh $JPP_DIR
15 
16 set_variable DEBUG ${COMPASS_DEBUG:-2}
17 
18 if ( do_usage $* ); then
19  usage "$script <detector file>"
20 fi
21 
22 if (( $# != 1 )); then
23  fatal "Wrong number of parameters."
24 fi
25 
27 
28 eval `JPrintDetector -a $DETECTOR -O HEADER`
29 
30 if (( $DEBUG >= 3 )); then
31  echo $DETECTOR
32  JPrintDetector -a $DETECTOR -O header
33 fi
34 
35 typeset -a UTM
36 
37 UTM[1]=`echo $UTM_ZONE | tr -c -d 0-9`
38 UTM[2]=`echo $UTM_ZONE | tr -d 0-9`
39 
40 get_convergence_angle.py $UTM_EAST $UTM_NORTH $UTM[1] $UTM[2]
set_variable DETECTOR
void set_variable(const std::string &name, const std::string &value)
Set environment variable.
exit
Definition: JPizza.sh:36
then echo
* usage
*set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2,-2] set_variable OUTPUT_FILE $argv[-1]
Definition: JDomino.sh:39
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
Definition: JMuonPath.sh:45
then JCalibrateToT a
Definition: JTuneHV.sh:103
version
Definition: JCalibratePMT.sh:7
#define DEBUG(A)
Message macros.
Definition: JMessage.hh:62