Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JEnergyCorrection.sh
Go to the documentation of this file.
1 #!/bin/zsh
2 #
3 # \author mdejong
4 #
5 version=1.0
6 script=${0##*/}
7 
8 # ------------------------------------------------------------------------------------------
9 #
10 # Utility script to polt energy correction
11 #
12 # ------------------------------------------------------------------------------------------
13 
14 if [ -z $JPP_DIR ]; then
15  echo "Variable JPP_DIR undefined."
16  exit
17 fi
18 
19 source $JPP_DIR/setenv.sh $JPP_DIR
20 
21 if ( do_usage $* ); then
22  usage "$script"
23 fi
24 
27 
28 INPUT_FILES=(${JPP_LIB}/energy_correction*.txt)
29 
30 JEnergyCorrection \
31  ${INPUT_FILES[*]/*\//-E } \
32  -o $WORKDIR/f1.root \
33  -d $DEBUG --!
34 
35 
36 JPlot1D \
37  -f $WORKDIR/f1.root:\.\* \
38  -y "1e-3 5e1" -Y \
39  -XX \
40  -> "E [GeV]" \
41  -\^ "correction" \
42  -T "" -L BR \
43  -o $WORKDIR/energy-correction.gif
void set_variable(const std::string &name, const std::string &value)
Set environment variable.
exit
Definition: JPizza.sh:36
then echo
do montage tile geometry tmp
* usage
then fatal Not enough arguments fi set_variable DETECTOR $argv[1] INPUT_FILES
version
Definition: JCalibratePMT.sh:7
then usage $script< detector file >< inputfile > fi case set_variable WORKDIR
Definition: JLegolas.sh:28
#define DEBUG(A)
Message macros.
Definition: JMessage.hh:62