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  JPlot1D \
27  -f "${INPUT_FILES//\.root/.root:hq}" \
28  -w 1000x500 \
29  -y "0 2" \
30  -\> "module index" \
31  -\^ "status" \
32  -L TR -T "" \
33  -o q.gif
34 
35 fi
36 
37 if (( 1 )); then
38 
39  JPlot1D \
40  -f "${INPUT_FILES//\.root/.root:h0}" \
41  -w 1000x500 \
42  -y "-5 +5" \
43  -\> "module index" \
44  -\^ "#Deltat0 [ns]" \
45  -L TR -T "" \
46  -o t0.gif
47 
48 fi
49 
50 if (( 1 )); then
51 
52  JVariance1D \
53  -f "${INPUT_FILES//\.root/.root:h0}" \
54  -o variance.root \
55  -x "101 -10 +10" \
56  -F 0
57 
58  JPlot1D \
59  -f variance.root:h0 \
60  -\> "#Deltat0 [ns]" \
61  -\^ "number of modules" \
62  -T "" -s 1110 \
63  -o t0s.gif
64 
65 fi
66 
67 if (( 1 )); then
68 
69  JPlot1D \
70  -f "${INPUT_FILES//\.root/.root:hc}" \
71  -w 1000x500 \
72  -y "0 5" \
73  -\> "module index" \
74  -\^ "#chi^{2}/NDF" \
75  -L TR -T "" \
76  -o chi2.gif
77 
78 fi
79 
80 if (( 1 )); then
81 
82  JPlot1D \
83  -f "${INPUT_FILES//\.root/.root:h2}" \
84  -P Y \
85  -\> "#Deltat" \
86  -\^ "number of hits" \
87  -T "" \
88  -o d1t.gif
89 
90 fi
91 
92 if (( 1 )); then
93 
94  JPlot2D \
95  -f "${INPUT_FILES//\.root/.root:h2}" \
96  -O COLZ \
97  -\> "module index" \
98  -\< "#Deltat" \
99  -T "" \
100  -o d2t.gif
101 fi
data_type w[N+1][M+1]
Definition: JPolint.hh:741
void set_variable(const std::string &name, const std::string &value)
Set environment variable.
exit
Definition: JPizza.sh:36
do set_array DAQHEADER JPrintDAQHeader f
Definition: JTuneHV.sh:74
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
then echo
do set_variable OUTPUT_DIRECTORY $WORKDIR T
do $DIR JTransitTime o
Definition: JTransitTime.sh:44
then awk F
* usage
then fatal Not enough arguments fi set_variable DETECTOR $argv[1] INPUT_FILES
*set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2,-2] set_variable OUTPUT_FILE $argv[-1]
Definition: JDomino.sh:39
script
Definition: JAcoustics.sh:2
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