8 # ------------------------------------------------------------------------------------------
10 # Example script for profiling.
12 # ------------------------------------------------------------------------------------------
15 if [ -z $JPP_DIR ]; then
16 echo "Variable JPP_DIR undefined."
21 source $JPP_DIR/setenv.sh $JPP_DIR
25 define_variable INPUT_FILE
26 set_variable OUTPUT_FILE profile.root
27 set_variable PRESCALE 1
28 #set_variable PRESCALE 4000
30 if ( do_usage $* ); then
31 usage "$script <input file> [output file]"
35 2) set_variable OUTPUT_FILE $2;&
36 1) set_variable INPUT_FILE $1;;
37 *) fatal "Wrong number of arguments."
42 check_input_file $INPUT_FILE
46 $JPP_DIR/examples/JDAQ/JDAQProfile \
62 -T "${INPUT_FILE##*/}" \
65 -\^ "number of modules" \
75 -f ${OUTPUT_FILE}:L0 \
88 -f ${OUTPUT_FILE}:WR \
91 -\^ "number of frames" \
100 -f ${OUTPUT_FILE}:trigger \