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."
43 if [[ -
f $DETECTOR ]];
then
44 echo "Detector $DETECTOR aleady exists; remove to overwrite."
51 -@
"detectorType = $detectorType" \
52 -@
"numberOfLines = $numberOfLines" \
53 -@
"numberOfFloors = $numberOfFloors" \
54 -@
"floorDistance_m = $floorDistance_m" \
55 -@
"lineDistance_m = $lineDistance_m" \
56 -z $heightOfFirstFloor_m \
do echo Generating $dir eval D
void set_variable(const std::string &name, const std::string &value)
Set environment variable.
esac print_variable DETECTOR INPUT_FILE OUTPUT_FILE CDF for TYPE in
then print_variable DETECTOR INPUT_FILE INTERMEDIATE_FILE check_input_file $DETECTOR $INPUT_FILE check_output_file $INTERMEDIATE_FILE $OUTPUT_FILE JMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
esac $JPP_BIN JLogger sh $LOGGER until pgrep JGetMessage</dev/null > dev null