9 # ------------------------------------------------------------------------------------------ 
   11 #                         Utility script to run JPulsar. 
   13 # ------------------------------------------------------------------------------------------ 
   15 if [ -z $JPP_DIR ]; 
then 
   16     echo "Variable JPP_DIR undefined." 
   21 source $JPP_DIR/setenv.sh $JPP_DIR
 
   24     usage "$script <detector file> <input file> <output file>" 
   27 if (( $# == 3 )); 
then 
   32     fatal 
"Wrong number of arguments." 
   37     fatal 
"Missing detector file $DETECTOR" 
   42     fatal 
"Missing input file $INPUT_FILE" 
   45 echo "Detector to overwrite: $DETECTOR." 
   46 echo "Input:                 $INPUT_FILE." 
   47 echo "Output:                $OUTPUT_FILE" 
   50 # DOM IDs in DU-2, reference channels from elog http://elog.km3net.de/DU+Integration/35 
   52 cat>dom_channel_map_du2<<EOF
 
   76 cat>dom_channel_map_du3<<EOF
 
  101 cat>dom_channel_map_du4<<EOF
 
  123 # DOM IDs in DU-4; top hemisphere 
  125 cat>dom_channel_map_du4_top<<EOF
 
  147         -! 
"`cat dom_channel_map_du4_top`" \
 
  156         -! 
"`cat dom_channel_map_du4_top`" \
 
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
 
then JFileTuna f $INPUT_FILE
 
&set_variable OUTPUT_FILE
 
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
 
source $JPP_DIR setenv csh $JPP_DIR eval JShellParser o a A