Jpp  15.0.3
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
plot-acoustics-fit.sh
Go to the documentation of this file.
1 #!/bin/zsh
2 script=${0##*/}
3 
4 # --------------------------------------------------------------------------------------------
5 #
6 # Auxiliary script to plot chi2 evolution of acoustics-fit.sh
7 #
8 # --------------------------------------------------------------------------------------------
9 
10 if [ -z $JPP_DIR ]; then
11  echo "Variable JPP_DIR undefined."
12  exit
13 fi
14 
15 source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/null
16 
17 set_variable: DEBUG ACOUSTICS_DEBUG 2
18 set_variable: WORKDIR ACOUSTICS_WORKDIR ./
19 set_variable: FORMAT GRAPHICS_FORMAT gif
20 set_variable+ BATCH GRAPHICS_BATCH -B
21 
22 if do_usage $*; then
23  usage "$script <stage file> [YMIN YMAX]"
24 fi
25 
26 case $# in
27  3) set_variable YMAX $argv[3];
30  *) fatal "Wrong number of arguments."
31 esac
32 
33 set_variable GRAPH_TXT ${TMPDIR:-/tmp}/graph.txt
34 set_variable GRAPH_ROOT ${TMPDIR:-/tmp}/graph.root
35 
36 eval awk \'\/Processing stage\/,\/Elapsed\/ \{ print \$0 \}\' $INPUT_FILE \
37  | head -n -1 \
38  | tail -n +2 \
39  | grep -v "warning" \
40  | awk '{ printf "%5d %8.3f\n", NR, $(NF) }' > $GRAPH_TXT
41 
42 JGraph \
43  -f $GRAPH_TXT \
44  -o $GRAPH_ROOT
45 
46 if [[ "$YMIN" != "" && "$YMAX" != "" ]]; then
47  set_variable OPTION -y "$YMIN $YMAX"
48 fi
49 
50 JPlot1D \
51  -f $GRAPH_ROOT:\.\* \
52  $OPTION \
53  -> "step" \
54  -\^ "#chi^{2}/NDF" \
55  -S 0.5 \
56  -T "" \
57  -o ${${${INPUT_FILE}##*/}%%.*}.$FORMAT $BATCH
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]
set_variable INPUT_FILE
*fatal Wrong number of arguments esac set_variable GRAPH_TXT
exit
Definition: JPizza.sh:36
fatal Invalid number of arguments esac let YMIN
Definition: testToT.sh:39
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 STRING_TXT awk
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
* usage
then usage $script< input_file >< detector_file > fi set_variable OUTPUT_DIR set_variable SELECTOR JDAQTimesliceL1 set_variable DEBUG case set_variable DEBUG
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
Definition: JCanberra.sh:42
script
Definition: JAcoustics.sh:2
esac $JPP_BIN JLogger sh $LOGGER until pgrep JGetMessage</dev/null > dev null