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
30 fatal
"Wrong number of arguments."
37 set_array CALIBRATION
$argv[5,-1]
39 if [[ !
"$OUTPUT_FILE" == *
"%"* ]];
then
40 fatal
"The output file must have the wildcard % in the name, e.g. %.root"
45 # ------------------------------------------------------------------------------------------
47 # ------------------------------------------------------------------------------------------
70 -@ `make_equation PARAMETERS` \
79 # ------------------------------------------------------------------------------------------
81 # ------------------------------------------------------------------------------------------
98 -@ `make_equation PARAMETERS` \
107 # ------------------------------------------------------------------------------------------
109 # ------------------------------------------------------------------------------------------
129 -@ `make_equation PARAMETERS` \
138 # ------------------------------------------------------------------------------------------
140 # ------------------------------------------------------------------------------------------
162 -@ `make_equation PARAMETERS` \
171 # ------------------------------------------------------------------------------------------
173 # ------------------------------------------------------------------------------------------
193 -@ `make_equation PARAMETERS` \
202 # ------------------------------------------------------------------------------------------
204 # ------------------------------------------------------------------------------------------
227 -@ `make_equation PARAMETERS` \
236 # ------------------------------------------------------------------------------------------
237 # rename outputfile and remove intermediate files
238 # ------------------------------------------------------------------------------------------
257 # ------------------------------------------------------------------------------------------
259 # ------------------------------------------------------------------------------------------
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)
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
&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
source $JPP_DIR setenv csh $JPP_DIR &dev null eval JShellParser o a A
do if[[!-f $ACOUSTICS_WORKDIR/${KEY}.txt]]