3 # -------------------------------------------------------------------------------------------- 
    5 # Steering script for the compass calibration procedure of the D0ARCA021 (133) detector. 
    7 # -------------------------------------------------------------------------------------------- 
   10     echo "Variable JPP_DIR undefined." 
   14 source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/
null 
   17 set_array        
RUNS                    13307-13337
 
   20     usage "$script <detector file>" 
   23 if (( $# != 1 )); 
then 
   24     fatal 
"Wrong number of arguments." 
   30     fatal 
"Missing pre-calibrated D0ARCA021 input detector file" 
   33 # Some compasses have to be disabled because their unconsistent behavior perturbs the pre-calibration 
   34 # Compasses ORCA.0010.09, ORCA.0015.01, ORCA.0025.02, ORCA.0025.13, ORCA.0028.03, ORCA.0027.03,  
   35 #           ORCA.0027.06, ORCA.0027.07, ORCA.0027.08, ORCA.0027.09, ORCA.0027.10, ORCA.0027.11,  
   36 #           ORCA.0027.12, ORCA.0027.13, ORCA.0027.14, ORCA.0027.15, ORCA.0027.16, ORCA.0027.17,  
   40     -W 
"808447066 set COMPASS_DISABLE"    \
 
   41     -W 
"817318104 set COMPASS_DISABLE"    \
 
   42     -W 
"816919142 set COMPASS_DISABLE"    \
 
   43     -W 
"817342973 set COMPASS_DISABLE"    \
 
   44     -W 
"809004252 set COMPASS_DISABLE"    \
 
   45     -W 
"809526102 set COMPASS_DISABLE"    \
 
   46     -W 
"808971187 set COMPASS_DISABLE"    \
 
   47     -W 
"808454978 set COMPASS_DISABLE"    \
 
   48     -W 
"808974923 set COMPASS_DISABLE"    \
 
   49     -W 
"808981206 set COMPASS_DISABLE"    \
 
   50     -W 
"808432824 set COMPASS_DISABLE"    \
 
   51     -W 
"808455505 set COMPASS_DISABLE"    \
 
   52     -W 
"808956995 set COMPASS_DISABLE"    \
 
   53     -W 
"809524445 set COMPASS_DISABLE"    \
 
   54     -W 
"817318099 set COMPASS_DISABLE"    \
 
   55     -W 
"809003775 set COMPASS_DISABLE"    \
 
   56     -W 
"808489022 set COMPASS_DISABLE"    \
 
   57     -W 
"808982706 set COMPASS_DISABLE"    \
 
   58     -W 
"808961501 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