4 # ------------------------------------------------------------------------------------------
6 # Auxiliary script to compare slow control data from database.
8 # ------------------------------------------------------------------------------------------
10 if [ -z $JPP_DIR ];
then
11 echo "Variable JPP_DIR undefined."
15 source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/
null
20 if ( do_usage $* );
then
21 usage "$script <detector> <source run> <target run> [working directory]"
29 *) fatal
"Wrong number of arguments."
35 typeset -Z 8 SOURCE_RUN
40 if [[ ! -
f $PARAMETERS_FILE ]];
then
42 notice
"Creating parameters file $PARAMETERS_FILE."
46 JTuna.sh
$DETECTOR $SOURCE_RUN $OUTPUT_FILE -G
48 file-Tuna.sh $OUTPUT_FILE $PARAMETERS_FILE
52 notice
"File $PARAMETERS_FILE exists; remove to overwrite."
58 JTuna.sh
$DETECTOR $TARGET_RUN $OUTPUT_FILE -G
void set_variable(const std::string &name, const std::string &value)
Set environment variable.
*fatal Wrong number of arguments esac JCookie sh typeset Z DETECTOR typeset Z SOURCE_RUN typeset Z TARGET_RUN set_variable PARAMETERS_FILE $WORKDIR parameters
then usage $script< string identifier >< detectorfile > input file(toashort file)+" "\nNote that the input files and toashort files should be one-to-one related." fi if (( $
&set_variable PARAMETERS_FILE
&set_variable OUTPUT_FILE
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
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
then usage $script< detector file >< inputfile > fi case set_variable WORKDIR
esac $JPP_BIN JLogger sh $LOGGER until pgrep JGetMessage</dev/null > dev null
#define DEBUG(A)
Message macros.