Jpp
pmt_effective_area_update
the software that should make you happy
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
examples
JReconstruction
examples/JReconstruction/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 plot 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 [(input file)+]"
23
fi
24
25
set_variable
DEBUG
3
26
set_variable
WORKDIR
/tmp/
27
set_variable
DIR
$JPP_DIR/examples/JReconstruction
28
set_variable
: FORMAT GRAPHICS_FORMAT gif
29
set_variable
+ BATCH GRAPHICS_BATCH -B
30
31
if
(( $# == 0 ));
then
32
set_array
INPUT_FILES
`ls ${JPP_LIB}/energy_correction*.txt`
33
else
34
set_array
INPUT_FILES
$argv
[1,-1]
35
fi
36
37
$DIR/JEnergyCorrection \
38
-
E
${^
INPUT_FILES
} \
39
-
o
$WORKDIR
/f1.root \
40
-
d
$DEBUG --!
41
42
JPlot1D \
43
-
f
$WORKDIR
/f1.root:\.\* \
44
-y
"1e-3 5e1"
-
Y
\
45
-XX \
46
-\>
"E [GeV]"
\
47
-\^
"correction"
\
48
-
T
""
-L BR \
49
-
o
$WORKDIR
/
energy
-correction.$FORMAT $BATCH
WORKDIR
then usage $script< detector file >< inputfile > nUtility script to create PDF and CDF of transition time distribution fi case set_variable WORKDIR
Definition:
JLegolas.sh:31
exit
exit
Definition:
JPizza.sh:36
DIR
do echo Generating $dir eval DIR
Definition:
JPlotNPE1D.sh:54
Y
then fatal Wrong number of arguments fi set_variable STRING $argv[1] set_variable DETECTORXY_TXT $WORKDIR $DETECTORXY_TXT tail read X Y CHI2 RMS printf optimum n $X $Y $CHI2 $RMS awk v Y
Definition:
detector-XY:fit1d.sh:33
f
then JPizza f
Definition:
JPizza.sh:46
echo
then echo
Definition:
JDOMDAQDriver.sh:56
set_variable
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
Definition:
JAcoustics.sh:20
T
do set_variable OUTPUT_DIRECTORY $WORKDIR T
Definition:
JCalibrateHeight.sh:61
o
do $DIR JTransitTime o
Definition:
JTransitTime.sh:44
usage
* usage
Definition:
JLigier-local.sh:34
INPUT_FILES
set_array INPUT_FILES
Definition:
JCalibrateStrings.sh:26
energy
then for APP in event gandalf start energy
Definition:
JMuonMCEvt.sh:44
$argv
*set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2,-2] set_variable OUTPUT_FILE $argv[-1]
Definition:
JDomino.sh:39
d
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
Definition:
JMuonPath.sh:47
then
then
Definition:
examples/JDataFilter/JDataFilter.sh:87
DEBUG
then usage $script< input_file >< detector_file > fi set_variable OUTPUT_DIR set_variable SELECTOR JDAQTimesliceL1 set_variable DEBUG case set_variable DEBUG
Definition:
JCalibratePMT.sh:21
$WORKDIR
then display $WORKDIR
Definition:
plot-Domino.sh:128
version
version
Definition:
JCalibratePMT.sh:7
E
then usage $script[input file[working directory[option]]] nWhere option can be E
Definition:
JMuonPostfit.sh:36
Generated by
1.8.5