4 if [ -z $JPP_DIR ];
then
5 echo "Variable JPP_DIR undefined."
9 source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/
null
17 set_variable: FORMAT GRAPHICS_FORMAT gif
21 usage "$script <directory> [stage]"\
22 "\nInput directory corresponds to location of stage files of a pre-calibration procedure."
28 *) fatal
"Wrong number of arguments."
35 awk 'BEGIN { YMAX = 0.0; YMIN = 1.0e10 } END { printf "%9.5f %9.5f", YMIN, YMAX} /chi2/ { if ($3 < 1.0e10) { if ($3 < YMIN) { YMIN = $3}; if ($3 > YMAX) { YMAX = $3 }}}' $WORKDIR/
stage.txt |
read YMIN YMAX
37 let
"Y = $YMAX - $YMIN"
38 let
"YMAX = floor(($YMAX + 0.1 * ($Y)) / $PRECISION + 1.0) * $PRECISION"
39 let
"YMIN = floor(($YMIN - 0.1 * ($Y)) / $PRECISION - 0.0) * $PRECISION"
41 if (( $YMIN < 0.0 ));
then
59 '/gradient/ { printf "%5d %9.5f %5d %9.5f\n", NR, YMIN, NR, YMAX }' $WORKDIR/
stage.txt >
$WORKDIR/L1.txt
74 'BEGIN { NL = 1 } /string:/ { printf "%5d %9.5f %04d\n", NL, YMAX * 0.97, $2; NL = NR + 1 }' $WORKDIR/
stage.txt >
$WORKDIR/T1.txt
79 'BEGIN { NL = 1 } /string:/ { printf "%5d %9.5f %5d %9.5f\n", NL, YMIN, NL, YMAX; NL = NR + 1 }' $WORKDIR/
stage.txt >
$WORKDIR/L2.txt
99 -
f${^OUTPUT_FILES}
":.*" \
106 -
T "${${INPUT_FILE:t}:r}" \
std::istream & read(std::istream &in, JTestSummary &summary, const char delimiter= ' ')
Read test summary.
then usage $script< directory A >< directoryB > nIn each there should be a file detector datx and tripod txt
then usage $script< directory >[stage] nInput directory corresponds to location of stage files of a pre calibration procedure fi case set_variable STAGE
Auxiliary data structure for line.
o $QUALITY_ROOT d $DEBUG!CHECK_EXIT_CODE JPlot1D f
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
do JPlot2D f $WORKDIR canberra[${EMITTER}\] root
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable DETECTOR_ID set_array RUNS if do_usage *then usage $script< source directory > nThe source directory corresponds to a pre calibrated D0ARCA009 detector fi case set_variable DIR
then fatal Wrong number of arguments fi JConvertDetectorFormat a o
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
do grep(chi2\[.\]\|gradient\|string:\)" $INPUT_FILE > $WORKDIR/stage.txt awk 'BEGIN
do set_variable OUTPUT_DIRECTORY $WORKDIR T
then usage set_variable JSON_FILE $argv[-1] JEditDetector a $DETECTOR P set HIGH_RATE_VETO_DISABLE o $WORKDIR detector datx d set_variable DETECTOR $WORKDIR detector datx OUTPUT_FILES
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
do set_variable STRING_TXT awk
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable DEBUG set_variable WORKDIR
then JFileTuna f $INPUT_FILE
Auxiliary data structure for line.
then usage $script< input file >[option[primary[working directory]]] nWhere option can be N
then fatal The output file must have the wildcard in the e g root fi 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
*fatal Wrong number of arguments esac for INPUT_FILE in eval ls rt $DIR stage
then getFile sh $JPP_ARCHIVE $DETECTOR_ID $RUNS[1] $KEY $VERSION $WORKDIR
esac $JPP_BIN JLogger sh $LOGGER until pgrep JGetMessage</dev/null > dev null
#define DEBUG(A)
Message macros.
Double_t g1(const Double_t x)
Function.