9 # ------------------------------------------------------------------------------------------
11 # Utility script to test JCalibrateK40/JFitK40.
13 # ------------------------------------------------------------------------------------------
15 if [ -z $JPP_DIR ];
then
16 echo "Variable JPP_DIR undefined."
20 source $JPP_DIR/setenv.sh $JPP_DIR
28 usage "$script [working directory]"
38 set_variable numberOfSlices 6000
49 -@
"detectorType = $detectorType" \
50 -@
"numberOfLines = $numberOfLines" \
51 -@
"numberOfFloors = $numberOfFloors" \
59 debug "Generating random background."
63 JRandomTimesliceWriter \
68 -
P "pmt= 101 0 QE=$QE" \
69 -
P "pmt= 101 1 QE=$QE" \
70 -
P "pmt= 101 2 QE=$QE" \
71 -
P "pmt= 101 1 QE=$QE" \
72 -
P "pmt= 101 3 QE=$QE" \
73 -
P "pmt= 101 4 QE=$QE" \
74 -
P "pmt= 101 5 QE=$QE" \
75 -
P "pmt= 101 6 QE=$QE" \
76 -
P "pmt= 101 7 QE=$QE" \
77 -
P "pmt= 101 8 QE=$QE" \
78 -
P "pmt= 101 9 QE=$QE" \
79 -
P "pmt= 101 10 QE=$QE" \
80 -
P "pmt= 101 11 QE=$QE" \
81 -
P "pmt= 101 12 QE=$QE" \
82 -
P "pmt= 101 11 QE=$QE" \
83 -
P "pmt= 101 13 QE=$QE" \
84 -
P "pmt= 101 14 QE=$QE" \
85 -
P "pmt= 101 15 QE=$QE" \
86 -
P "pmt= 101 16 QE=$QE" \
87 -
P "pmt= 101 17 QE=$QE" \
88 -
P "pmt= 101 18 QE=$QE" \
89 -
P "pmt= 101 19 QE=$QE" \
90 -
P "pmt= 101 20 QE=$QE" \
91 -
P "pmt= 101 21 QE=$QE" \
92 -
P "pmt= 101 22 QE=$QE" \
93 -
P "pmt= 101 21 QE=$QE" \
94 -
P "pmt= 101 23 QE=$QE" \
95 -
P "pmt= 101 24 QE=$QE" \
96 -
P "pmt= 101 25 QE=$QE" \
97 -
P "pmt= 101 26 QE=$QE" \
98 -
P "pmt= 101 27 QE=$QE" \
99 -
P "pmt= 101 28 QE=$QE" \
100 -
P "pmt= 101 29 QE=$QE" \
101 -
P "pmt= 101 30 QE=$QE" \
109 debug "Processing data."
111 if ( ! reuse_file
$WORKDIR/trigger_processor.root );
then
118 -
@"TMaxLocal_ns=50" \
127 debug "Monitoring data."
136 debug "Merging data."
143 debug "Fitting data."
144 debug "Detector: $DETECTOR"
157 debug "Plotting results"
171 debug "Plotting standard deviations"
179 -
T "standard deviation" \
180 -
o stdev.$FORMAT $BATCH
186 debug "Plotting results for t0"
194 -
T "time calibration" \
201 debug "Plotting results for sigma"
209 -
T "time resolution" \
217 debug "Plotting results for QE"
remove to overwrite exit fi JDetector D $ID detectorType
JFitK40_t< TF2 > JFitK40
Type definition for backward compatibility.
o $QUALITY_ROOT d $DEBUG!CHECK_EXIT_CODE JPlot1D f
usr share Modules init zsh export TMPDIR
V(JDAQEvent-JTriggerReprocessor)*1.0/(JDAQEvent+1.0e-10)
then fatal Wrong number of arguments fi JConvertDetectorFormat a o
static const double C
Physics constants.
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
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
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
then set_variable MODULE getModule a $DETECTOR L $STRING $FLOOR JEditDetector a $DETECTOR M $MODULE add $X o $DETECTOR else echo No update of detector $DETECTOR
do set_variable DETECTOR_TXT $WORKDIR detector
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
do echo Generating $dir eval D
#define DEBUG(A)
Message macros.