7 # ------------------------------------------------------------------------------------------
9 # Script to fit L1dt time offsets from triggered data and MC data.
11 # ------------------------------------------------------------------------------------------
13 if [ -z $JPP_DIR ];
then
14 echo "Variable JPP_DIR undefined."
17 source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/
null
24 if ( do_usage $* );
then
25 usage "$script <detector file> <input file(s)> <model file(s)> [number of floors in fit]"
33 *) fatal
"Wrong number of arguments.";;
38 # ------------------------------------------------------------------------------------------
39 # JMonitorL1dt for data
40 # ------------------------------------------------------------------------------------------
54 # ------------------------------------------------------------------------------------------
55 # JMonitorL1dt for monte carlo
56 # ------------------------------------------------------------------------------------------
70 # ------------------------------------------------------------------------------------------
72 # ------------------------------------------------------------------------------------------
85 # ------------------------------------------------------------------------------------------
87 # ------------------------------------------------------------------------------------------
do echo Generating $dir eval D
void set_variable(const std::string &name, const std::string &value)
Set environment variable.
*fatal Wrong number of arguments esac check_input_file $INPUT_FILE for TIMESLICE in JDAQTimeslice JDAQTimesliceL0 JDAQTimesliceL1 JDAQTimesliceL2 JDAQTimesliceSN
then check_input_file $DETECTOR $INPUT_FILE for OPTION in A B C D E F
esac print_variable DETECTOR INPUT_FILE OUTPUT_FILE CDF for TYPE in
fi JEventTimesliceWriter a
&set_variable JDAQ_TIMESLICE
then timer_start(JRandomTimesliceWriter-a ${DETECTOR}-o ${PIPE}-n ${NUMBER_OF_SLICES}-P ${PMT_FILE}-d ${DEBUG}-S ${SEED}-B"$BACKGROUND_HZ"-N"$RECYCLING"--!&&for((i=0;$i!=10;++i));do;echo 'EOF' > $PIPE;usleep 100000;done &&rm-f $PIPE)&JTimesliceReprocessor-a $
then print_variable DETECTOR INPUT_FILE INTERMEDIATE_FILE check_input_file $DETECTOR $INPUT_FILE check_output_file $INTERMEDIATE_FILE $OUTPUT_FILE JMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
then usage $script< detector file >< inputfile(s)>< modelfile(s)> fi case set_variable NUMBEROFFLOORS
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.