Jpp  17.3.2
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Variables
pre-calibration_00000132.sh File Reference

Go to the source code of this file.

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 if
do_usage *then usage $script
< source directory >[user
directory] nThe source
directory corresponds to a pre
calibrated D0ORCA010 detector
nThe user directory should be
specified when this script is
submitted in a batch queue fi
set_variable WORKDIR pwd
set_variable HOMEDIR $WORKDIR
case set_variable 
HOMEDIR
 
&set_variable DIR
 
*fatal Wrong number of
arguments esac set_variable
DETECTOR $DIR detector datx
set_variable TRIPOD $DIR
tripod txt set_variable
TRIPOD_INITIAL tripod_initial
txt set_variable
DETECTOR_INITIAL
detector_initial datx
expand_array RUNS mkdir p
$HOMEDIR cd $HOMEDIR 
if [[!-f $DETECTOR_INITIAL]]
 
then cat $TRIPOD_INITIAL
<< EOF3+257097.050+4743636.700-2440.3005+257040.800+4743317.600-2439.900 6+256807.500+4743636.500-2442.500EOFfiJEditDetector-a $DETECTOR-r"11 18 19"-o detector_tmp.datxeval`JPrintDetector-a $DETECTOR_INITIAL-O SUMMARY`;FINAL_STRINGS=($STRINGS[*]) eval`JPrintDetector-a detector_tmp.datx-O SUMMARY`;FIXED_STRINGS=($STRINGS[*]) if[[!-f detector.datx]];then JEditDetector-a $DETECTOR_INITIAL-o detector.datx JEditDetector-a detector.datx-r"$FIXED_STRINGS[*]"-o detector.datx JMergeDetector-a detector.datx-a detector_tmp.datx-o detector.datx JEditDetector-a detector.datx-k"$FINAL_STRINGS[*]"-o detector.datxfisource JAcousticsToolkit.shtypeset-A TRIPODSget_tripods $TRIPOD_INITIAL TRIPODS;FINAL_TRIPODS=(${(k) TRIPODS[*]}) get_tripods $TRIPOD TRIPODS;FIXED_TRIPODS=(${(k) TRIPODS[*]}) if[[!-f tripod.txt]];then cp-p $TRIPOD_INITIAL tripod.txt JEditTripod-f tripod.txt-r"${FIXED_TRIPODS}"-o tripod.txt JMergeTripod-f tripod.txt-f $TRIPOD-o tripod.txt JEditTripod-f tripod.txt-k"${FINAL_TRIPODS}"-o tripod.txtfiset_variable DETECTOR detector.datxset_variable TRIPOD tripod.txtecho Fixed strings:$FIXED_STRINGS[*]echo Fixed tripods:$FIXED_TRIPODS[*]JAcoustics.sh $DETECTOR_IDcat > acoustics_trigger_parameters txt<< EOFQ=0.0;TMax_s=0.015;numberOfHits=150;EOFJAcousticsEventBuilder.sh $DETECTOR $RUNS[*]INPUT_FILES=(`ls KM3NeT_ ${(l:8::0::0:) DETECTOR_ID}_0 *${^RUNS}_event.root`) cd $WORKDIRif[!$HOMEDIR-ef $WORKDIR];then cp-p $HOMEDIR/$DETECTOR $WORKDIR cp-p $HOMEDIR/${^ACOUSTICS_KEYS}.txt $WORKDIR cp-p $HOMEDIR/${^INPUT_FILES}$WORKDIRfisource $JPP_DIR/examples/JAcoustics/acoustics-fit-toolkit.shtimer_startinitialisefixStrings $FIXED_STRINGS[*]fixTripods $FIXED_TRIPODS[*]stage_0 1 0 100.0e-6 0.5 10 > &stage 
log
 
backup $HOMEDIR
 

Variable Documentation

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

Definition at line 2 of file pre-calibration_00000132.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 if do_usage* then usage $script<source directory> [user directory] nThe source directory corresponds to a pre calibrated D0ORCA010 detector nThe user directory should be specified when this script is submitted in a batch queue fi set_variable WORKDIR pwd set_variable HOMEDIR $WORKDIR case set_variable HOMEDIR

Definition at line 20 of file pre-calibration_00000132.sh.

& set_variable DIR

Definition at line 31 of file pre-calibration_00000132.sh.

timer_lap if[!$HOMEDIR-ef $WORKDIR]

Definition at line 31 of file pre-calibration_00000132.sh.

timer_lap stage_c& stage log

Definition at line 144 of file pre-calibration_00000132.sh.

backup $HOMEDIR

Definition at line 144 of file pre-calibration_00000132.sh.