Jpp
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
examples
JPhysics
JDrawPDG.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
WORKDIR
/tmp
30
set_variable
E
1e3
31
set_variable
R
50
32
set_variable
CD 0.7
33
set_variable YMAX 2e-0
34
set_variable
YMIN
1e-7
35
36
set_variable
HISTOGRAM
"520 -20 +500"
37
38
if
( do_usage $* );
then
39
usage
"$script [energy [distance]]"
40
fi
41
42
case
$#
in
43
2)
set_variable
R
$2;&
44
1)
set_variable
E
$1;;
45
esac
46
47
48
if
(( 1 ));
then
49
50
for
dir
in
NORTH EAST SOUTH
WEST
;
do
51
52
echo
"Generating $dir."
53
54
eval
D
=\$$dir
55
56
JDrawPDG \
57
-F13 \
58
-F14 \
59
-D
"${D}"
-
R
$R -c $CD -
E
$E \
60
-
H
"${HISTOGRAM}"
\
61
-o
$WORKDIR
/
f
\[${dir}\].root
62
63
done
64
65
fi
66
67
68
if
(( 1 ));
then
69
70
JPlot1D \
71
-
f
$WORKDIR
/
f
\[NORTH\].root:h0 \
72
-
f
$WORKDIR
/
f
\[EAST\].root:h0 \
73
-
f
$WORKDIR
/
f
\[SOUTH\].root:h0 \
74
-
f
$WORKDIR
/
f
\[WEST\].root:h0 \
75
-y
"$YMIN $YMAX"
-Y \
76
-\>
"#Deltat [ns]"
\
77
-\^
"dP/dt [npe/ns]"
\
78
-L TR \
79
-
T
"E = ${E} GeV#; R = ${R} m#; cos(#theta_{0}) = ${CD}"
\
80
-o
$WORKDIR
/pdf.gif
81
82
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
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