Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JHistHDE.sh
Go to the documentation of this file.
1 #!/bin/zsh
2 #
3 # \author jseneca
4 #
5 version=1.0
6 script=${0##*/}
7 
8 # ------------------------------------------------------------------------------------------
9 #
10 # Utility script to create histogram of particle light pattern
11 #
12 # ------------------------------------------------------------------------------------------
13 
14 INPUT_FILE="";
16 PARTICLES="11 -11 22";
17 OUTPUT_SUFFIX="example";
18 
19 while getopts f:a:p:o:h option
20 do case "$option" in
21  f) INPUT_FILE="$OPTARG";;
22  a) DETECTOR_FILE="$OPTARG";;
23  p) PARTICLES="$OPTARG";;
24  o) OUTPUT_SUFFIX="$OPTARG";;
25  h) exit;;
26  esac
27 done;
28 OUTPUT_FILE="J%s_$OUTPUT_SUFFIX.HDE"
29 
30 if [ -z $INPUT_FILE ]; then
31  echo "Please pass data file."
32  exit
33 fi
34 
35 if [ -z $DETECTOR_FILE ]; then
36  echo "Please pass detector file."
37  exit
38 fi
39 
40 if [ -z $JPP_DIR ]; then
41  echo "Variable JPP_DIR undefined."
42  exit
43 fi
44 
45 source $JPP_DIR/setenv.sh $JPP_DIR
46 
47 JHistHDE \
48  -f $INPUT_FILE \
49  -o $OUTPUT_FILE \
50  -a $DETECTOR_FILE \
51  -p $PARTICLES \
52  -b \
53  -c
esac print_variable DETECTOR INPUT_FILE OUTPUT_FILE CDF for TYPE in
Definition: JSirene.sh:45
exit
Definition: JPizza.sh:36
&set_variable INPUT_FILE
Definition: JLegolas.sh:30
fi JEventTimesliceWriter a
DETECTOR_FILE
Definition: JHistHDE.sh:15
then JPizza f
Definition: JPizza.sh:46
then echo
then JFileTuna f $INPUT_FILE
Definition: file-Tuna.sh:66
PARTICLES
Definition: JHistHDE.sh:16
OUTPUT_SUFFIX
Definition: JAddHDE.sh:15
version
Definition: JCalibratePMT.sh:7
esac done
Definition: JAddHDE.sh:21