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
23 if ( do_usage $* );
then
24 usage "$script <detector file> <input file> <output file> [PDF file descriptor]"
32 *) fatal
"Wrong number of arguments.";;
35 if [[ !
"$OUTPUT_FILE" == *
"%"* ]];
then
36 fatal
"The output file must have the wildcard % in the name, e.g. %.root"
40 # ------------------------------------------------------------------------------------------
42 # ------------------------------------------------------------------------------------------
62 -@ `make_equation PARAMETERS` \
71 # ------------------------------------------------------------------------------------------
73 # ------------------------------------------------------------------------------------------
88 -@ `make_equation PARAMETERS` \
97 # ------------------------------------------------------------------------------------------
99 # ------------------------------------------------------------------------------------------
117 -@ `make_equation PARAMETERS` \
126 # ------------------------------------------------------------------------------------------
128 # ------------------------------------------------------------------------------------------
148 -@ `make_equation PARAMETERS` \
157 # ------------------------------------------------------------------------------------------
159 # ------------------------------------------------------------------------------------------
177 -@ `make_equation PARAMETERS` \
186 # ------------------------------------------------------------------------------------------
188 # ------------------------------------------------------------------------------------------
209 -@ `make_equation PARAMETERS` \
218 # ------------------------------------------------------------------------------------------
219 # rename outputfile and remove intermediate files
220 # ------------------------------------------------------------------------------------------
241 # ------------------------------------------------------------------------------------------
243 # ------------------------------------------------------------------------------------------
void set_variable(const std::string &name, const std::string &value)
Set environment variable.
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 SUF
esac print_variable DETECTOR INPUT_FILE OUTPUT_FILE CDF for TYPE in
fi JEventTimesliceWriter a
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 >< outputfile > fi case set_variable PDF
then JFileTuna f $INPUT_FILE
#define DEBUG(A)
Message macros.