Jpp  16.0.2
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions | Variables
acoustics-fit_00000049.sh File Reference

Go to the source code of this file.

Functions

then usage $script[user
directory] nThe user directory
should be specified when this
script is submitted in a batch
queue fi set_variable WORKDIR
pwd 
if (($#==1))
 

Variables

 script
 
then echo Variable JPP_DIR
undefined exit fi source
$JPP_DIR setenv sh $JPP_DIR
&dev null set_variable
DETECTOR_ID set_array RUNS 
set_variable
 
then set_variable HOMEDIR else
set_variable HOMEDIR $WORKDIR
fi set_variable TRIPOD_INITIAL
tripod_initial txt
set_variable TRIPOD tripod txt
set_variable DETECTOR_INITIAL
detector_initial datx
set_variable DETECTOR detector
datx mkdir p $HOMEDIR cd
$HOMEDIR 
if [[!-f $DETECTOR_INITIAL]]
 
then cat $TRIPOD_INITIAL
<< EOF1 256877.5 4743716.7-2438.42 256815.5 4743395.0-2435.53 257096.2 4743636.0-2439.5EOFfiJEditDetector-a $DETECTOR_INITIAL-@"z = -2441.5"-s"-1 mul $MUL"-o $DETECTORcp-p $TRIPOD_INITIAL $TRIPODJAcoustics.sh $DETECTOR_IDJAcousticsEventBuilder.sh $DETECTOR $RUNS[*]cd $WORKDIRif[!$HOMEDIR-ef $WORKDIR];then cp-p $HOMEDIR/$TRIPOD $WORKDIR cp-p $HOMEDIR/$DETECTOR $WORKDIR for RANGE in $RUNS[*];do for((RUN=${RANGE%%-*};$RUN<=${RANGE##*-};RUN+=1));do cp-p $HOMEDIR/KM3NeT_ ${(l:8::0::0:) DETECTOR_ID}_ ${(l:8::0::0:) RUN}_event.root $WORKDIR done done JAcoustics.sh $DETECTOR_IDfifor STAGE in`echo $STAGES`;do $JPP_DIR/examples/JAcoustics/acoustics-fit.sh $DETECTOR $TRIPOD $STAGE $WORKDIR/KM3NeT_ ${(l:8::0::0:) DETECTOR_ID}_ *event.root > $HOMEDIR 
stage
 

Function Documentation

then usage $script [user directory] nThe user directory should be specified when this script is submitted in a batch queue fi set_variable WORKDIR pwd if ( ($#==1)  )

Variable Documentation

script
Initial value:
=${0##*/}
if [ -z $JPP_DIR ]

Definition at line 2 of file acoustics-fit_00000049.sh.

then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR& dev null set_variable DETECTOR_ID set_array RUNS set_variable

Definition at line 22 of file acoustics-fit_00000049.sh.

then JDetectorDB D $DETECTOR_ID r $RUNS [1] WW o $DETECTOR_INITIAL fi if[[!-f $TRIPOD_INITIAL]]

Definition at line 47 of file acoustics-fit_00000049.sh.

then cat $TRIPOD_INITIAL<<EOF1 256877.5 4743716.7 -2438.42 256815.5 4743395.0 -2435.53 257096.2 4743636.0 -2439.5EOFfiJEditDetector -a $DETECTOR_INITIAL -@ "z = -2441.5" -s "-1 mul $MUL" -o $DETECTORcp -p $TRIPOD_INITIAL $TRIPODJAcoustics.sh $DETECTOR_IDJAcousticsEventBuilder.sh $DETECTOR $RUNS[*]cd $WORKDIRif [ ! $HOMEDIR -ef $WORKDIR ]; then cp -p $HOMEDIR/$TRIPOD $WORKDIR cp -p $HOMEDIR/$DETECTOR $WORKDIR for RANGE in $RUNS[*]; do for (( RUN = ${RANGE%%-*}; $RUN <= ${RANGE##*-}; RUN += 1 )); do cp -p $HOMEDIR/KM3NeT_${(l:8::0::0:)DETECTOR_ID}_${(l:8::0::0:)RUN}_event.root $WORKDIR done done JAcoustics.sh $DETECTOR_IDfifor STAGE in `echo $STAGES`; do $JPP_DIR/examples/JAcoustics/acoustics-fit.sh $DETECTOR $TRIPOD $STAGE $WORKDIR/KM3NeT_${(l:8::0::0:)DETECTOR_ID}_*event.root > $HOMEDIR stage
Initial value:
{STAGE}.log
if [ ! $HOMEDIR -ef $WORKDIR ]
then display $WORKDIR
Definition: plot-Domino.sh:128

Definition at line 102 of file acoustics-fit_00000049.sh.