Jpp  18.0.0-rc.2
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JPizza.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 run JPizza.
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 
27 
28 
29 if do_usage $*; then
30  usage "$script (input file)+ <output file>"\
31  "\nNote that if more than one input file is specified, all other arguments must be provided."
32 fi
33 
34 case $# in
37  0) exit;;
40 esac
41 
42 
43 if (( 1 )); then
44 
45  JPizza \
46  -f ${INPUT_FILE} \
47  -o ${OUTPUT_FILE} \
48  -d ${DEBUG} --!
49 
50  JPrintDomino \
51  -f ${OUTPUT_FILE}
52 
53 fi
54 
55 
56 if (( 1 )); then
57 
58  JPlot1D \
59  -f ${OUTPUT_FILE}:hn \
60  -y "0.5 1.0e3" -Y \
61  -\> "number of muons" \
62  -\^ "number of events [a.u.]" \
63  -T ""
64 
65 fi
66 
67 
68 if (( 1 )); then
69 
70  JPlot1D \
71  -f ${OUTPUT_FILE}:he \
72  -y "0.5 1.0e3" -Y \
73  -\> "E_{#mu}" \
74  -\^ "number of events [a.u.]" \
75  -T ""
76 
77 fi
78 
79 
80 if (( 1 )); then
81 
82  JPlot2D \
83  -f ${OUTPUT_FILE}:h2 \
84  -O COLZ \
85  -\> "R^{2} [m^{2}]" \
86  -\< "z [m]"
87 
88 fi
then usage $script< detector identifier >< startdate\"YYYY-MM-DDHH:MM:SS\"><finaldate\"YYYY-MM-DDHH:MM:SS\"><QA/QCfile> fi case set_variable QAQC_TXT $argv[4]
Definition: JDataMonitor.sh:24
version
Definition: JEditTuneHV.sh:5
o $QUALITY_ROOT d $DEBUG!CHECK_EXIT_CODE JPlot1D f
Definition: JDataQuality.sh:76
usr share Modules init zsh export TMPDIR
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 fatal Wrong number of arguments fi JConvertDetectorFormat a o
then echo
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
Definition: JAcoustics.sh:21
do set_variable OUTPUT_DIRECTORY $WORKDIR T
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
&set_variable OUTPUT_FILE
set_variable INPUT_FILE
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
Definition: JMuonPath.sh:47
then display $WORKDIR
Definition: plot-Domino.sh:128
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 JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
Definition: JCanberra.sh:46
#define DEBUG(A)
Message macros.
Definition: JMessage.hh:62