Jpp  15.0.3
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 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
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
* usage
then JConvertDetectorFormat a $DETECTOR[1] o
&set_variable OUTPUT_FILE
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
Definition: JMuonPath.sh:47
then usage $script< input_file >< detector_file > fi set_variable OUTPUT_DIR set_variable SELECTOR JDAQTimesliceL1 set_variable DEBUG case set_variable DEBUG
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 source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
Definition: JCanberra.sh:42
version
Definition: JCalibratePMT.sh:7