Jpp  18.2.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Variables
pre-calibration_00000133.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 
set_variable
 
then usage $script< source
directory >[user directory]
nThe source directory
corresponds to a pre
calibrated D0ARCA009 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 {1:a}
 
*fatal Wrong number of
arguments esac 
if [[!-d $WORKDIR/post-calibration]]
 
then cat $TRIPOD_INITIAL
<< EOF7+587198.628+4016228.693-3433.3068+588257.896+4017034.442-3457.2409+587646.419+4017109.956-3456.98010+587763.722+4017253.398-3453.89412+587600.000+4017500.000-3457.24013+587510.740+4016869.160-3451.700EOFfiJEditDetector-a $DETECTOR-r"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-s"-1 mul $MUL"-o detector.datx eval`JPrintDetector-a detector.datx-O SUMMARY`for STRING in ${STRINGS[*]};do set_variable MODULE`getModule-a detector.datx-L"$STRING 0"`JEditDetector-a detector.datx-M"$MODULE setz -11.7"-o detector.datx--!done 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.020;numberOfHits=200;EOFJAcousticsEventBuilder.sh $DETECTOR $RUNS[*]INPUT_FILES=(`ls KM3NeT_ ${(l:8::0::0:) DETECTOR_ID}_0 *${^RUNS}_event.root`) cd $WORKDIRsource $JPP_DIR/examples/JAcoustics/acoustics-fit-toolkit.shif[!$HOMEDIR-ef $WORKDIR];then cp-p $HOMEDIR/$DETECTOR $WORKDIR cp-p $HOMEDIR/${^ACOUSTICS_KEYS}.txt $WORKDIR cp-p $HOMEDIR/${^INPUT_FILES}$WORKDIRfitimer_startinitialisefixStrings $FIXED_STRINGS[*]fixTripods $FIXED_TRIPODS[*]stage_0 0 2 250.0e-6 10.0 0.5 20 > &stage 
log
 
backup $HOMEDIR
 

Variable Documentation

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

Definition at line 2 of file pre-calibration_00000133.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 21 of file pre-calibration_00000133.sh.

then usage $script<source directory> [user directory] nThe source directory corresponds to a pre calibrated D0ARCA009 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 31 of file pre-calibration_00000133.sh.

& set_variable DIR {1:a}

Definition at line 32 of file pre-calibration_00000133.sh.

timer_lap if[!$HOMEDIR-ef $WORKDIR]

Definition at line 32 of file pre-calibration_00000133.sh.

timer_lap stage_c& stage log

Definition at line 174 of file pre-calibration_00000133.sh.

backup $HOMEDIR

Definition at line 174 of file pre-calibration_00000133.sh.