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
38 fatal "The output file must have the wildcard %
in the
name, e.g. %.
root"
43 # ------------------------------------------------------------------------------------------
45 # ------------------------------------------------------------------------------------------
47 # default input values
56 numberOfPrefits 50) #JShowerPointSimplex needs 50 prefits from JShowerPrefit
67 -@ `make_equation PARAMETERS` \
74 # ------------------------------------------------------------------------------------------
76 # ------------------------------------------------------------------------------------------
78 # default input values
80 numberOfPrefits 0 # 0 means all inputs are processed
92 time_grid_ns
" -90 90"
100 eval JShowerPointSimplex \
106 -@ `make_equation PARAMETERS` \
114 # ------------------------------------------------------------------------------------------
116 # ------------------------------------------------------------------------------------------
118 # default input values
131 eval JShowerPositionFit \
138 -@ `make_equation PARAMETERS` \
146 # ------------------------------------------------------------------------------------------
147 # JShowerEnergyPrefit
148 # ------------------------------------------------------------------------------------------
150 # default input values
165 eval JShowerEnergyPrefit \
172 -@ `make_equation PARAMETERS` \
180 # ------------------------------------------------------------------------------------------
181 # JShowerDirectionPrefit
182 # ------------------------------------------------------------------------------------------
184 # default input values
191 DMin_m 80 # can be lower to speed up the reconstruction (
for online)
196 scanAngle_deg_lowE 10
197 MaxAngle_deg_highE 20
198 scanAngle_deg_highE 5)
202 eval JShowerDirectionPrefit \
209 -@ `make_equation PARAMETERS` \
217 # ------------------------------------------------------------------------------------------
219 # ------------------------------------------------------------------------------------------
221 # default input values
240 -@ `make_equation PARAMETERS` \
241 -
E $JPP_DIR/software/JReconstruction/energy_correction_showerfit_fullorca.txt \
251 # ------------------------------------------------------------------------------------------
253 # ------------------------------------------------------------------------------------------
266 # ------------------------------------------------------------------------------------------
268 # ------------------------------------------------------------------------------------------
then usage $script< detector file >< detectorfile > nIf the range of floors is the first detector file is aligned to the second before the comparison nIn only modules within the given range of floors are used 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
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 set_variable ALL_PLOTS case set_variable NUMBER_OF_EVENTS
static const JPBS_t PMT(3, 4, 2, 3)
PBS of photo-multiplier tube (PMT)
then for mestimator in normal linear lorentzian
then echo Enter input within $TIMEOUT_S seconds echo n User name
o $QUALITY_ROOT d $DEBUG!JPlot1D f
*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 JConvertDetectorFormat a $DETECTOR[1] o
then JFileTuna f $INPUT_FILE
do JPlot2D f $WORKDIR detector root
&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
source $JPP_DIR setenv csh $JPP_DIR &dev null eval JShellParser o a A
esac $JPP_BIN JLogger sh $LOGGER until pgrep JGetMessage</dev/null > dev null
do if[[!-f $ACOUSTICS_WORKDIR/${KEY}.txt]]