Jpp  15.0.3
the software that should make you happy
 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 CALIBRATION_DEBUG 1
12 set_variable WORKDIR ${TMPDIR:-/tmp}/
13 set_variable: FORMAT GRAPHICS_FORMAT gif
14 set_variable+ BATCH GRAPHICS_BATCH -B
15 
16 if do_usage $*; then
17  usage "$script (input file)+"
18 fi
19 
20 if (( $# < 1 )); then
21  fatal "Not enough arguments."
22 fi
23 
24 INPUT_FILES=($argv[1,-1])
25 
26 if (( 1 )); then
27 
28  JPlot1D \
29  -f "${INPUT_FILES//\.root/.root:hq}" \
30  -w 1000x500 \
31  -y "0 2" \
32  -\> "module index" \
33  -\^ "status" \
34  -L TR -T "" \
35  -o q.$FORMAT $BATCH
36 
37 fi
38 
39 if (( 1 )); then
40 
41  JPlot1D \
42  -f "${INPUT_FILES//\.root/.root:h0}" \
43  -w 1000x500 \
44  -y "-5 +5" \
45  -\> "module index" \
46  -\^ "#Deltat0 [ns]" \
47  -L TR -T "" \
48  -o t0.$FORMAT $BATCH
49 
50 fi
51 
52 if (( 1 )); then
53 
54  JVariance1D \
55  -f "${INPUT_FILES//\.root/.root:h0}" \
56  -o variance.root \
57  -x "101 -10 +10" \
58  -F 0
59 
60  JPlot1D \
61  -f variance.root:h0 \
62  -\> "#Deltat0 [ns]" \
63  -\^ "number of modules" \
64  -T "" -s 1110 \
65  -o t0s.$FORMAT $BATCH
66 
67 fi
68 
69 if (( 1 )); then
70 
71  JPlot1D \
72  -f "${INPUT_FILES//\.root/.root:hc}" \
73  -w 1000x500 \
74  -y "0 5" \
75  -\> "module index" \
76  -\^ "#chi^{2}/NDF" \
77  -L TR -T "" \
78  -o chi2.$FORMAT $BATCH
79 
80 fi
81 
82 if (( 1 )); then
83 
84  JPlot1D \
85  -f "${INPUT_FILES//\.root/.root:h2}" \
86  -P Y \
87  -\> "#Deltat" \
88  -\^ "number of hits" \
89  -T "" \
90  -o d1t.$FORMAT $BATCH
91 
92 fi
93 
94 if (( 1 )); then
95 
96  JPlot2D \
97  -f "${INPUT_FILES//\.root/.root:h2}" \
98  -O COLZ \
99  -\> "module index" \
100  -\< "#Deltat" \
101  -T "" \
102  -o d2t.$FORMAT $BATCH
103 fi
then usage $script< detector file >< detectorfile > nIf the range of floors is the first detector file is aligned to the second before the comparison nIn only modules within the given range of floors are used fi case set_variable RANGE $argv[3]
data_type w[N+1][M+1]
Definition: JPolint.hh:741
o $QUALITY_ROOT d $DEBUG!JPlot1D f
Definition: JDataQuality.sh:66
exit
Definition: JPizza.sh:36
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
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
Definition: JAcoustics.sh:20
do set_variable OUTPUT_DIRECTORY $WORKDIR T
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR if do_usage *then usage $script[(input file)+] fi set_variable DEBUG set_variable WORKDIR TMPDIR
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable DEBUG set_variable WORKDIR
Definition: JLegolas.sh:20
then awk F
* usage
then JConvertDetectorFormat a $DETECTOR[1] o
do sput $STRING $FLOOR sget MODULE INPUT_FILES
Definition: JCanberra.sh:73
then usage $script< input_file >< detector_file > fi set_variable OUTPUT_DIR set_variable SELECTOR JDAQTimesliceL1 set_variable DEBUG case set_variable DEBUG
script
Definition: JAcoustics.sh:2
esac $JPP_BIN JLogger sh $LOGGER until pgrep JGetMessage</dev/null > dev null
then $DIR JPlotNPE PDG P
Definition: JPlotNPE-PDG.sh:62