Jpp  15.0.2
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JRose.sh
Go to the documentation of this file.
1 #!/bin/zsh
2 #
3 #
4 # \author mdejong
5 #
6 version=1.0
7 script=${0##*/}
8 
9 if [ -z $JPP_DIR ]; then
10  echo "Variable JPP_DIR undefined."
11  exit
12 fi
13 
14 source $JPP_DIR/setenv.sh $JPP_DIR
15 
16 set_variable: DEBUG COMPASS_DEBUG 2
17 set_variable: WORKDIR COMPASS_WORKDIR ./
18 set_variable DIR $JPP_DIR/examples/JCompass/
19 set_variable: FORMAT GRAPHICS_FORMAT gif
20 set_variable+ BATCH GRAPHICS_BATCH -B
21 
22 if do_usage $*; then
23  usage "$script <input file>"
24 fi
25 
26 if (( $# != 1 )); then
27  fatal "Wrong number of parameters."
28 fi
29 
31 
32 $DIR/JRose \
33  -f ${INPUT_FILE} \
34  -o $WORKDIR/rose.root \
35  -d $DEBUG
36 
37 JPlot1D \
38  -f "$WORKDIR/rose.root:HC.*" \
39  -\> "#chi^{2}/NDF" \
40  -XX \
41  -T "" \
42  -L TR \
43  -o $WORKDIR/chi2.$FORMAT $BATCH
44 
45 JPlot1D \
46  -f "$WORKDIR/rose.root:H0.*" \
47  -\> "residual [deg]" \
48  -T "Q0" \
49  -N "X 505" \
50  -L TR \
51  -o $WORKDIR/Q0.$FORMAT $BATCH
52 
53 JPlot1D \
54  -f "$WORKDIR/rose.root:H1.*" \
55  -\> "residual [deg/m]" \
56  -T "Q1" \
57  -N "X 505" \
58  -L TR \
59  -o $WORKDIR/Q1.$FORMAT $BATCH
60 
61 JPlot1D \
62  -w 1200x600 \
63  -f "$WORKDIR/rose.root:.*\.Q0\.twist" \
64  -\^ "twist [rad]" \
65  -y "-3.2 +3.2" \
66  -t "$TIMESTAMP" \
67  -N "X 505" \
68  -T "Q0" \
69  -L TL \
70  -o $WORKDIR/twist.Q0.$FORMAT $BATCH
71 
72 JPlot1D \
73  -w 1200x600 \
74  -f "$WORKDIR/rose.root:.*\.Q1\.twist" \
75  -y "-0.005 +0.005" \
76  -\^ "twist [rad/m]" \
77  -t "$TIMESTAMP" \
78  -N "X 505" \
79  -T "Q1" \
80  -L TL \
81  -o $WORKDIR/twist.Q1.$FORMAT $BATCH
82 
83 JPlot1D \
84  -w 1200x600 \
85  -f "$WORKDIR/rose.root:.*\.Q0\.swing" \
86  -\^ "swing [rad]" \
87  -y "0.0 0.04" \
88  -t "$TIMESTAMP" \
89  -N "X 505" \
90  -T "Q0" \
91  -L TL \
92  -o $WORKDIR/swing.Q0.$FORMAT $BATCH
93 
94 JPlot1D \
95  -w 1200x600 \
96  -f "$WORKDIR/rose.root:.*\.Q0\.atan2" \
97  -\^ "atan2 [rad]" \
98  -y "-3.2 +3.2" \
99  -t "$TIMESTAMP" \
100  -N "X 505" \
101  -T "Q0" \
102  -L TL \
103  -o $WORKDIR/atan2.Q0.$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 fi case set_variable RANGE $argv[3]
data_type w[N+1][M+1]
Definition: JPolint.hh:741
then JMuonPostfit f
then usage $script< detector file >< inputfile > nUtility script to create PDF and CDF of transition time distribution fi case set_variable WORKDIR
Definition: JLegolas.sh:31
set_variable INPUT_FILE
then JShowerPostfit f $INPUT_FILE o $OUTPUT_FILE N
exit
Definition: JPizza.sh:36
do echo Generating $dir eval DIR
Definition: JPlotNPE1D.sh:54
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
do $DIR JTransitTime o
Definition: JTransitTime.sh:44
* usage
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
version
Definition: JCalibratePMT.sh:7