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
23 if ( do_usage $* );
then
24 usage "$script <detector file> <input file> <output file>"
27 if (( $# == 3 ));
then
32 echo "Wrong number of arguments."
37 if [[ ! -
f $DETECTOR ]];
then
38 echo "Missing detector file $DETECTOR"
43 echo "Missing input file $INPUT_FILE"
47 echo "Detector to overwrite: $DETECTOR."
48 echo "Input: $INPUT_FILE."
49 echo "Output: $OUTPUT_FILE"
52 # DOM IDs in DU-2, reference channels from elog http://elog.km3net.de/DU+Integration/35
54 cat>dom_channel_map_du2<<EOF
78 cat>dom_channel_map_du3<<EOF
103 cat>dom_channel_map_du4<<EOF
125 # DOM IDs in DU-4; top hemisphere
127 cat>dom_channel_map_du4_top<<EOF
149 -!
"`cat dom_channel_map_du4_top`" \
158 -!
"`cat dom_channel_map_du4_top`" \
fi JEventTimesliceWriter a
then JFileTuna f $INPUT_FILE
source $JPP_DIR setenv csh $JPP_DIR eval JShellParser o a A