8 # ------------------------------------------------------------------------------------------
10 # Example script for JDAQEvent.
12 # ------------------------------------------------------------------------------------------
15 if [ -z $JPP_DIR ]; then
16 echo "Variable JPP_DIR undefined."
21 source $JPP_DIR/setenv.sh $JPP_DIR
25 set_variable WORKDIR ${TMPDIR:-/tmp}/
26 set_variable OUTPUT_FILE $WORKDIR/event.root
27 set_variable TRIGGER_MASK 10 # 3D Shower
28 set_variable TRIGGER_MASK 100 # MX Shower
29 set_variable TRIGGER_MASK 10000 # 3D Muon
30 set_variable TRIGGER_MASK 11111 # All
33 usage "$script <input file> [output file]"
37 2) set_variable OUTPUT_FILE $2;&
38 1) set_variable INPUT_FILE $1;;
39 *) fatal "Wrong number of arguments."
44 print_variable INPUT_FILE OUTPUT_FILE
45 check_input_file $INPUT_FILE
49 $JPP_DIR/examples/JDAQ/JDAQEvent \
61 -f ${OUTPUT_FILE}:hn \
63 -\^ "number of events [a.u.]"
66 -f ${OUTPUT_FILE}:ha \
67 -f ${OUTPUT_FILE}:hb \
69 -\^ "number of events [a.u.]"
72 -f ${OUTPUT_FILE}:h0 \
74 -\^ "number of events [a.u.]"
77 -f ${OUTPUT_FILE}:h1 \
78 -> "time-over-threshold [ns]" \
79 -\^ "number of events [a.u.]" \
82 -f ${OUTPUT_FILE}:h2 \
84 -\^ "number of events [a.u.]" \