7 # ------------------------------------------------------------------------------------------
9 # Script to run the JPP Track Reconstruction Chain for ORCA.
11 # ------------------------------------------------------------------------------------------
13 if [ -z $JPP_DIR ];
then
14 echo "Variable JPP_DIR undefined."
17 source $JPP_DIR/setenv.sh $JPP_DIR
25 if ( do_usage $* );
then
26 usage "$script <detector file> <input file> <output file> [PDF file descriptor [PMT parameters file]]"
35 *) fatal
"Wrong number of arguments.";;
38 if [[ !
"$OUTPUT_FILE" == *
"%"* ]];
then
39 fatal
"The output file must have the wildcard % in the name, e.g. %.root"
43 # ------------------------------------------------------------------------------------------
45 # ------------------------------------------------------------------------------------------
66 -@ `make_equation PARAMETERS` \
75 # ------------------------------------------------------------------------------------------
77 # ------------------------------------------------------------------------------------------
92 -@ `make_equation PARAMETERS` \
101 # ------------------------------------------------------------------------------------------
103 # ------------------------------------------------------------------------------------------
121 -@ `make_equation PARAMETERS` \
130 # ------------------------------------------------------------------------------------------
132 # ------------------------------------------------------------------------------------------
152 -@ `make_equation PARAMETERS` \
161 # ------------------------------------------------------------------------------------------
163 # ------------------------------------------------------------------------------------------
181 -@ `make_equation PARAMETERS` \
190 # ------------------------------------------------------------------------------------------
192 # ------------------------------------------------------------------------------------------
213 -@ `make_equation PARAMETERS` \
222 # ------------------------------------------------------------------------------------------
223 # rename outputfile and remove intermediate files
224 # ------------------------------------------------------------------------------------------
245 # ------------------------------------------------------------------------------------------
247 # ------------------------------------------------------------------------------------------
void set_variable(const std::string &name, const std::string &value)
Set environment variable.
static const JPBS_t PMT(3, 4, 2, 3)
PBS of photo-multiplier tube (PMT)
do set_array DAQHEADER JPrintDAQHeader f
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR set_variable DEBUG set_variable PDF $JPP_DATA J p dat set_variable PMT $JPP_DATA PMT_parameters txt set_variable SUF
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 usage $script< detector file >< inputfile >< outputfile > fi case set_variable PDF
then JFileTuna f $INPUT_FILE
&set_variable OUTPUT_FILE
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
then $JPP_DIR software JCalibrate JCalibrateToT a
alias put_queue eval echo n
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< input_file >< detector_file >< output_file(.root)> fi set_variable NUMBER_OF_TIMESLICES set_variable NUMBER_OF_SUMMARYSLICES set_variable NUMBER_OF_EVENTS case set_variable NUMBER_OF_EVENTS
#define DEBUG(A)
Message macros.