8 # ------------------------------------------------------------------------------------------
10 # Example script to study L0 and L0 hit probabilities.
12 # ------------------------------------------------------------------------------------------
15 if [ -z $JPP_DIR ];
then
16 echo "Variable JPP_DIR undefined."
21 source $JPP_DIR/setenv.sh $JPP_DIR
29 set_variable NORTH
"0.00 0.00"
42 # production of PDF tables
44 #DETECTORS=(Antares KM3NeT)
51 make -
C $JPP_DIR/software/JPhysics
clean
60 # wait until all PDF tables have been produced
72 echo "Generating histograms for ${DETECTOR} direction ${DIR}."
78 if [[ ! -
f $OUTPUT_FILE ]];
then
80 $JPP_DIR/examples/JPhysics/JMultiPMT \
104 -
T "$TYPE - ${DIR}" \
then usage $script[energy[distance[cosine]]] fi case set_variable CD
then usage $script< input file >[option[primary[working directory]]] nWhere option can be E
then for DETECTOR in $DETECTORS[*]
o $QUALITY_ROOT d $DEBUG!CHECK_EXIT_CODE JPlot1D f
then for dir in NORTH EAST SOUTH WEST
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable DETECTOR_ID set_array RUNS if do_usage *then usage $script< source directory > nThe source directory corresponds to a pre calibrated D0ARCA009 detector fi case set_variable DIR
then fatal Wrong number of arguments fi JConvertDetectorFormat a o
then usage $script fi DETECTORS
static const double C
Physics constants.
case $OPTION in clean clean
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 echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable DEBUG set_variable WORKDIR
&set_variable OUTPUT_FILE
$WORKDIR ev_configure_dqsimulator txt echo process $DQ_SIMULATOR $i $SOURCE_HOST[$index] csh c(setenv ROOTSYS $ROOTSYS &&source $JPP_DIR/setenv.csh $JPP_DIR &&($DQ_SIMULATOR\-u\$NAME\$\-H\$SERVER\$\-M\$LOGGER\$\-d $DEBUG</dev/null > &/dev/null &))'
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
then fatal The output file must have the wildcard in the e g root fi eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
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 eval ls $DIR $ID $TYPE _
do echo Generating $dir eval D
then getFile sh $JPP_ARCHIVE $DETECTOR_ID $RUNS[1] $KEY $VERSION $WORKDIR
#define DEBUG(A)
Message macros.