Jpp  pmt_effective_area_update_2
the software that should make you happy
 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
set_variable INPUT_FILE
exit
Definition: JPizza.sh:36
then JPizza f
Definition: JPizza.sh:46
set_variable DETECTOR_FILE
Definition: JTuneHV.sh:43
then echo
do $DIR JTransitTime o
Definition: JTransitTime.sh:44
then JFileTuna f $INPUT_FILE
Definition: file-Tuna.sh:66
&set_variable OUTPUT_FILE
PARTICLES
Definition: JHistHDE.sh:16
then JCalibrateToT a
Definition: JTuneHV.sh:116
OUTPUT_SUFFIX
Definition: JAddHDE.sh:15
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
Definition: JCanberra.sh:40
version
Definition: JCalibratePMT.sh:7
esac done
Definition: JAddHDE.sh:21