7 # ------------------------------------------------------------------------------------------ 
    9 #                 Utility script to generate KM3NeT reference detector. 
   11 # ------------------------------------------------------------------------------------------ 
   13 if [ -z $JPP_DIR ]; 
then 
   14     echo "Variable JPP_DIR undefined." 
   18 source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/
null 
   25 if ( do_usage $* ); 
then 
   26     usage "$script [detector file [variant [identifier]]]" 
   34     *) fatal 
"Wrong number of arguments." 
   44 if [[ -
f $DETECTOR ]]; 
then 
   45     echo "Detector $DETECTOR aleady exists; remove to overwrite." 
   52     -@ 
"detectorType    = $detectorType"     \
 
   53     -@ 
"numberOfLines   = $numberOfLines"    \
 
   54     -@ 
"numberOfFloors  = $numberOfFloors"   \
 
   55     -@ 
"floorDistance_m = $floorDistance_m"  \
 
   56     -@ 
"lineDistance_m  = $lineDistance_m"   \
 
   57     -z $heightOfFirstFloor_m                 \
 
do echo Generating $dir eval D
 
void set_variable(const std::string &name, const std::string &value)
Set environment variable. 
 
do set_array DAQHEADER JPrintDAQHeader f
 
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
 
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
 
esac $JPP_BIN JLogger sh $LOGGER until pgrep JGetMessage</dev/null > dev null