8 # ------------------------------------------------------------------------------------------
10 # Script to run the JPP Shower Reconstruction Chain for ORCA.
12 # ------------------------------------------------------------------------------------------
15 if [ -z $JPP_DIR ];
then
16 echo "Variable JPP_DIR undefined."
19 source $JPP_DIR/setenv.sh $JPP_DIR
25 if ( do_usage $* );
then
26 usage "$script <detector file> <input file> <output file> [PDF file descriptor]"
34 *) fatal
"Wrong number of arguments.";;
37 if [[ !
"$OUTPUT_FILE" == *
"%"* ]];
then
38 fatal
"The output file must have the wildcard % in the name, e.g. %.root"
41 # ------------------------------------------------------------------------------------------
43 # ------------------------------------------------------------------------------------------
46 # default input values
62 -@ `make_equation PARAMETERS` \
69 # ------------------------------------------------------------------------------------------
71 # ------------------------------------------------------------------------------------------
74 # default input values
84 TWindow_ns
"-130, 120"
87 time_grid_ns
" -90, 90"
95 eval JShowerPointSimplex \
99 -@ `make_equation PARAMETERS` \
106 # ------------------------------------------------------------------------------------------
108 # ------------------------------------------------------------------------------------------
111 # default input values
123 eval JShowerPositionFit \
128 -@ `make_equation PARAMETERS` \
135 # ------------------------------------------------------------------------------------------
136 # JShowerEnergyPrefit
137 # ------------------------------------------------------------------------------------------
140 # default input values
154 eval JShowerEnergyPrefit \
159 -@ `make_equation PARAMETERS` \
166 # ------------------------------------------------------------------------------------------
167 # JShowerDirectionPrefit
168 # ------------------------------------------------------------------------------------------
171 # default input values
177 DMin_m 80 # can be lower to speed up the reconstruction (
for online)
182 scanAngle_deg_lowE 10
183 MaxAngle_deg_highE 20
184 scanAngle_deg_highE 5)
187 eval JShowerDirectionPrefit \
192 -@ `make_equation PARAMETERS` \
199 # ------------------------------------------------------------------------------------------
201 # ------------------------------------------------------------------------------------------
204 # default input values
221 -@ `make_equation PARAMETERS` \
222 -
E $JPP_DIR/software/JReconstruction/energy_correction_showerfit_fullorca.txt \
229 # ------------------------------------------------------------------------------------------
230 # rename outputfile and remove intermediate files
231 # ------------------------------------------------------------------------------------------
252 # ------------------------------------------------------------------------------------------
254 # ------------------------------------------------------------------------------------------
void set_variable(const std::string &name, const std::string &value)
Set environment variable.
then check_input_file $DETECTOR $INPUT_FILE for OPTION in A B C D E F
then for mestimator in normal linear lorentzian
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
esac $JPP_BIN JLogger sh $LOGGER until pgrep JGetMessage</dev/null > dev null
then usage $script[input file[working directory[option]]] nWhere option can be E
#define DEBUG(A)
Message macros.