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
35 set_array CALIBRATION
$argv[5,-1]
37 if [[ ! "$OUTPUT_FILE" == *"%"* ]];
then
42 # ------------------------------------------------------------------------------------------
44 # ------------------------------------------------------------------------------------------
48 # default input values
57 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 \
115 # ------------------------------------------------------------------------------------------
117 # ------------------------------------------------------------------------------------------
119 # default input values
132 eval JShowerPositionFit \
147 # ------------------------------------------------------------------------------------------
148 # JShowerEnergyPrefit
149 # ------------------------------------------------------------------------------------------
151 # default input values
166 eval JShowerEnergyPrefit \
181 # ------------------------------------------------------------------------------------------
182 # JShowerDirectionPrefit
183 # ------------------------------------------------------------------------------------------
185 # default input values
192 DMin_m 80 # can be lower to speed up the reconstruction (
for online)
197 scanAngle_deg_lowE 10
198 MaxAngle_deg_highE 20
199 scanAngle_deg_highE 5)
203 eval JShowerDirectionPrefit \
218 # ------------------------------------------------------------------------------------------
220 # ------------------------------------------------------------------------------------------
222 # default input values
242 -
E $JPP_DIR/software/JReconstruction/energy_correction_showerfit_fullorca.txt \
252 # ------------------------------------------------------------------------------------------
254 # ------------------------------------------------------------------------------------------
267 # ------------------------------------------------------------------------------------------
269 # ------------------------------------------------------------------------------------------
then usage $script< detector file >< detectorfile > nIf the range of floors is the first detector file is aligned to the second before the comparison fi case set_variable RANGE $argv[3]
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 HISTOGRAM if do_usage *then usage $script< detector file >< inputfile >< outputfile > fi case set_variable PDF
static const JPBS_t PMT(3, 4, 2, 3)
PBS of photo-multiplier tube (PMT)
then for mestimator in normal linear lorentzian
then JPlot1D f $WORKDIR postfit[prefit\] root
then echo Enter input within $TIMEOUT_S seconds echo n User name
*fatal Wrong number of arguments esac JCookie sh typeset Z DETECTOR typeset Z SOURCE_RUN typeset Z TARGET_RUN set_variable PARAMETERS_FILE $WORKDIR parameters
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 echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
do set_variable OUTPUT_DIRECTORY $WORKDIR T
then JFileTuna f $INPUT_FILE
&set_variable OUTPUT_FILE
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR set_variable DEBUG set_variable WORKDIR if do_usage *then usage $script(input file)+" fi if (( $ fatal "Invalid number of arguments." fi JCookie.sh set_array INPUT_FILES $argv[1
then set_variable MODULE getModule a $DETECTOR L $STRING $FLOOR JEditDetector a $DETECTOR M $MODULE add $X o $DETECTOR else echo No update of detector $DETECTOR
then usage $script< input_file >< detector_file > fi set_variable OUTPUT_DIR set_variable SELECTOR JDAQTimesliceL1 set_variable DEBUG case set_variable DEBUG
do set_variable DETECTOR_TXT $WORKDIR detector
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 CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
then usage $script< detector file >< inputfile > fi case set_array PARAMETERS
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
do if[[!-f $ACOUSTICS_WORKDIR/${KEY}.txt]]
then usage $script< string identifier >< detectorfile > event file(toashort file)+" "\nNote that the event files and toashort files should be one-to-one related." fi if (( $