Jpp
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
examples
JPhysics
JDrawPD0.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 PDFs.
11
#
12
# ------------------------------------------------------------------------------------------
13
14
15
if
[ -z $JPP_DIR ];
then
16
echo
"Variable JPP_DIR undefined."
17
exit
18
fi
19
20
21
source $JPP_DIR/setenv.sh $JPP_DIR
22
23
24
set_variable
NORTH 0.0
25
set_variable EAST +1.0
26
set_variable SOUTH 0.0
27
set_variable
WEST
-1.0
28
29
set_variable
WORKDIR
/
tmp
30
set_variable
E
10
31
set_variable
R
25
32
set_variable
YMAX 2e-3
33
set_variable
YMIN
1e-6
34
35
set_variable
HISTOGRAM
"510 -20 +150"
36
37
if
( do_usage $* );
then
38
usage
"$script [energy [distance]]"
39
fi
40
41
case
$#
in
42
2)
set_variable
R
$2;&
43
1)
set_variable
E
$1;;
44
esac
45
46
47
if
(( 1 ));
then
48
49
for
dir
in
NORTH EAST SOUTH
WEST
;
do
50
51
echo
"Generating $dir."
52
53
eval
D
=\$$dir
54
55
JDrawPD0 \
56
-F24 \
57
-
R
$R -
E
$E -c $D \
58
-
H
"${HISTOGRAM}"
\
59
-o
$WORKDIR
/
f
\[${dir}\].root
60
61
done
62
63
fi
64
65
66
if
(( 1 ));
then
67
68
JPlot1D \
69
-
f
$WORKDIR
/
f
\[NORTH\].root:h0 \
70
-
f
$WORKDIR
/
f
\[EAST\].root:h0 \
71
-
f
$WORKDIR
/
f
\[SOUTH\].root:h0 \
72
-
f
$WORKDIR
/
f
\[WEST\].root:h0 \
73
-y
"$YMIN $YMAX"
-Y \
74
-\>
"#Deltat [ns]"
\
75
-\^
"dP/dt [npe/ns]"
\
76
-L TR \
77
-
T
"E = ${E} GeV#; R = ${R} m"
\
78
-o
$WORKDIR
/pdf.gif
79
80
fi
JTOOLS::H
static const double H
Planck constant [eV s].
Definition:
JConstants.hh:25
D
do echo Generating $dir eval D
Definition:
JDrawLED.sh:50
JSYSTEM::set_variable
void set_variable(const std::string &name, const std::string &value)
Set environment variable.
Definition:
JSystemToolkit.hh:404
in
esac print_variable DETECTOR INPUT_FILE OUTPUT_FILE CDF for TYPE in
Definition:
JSirene.sh:45
exit
exit
Definition:
JPizza.sh:36
WEST
then for dir in NORTH EAST SOUTH WEST
Definition:
JDrawLED.sh:46
YMIN
fatal Invalid number of arguments esac let YMIN
Definition:
testToT.sh:39
f
then JPizza f
Definition:
JPizza.sh:46
echo
then echo
Definition:
JDOMDAQDriver.sh:56
tmp
do montage tile geometry tmp
Definition:
plot-PMTParameters2D.sh:116
T
do set_variable OUTPUT_DIRECTORY $WORKDIR T
Definition:
JCalibrateHeight.sh:61
usage
* usage
Definition:
JLigier-local.sh:33
R
then usage $script[distance] fi case set_variable R
Definition:
JDrawLED.sh:40
then
then
Definition:
examples/JDataFilter/JDataFilter.sh:87
$WORKDIR
then display $WORKDIR
Definition:
plot-Domino.sh:142
version
version
Definition:
JCalibratePMT.sh:7
WORKDIR
then usage $script< detector file >< inputfile > fi case set_variable WORKDIR
Definition:
JLegolas.sh:28
E
then usage $script[input file[working directory[option]]] nWhere option can be E
Definition:
JMuonPostfit.sh:37
done
esac done
Definition:
JAddHDE.sh:21
Generated by
1.8.5