4 # ------------------------------------------------------------------------------------------
6 # Auxiliary script to convert slow control data from database to ROOT TTree or TGraph's.
8 # ------------------------------------------------------------------------------------------
10 if [ -z $JPP_DIR ];
then
11 echo "Variable JPP_DIR undefined."
15 source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/
null
21 if ( do_usage $* );
then
22 usage "$script <detector> <run> <output file> [option]"
30 *) fatal
"Wrong number of arguments."
35 #typeset -Z 8 DETECTOR
41 if [[ ! -
f $OUTPUT_FILE ]];
then
50 notice
"File $OUTPUT_FILE exists; remove to overwrite."
do echo Generating $dir eval D
void set_variable(const std::string &name, const std::string &value)
Set environment variable.
do set_array DAQHEADER JPrintDAQHeader f
then rm i $OUTPUT_FILE fi let RUN
&set_variable OUTPUT_FILE
then usage $script[distance] fi case set_variable R
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
then usage $script< detector >< run >< outputfile > fi case set_variable OPTION
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 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.