Jpp
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
examples
JPhysics
JShadowPDF.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.00 0.00"
25
set_variable
EAST
"1.57 0.00"
26
set_variable
SOUTH
"3.14 0.00"
27
set_variable
WEST
"1.57 3.14"
28
29
set_variable
E
1e2
30
set_variable
R
10
31
set_variable
YMAX 2e-0
32
set_variable
YMIN
1e-7
33
34
set_variable
HISTOGRAM
"100 -5 +50"
35
36
if
( do_usage $* );
then
37
usage
"$script [energy [distance]]"
38
fi
39
40
case
$#
in
41
2)
R
=$2;&
42
1)
E
=$1;;
43
esac
44
45
46
for
dir
in
NORTH EAST SOUTH
WEST
;
do
47
48
echo
"Generating $dir."
49
50
eval
D
=\$$dir
51
52
JDrawPDF \
53
-F1 -F3 -F5 \
54
-D
"${D}"
-
R
$R -
E
$E \
55
-
H
"${HISTOGRAM}"
\
56
-o fa\[${dir}\].root --!
57
58
JDrawPDF \
59
-@
"MODULE_RADIUS_M=0.00;"
\
60
-F2 -F4 -F6 \
61
-D
"${D}"
-
R
$R -
E
$E \
62
-
H
"${HISTOGRAM}"
\
63
-o fb\[${dir}\].root --!
64
65
JDrawPDF \
66
-@
"MODULE_RADIUS_M=0.25;"
\
67
-F2 -F4 -F6 \
68
-D
"${D}"
-
R
$R -
E
$E \
69
-
H
"${HISTOGRAM}"
\
70
-o fc\[${dir}\].root --!
71
72
JPlot1D \
73
-
f
fa\[${dir}\].root:h0 \
74
-
f
fb\[${dir}\].root:h0 \
75
-
f
fc\[${dir}\].root:h0 \
76
-y
"$YMIN $YMAX"
-Y \
77
-\>
"#Deltat [ns]"
\
78
-\^
"dP/dt [npe/ns]"
\
79
-L TR \
80
-
T
"E = ${E} GeV#; R = ${R} m"
\
81
-o shadow-${
R
}-${dir}.gif -B
82
83
done
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
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
version
version
Definition:
JCalibratePMT.sh:7
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