3 # -------------------------------------------------------------------------------------------- 
    5 # Steering script for the compass calibration procedure of the D1ORCA015 (146) detector. 
    7 # -------------------------------------------------------------------------------------------- 
   10     echo "Variable JPP_DIR undefined." 
   14 source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/
null 
   17 set_array        
RUNS                    16380-16416
 
   20     usage "$script <detector file>" 
   23 if (( $# != 1 )); 
then 
   24     fatal 
"Wrong number of arguments." 
   30     fatal 
"Missing pre-calibrated D1ORCA015 input detector file" 
   33 # Some compasses have to be disabled because their unconsistent behavior perturbs the pre-calibration 
   34 # Compass ORCA.0001.16, ORCA.0018.11 
   37     -W 
"808488997 set COMPASS_DISABLE"    \
 
   38     -W 
"817333825 set COMPASS_DISABLE"    \
 
then usage $script< option > nPossible plot
 
then fatal Wrong number of arguments fi JConvertDetectorFormat a o
 
then fatal Missing detector file $DETECTOR fi eval JPrintDetector a $DETECTOR O IDENTIFIER RUNS
 
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR if do_usage *then usage $script[(input file)+] fi set_variable DEBUG set_variable WORKDIR TMPDIR
 
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
 
then usage $script[energy[distance[z of PMT]]] fi case set_variable z
 
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 JHobbit a $DETECTOR f
 
then fatal Abort fi fi done for RUN in $RUNS[*]
 
do set_variable DETECTOR_TXT $WORKDIR detector
 
then getFile sh $JPP_ARCHIVE $DETECTOR_ID $RUNS[1] $KEY $VERSION $WORKDIR
 
esac $JPP_BIN JLogger sh $LOGGER until pgrep JGetMessage</dev/null > dev null