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
24 if ( do_usage $* );
then
25 usage "$script [detector file [variant [identifier]]]"
33 *) fatal
"Wrong number of arguments."
43 if [[ -
f $DETECTOR ]];
then
44 echo "Detector $DETECTOR aleady exists; remove to overwrite."
50 -@
"detectorType = $detectorType" \
51 -@
"numberOfLines = $numberOfLines" \
52 -@
"numberOfFloors = $numberOfFloors" \
53 -@
"floorDistance_m = $floorDistance_m" \
54 -@
"lineDistance_m = $lineDistance_m" \
55 -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 CHECK_EXIT_CODE 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