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." 
   18 source $JPP_DIR/setenv.sh $JPP_DIR
 
   19 source $JPP_DIR/externals/km3net-dataformat/definitions/reconstruction.sh
 
   33     fatal 
"Wrong number of arguments." 
   40 set_array    CALIBRATION     
$argv[5,-1]
 
   42 if [[ ! 
"$OUTPUT_FILE" == *
"%"* ]]; 
then 
   43   fatal 
"The output file must have the wildcard % in the name, e.g. %.root" 
   52 if [[ 
"$OVERWRITE" == 1 ]]; 
then 
   66 if (( ${#CALIBRATION} != 0 )); 
then 
   71 # ------------------------------------------------------------------------------------------ 
   73 # ------------------------------------------------------------------------------------------ 
   96     -@ `make_equation PARAMETERS`  \
 
  107 # ------------------------------------------------------------------------------------------ 
  109 # ------------------------------------------------------------------------------------------ 
  126     -@ `make_equation PARAMETERS`  \
 
  133 APPLICATIONS+=$JMUONSIMPLEX
 
  139 # ------------------------------------------------------------------------------------------ 
  141 # ------------------------------------------------------------------------------------------ 
  161     -@ `make_equation PARAMETERS`  \
 
  168 APPLICATIONS+=$JMUONSTART
 
  174 # ------------------------------------------------------------------------------------------ 
  176 # ------------------------------------------------------------------------------------------ 
  198     -@ `make_equation PARAMETERS`  \
 
  205 APPLICATIONS+=$JMUONGANDALF
 
  211 # ------------------------------------------------------------------------------------------ 
  213 # ------------------------------------------------------------------------------------------ 
  233     -@ `make_equation PARAMETERS`  \
 
  240 APPLICATIONS+=$JMUONSTART
 
  246 # ------------------------------------------------------------------------------------------ 
  248 # ------------------------------------------------------------------------------------------ 
  271     -@ `make_equation PARAMETERS`  \
 
  278 APPLICATIONS+=$JMUONENERGY
 
  284 # ------------------------------------------------------------------------------------------ 
  286 # ------------------------------------------------------------------------------------------ 
  293     -
A "$APPLICATIONS[*]"          \
 
  304 # ------------------------------------------------------------------------------------------ 
  305 #                   rename outputfile and remove intermediate files 
  306 # ------------------------------------------------------------------------------------------ 
  318 # ------------------------------------------------------------------------------------------ 
  320 # ------------------------------------------------------------------------------------------ 
then usage $script< detector identifier >< startdate\"YYYY-MM-DDHH:MM:SS\"><finaldate\"YYYY-MM-DDHH:MM:SS\"><QA/QCfile> fi case set_variable QAQC_TXT $argv[4]
 
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
 
then usage $script[< detector identifier >< run range >]< QA/QCfile > nExample script to produce data quality plots nWhen a detector identifier and run range are data are downloaded from the database nand subsequently stored in the given QA QC file
 
static JDetectorMechanics getMechanics
Function object to get string mechanics. 
 
static const JPBS_t PMT(3, 4, 2, 3)
PBS of photo-multiplier tube (PMT) 
 
o $QUALITY_ROOT d $DEBUG!CHECK_EXIT_CODE 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 fatal Wrong number of arguments fi JConvertDetectorFormat a o
 
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 $
 
do set_variable OUTPUT_DIRECTORY $WORKDIR T
 
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
 
then fatal The output file must have the wildcard in the e g root fi typeset A PARAMETERS typeset a APPLICATIONS APPLICATIONS
 
then JFileTuna f $INPUT_FILE
 
&set_variable OUTPUT_FILE
 
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
 
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 fatal Wrong number of arguments fi set_variable ARCHIVE $argv[1] set_variable VERSION $argv[2] set_variable DIR $argv[3] source JAcousticsToolkit sh set_variable DETECTOR $DIR $ACOUSTICS_DETECTOR if[[!-f $DETECTOR]]
 
do set_variable DETECTOR_TXT $WORKDIR detector
 
then usage $script(input file)+< output file >" fi if (( $ fatal "Wrong number of arguments." fi set_array INPUT_FILES $argv[1
 
source $JPP_DIR setenv csh $JPP_DIR &dev null eval JShellParser o a A
 
#define DEBUG(A)
Message macros.