Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
plot-hobbit.sh
Go to the documentation of this file.
1 #!/bin/zsh
2 script=${0##*/}
3 
4 if [ -z $JPP_DIR ]; then
5  echo "Variable JPP_DIR undefined."
6  exit
7 fi
8 
9 source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/null
10 
11 set_variable DEBUG ${CALIBRATE_DEBUG:-1}
13 
14 if ( do_usage $* ); then
15  usage "$script (input file)+"
16 fi
17 
18 if (( $# < 1 )); then
19  fatal "Not enough arguments."
20 fi
21 
22 INPUT_FILES=($argv[1,-1])
23 
24 if (( 1 )); then
25 
26  HISTOGRAMS=`echo ${INPUT_FILES} | sed 's/\.root/\.root:hq/g'`
27 
28  JPlot1D \
29  -f "$HISTOGRAMS" \
30  -w 1000x500 \
31  -y "0 2" \
32  -\> "module index" \
33  -\^ "status" \
34  -L TR -T "" \
35  -o q.gif
36 
37 fi
38 
39 if (( 1 )); then
40 
41  HISTOGRAMS=`echo ${INPUT_FILES} | sed 's/\.root/\.root:h0/g'`
42 
43  JPlot1D \
44  -f "$HISTOGRAMS" \
45  -w 1000x500 \
46  -y "-5 +5" \
47  -\> "module index" \
48  -\^ "#Deltat0 [ns]" \
49  -L TR -T "" \
50  -o t0.gif
51 
52 fi
53 
54 if (( 1 )); then
55 
56  HISTOGRAMS=`echo ${INPUT_FILES} | sed 's/\.root/\.root:h0/g'`
57 
58  JVariance1D \
59  -f "$HISTOGRAMS" \
60  -o variance.root \
61  -x "101 -10 +10" \
62  -F 0
63 
64  JPlot1D \
65  -f variance.root:h0 \
66  -\> "#Deltat0 [ns]" \
67  -\^ "number of modules" \
68  -T "" -s 1110 \
69  -o t0s.gif
70 
71 fi
72 
73 if (( 1 )); then
74 
75  HISTOGRAMS=`echo ${INPUT_FILES} | sed 's/\.root/\.root:hc/g'`
76 
77  JPlot1D \
78  -f "$HISTOGRAMS" \
79  -w 1000x500 \
80  -y "0 5" \
81  -\> "module index" \
82  -\^ "#chi^{2}/NDF" \
83  -L TR -T "" \
84  -o chi2.gif
85 
86 fi
87 
88 if (( 1 )); then
89 
90  HISTOGRAMS=`echo ${INPUT_FILES} | sed 's/\.root/\.root:h2/g'`
91 
92  JPlot1D \
93  -f "$HISTOGRAMS" \
94  -P Y \
95  -y "-50 +50" \
96  -\> "#Deltat" \
97  -\^ "number of hits" \
98  -T "" \
99  -o d1t.gif
100 
101 fi
102 
103 if (( 1 )); then
104 
105  HISTOGRAMS=`echo ${INPUT_FILES} | sed 's/\.root/\.root:h2/g'`
106 
107  JPlot2D \
108  -f "$HISTOGRAMS" \
109  -O COLZ \
110  -\> "module index" \
111  -\< "#Deltat" \
112  -T "" \
113  -o d2t.gif
114 fi
data_type w[N+1][M+1]
Definition: JPolint.hh:708
void set_variable(const std::string &name, const std::string &value)
Set environment variable.
then check_input_file $DETECTOR $INPUT_FILE for OPTION in A B C D E F
Definition: JFilter.sh:47
exit
Definition: JPizza.sh:36
then JPizza f
Definition: JPizza.sh:46
then echo
do set_variable OUTPUT_DIRECTORY $WORKDIR T
* usage
then fatal Not enough arguments fi set_variable DETECTOR $argv[1] INPUT_FILES
then HISTOGRAMS
Definition: plot-Domino.sh:39
*set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2,-2] set_variable OUTPUT_FILE $argv[-1]
Definition: JDomino.sh:39
then usage $script< detector file >< inputfile > fi case set_variable WORKDIR
Definition: JLegolas.sh:28
esac $JPP_BIN JLogger sh $LOGGER until pgrep JGetMessage</dev/null > dev null
then $DIR JPlotNPE PDG P
Definition: JPlotNPE-PDG.sh:60
#define DEBUG(A)
Message macros.
Definition: JMessage.hh:62