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
27 if ( do_usage $* );
then
28 usage "$script <detector file> <input file> <output file> [PDF file descriptor [PMT parameters file]]"
37 *) fatal
"Wrong number of arguments.";;
40 if [[ !
"$OUTPUT_FILE" == *
"%"* ]];
then
41 fatal
"The output file must have the wildcard % in the name, e.g. %.root"
44 # ------------------------------------------------------------------------------------------
46 # ------------------------------------------------------------------------------------------
50 # default input values
59 numberOfPrefits 50) #JShowerPointSimplex needs 50 prefits from JShowerPrefit
75 # ------------------------------------------------------------------------------------------
77 # ------------------------------------------------------------------------------------------
79 # default input values
81 numberOfPrefits 0 # 0 means all inputs are processed
90 TWindow_ns
"-130, 120"
93 time_grid_ns
" -90, 90"
101 eval JShowerPointSimplex \
105 -@ `make_equation PARAMETERS` \
113 # ------------------------------------------------------------------------------------------
115 # ------------------------------------------------------------------------------------------
117 # default input values
130 eval JShowerPositionFit \
135 -@ `make_equation PARAMETERS` \
143 # ------------------------------------------------------------------------------------------
144 # JShowerEnergyPrefit
145 # ------------------------------------------------------------------------------------------
147 # default input values
162 eval JShowerEnergyPrefit \
167 -@ `make_equation PARAMETERS` \
175 # ------------------------------------------------------------------------------------------
176 # JShowerDirectionPrefit
177 # ------------------------------------------------------------------------------------------
179 # default input values
186 DMin_m 80 # can be lower to speed up the reconstruction (
for online)
191 scanAngle_deg_lowE 10
192 MaxAngle_deg_highE 20
193 scanAngle_deg_highE 5)
197 eval JShowerDirectionPrefit \
202 -@ `make_equation PARAMETERS` \
210 # ------------------------------------------------------------------------------------------
212 # ------------------------------------------------------------------------------------------
214 # default input values
231 -@ `make_equation PARAMETERS` \
232 -
E $JPP_DIR/software/JReconstruction/energy_correction_showerfit_fullorca.txt \
240 # ------------------------------------------------------------------------------------------
242 # ------------------------------------------------------------------------------------------
255 # ------------------------------------------------------------------------------------------
257 # ------------------------------------------------------------------------------------------
then usage $script< detector file >< inputfile >< outputfile > fi case set_variable PDF
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)
then for mestimator in normal linear lorentzian
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 $
&set_variable OUTPUT_FILE
then JFileTuna f $INPUT_FILE
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
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
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.