#!/bin/bash
#
# usage: tracer.sh <N>
#   where <N> is a line number [1..9999999] in tracer.list pointing
#   to the input evio file to be analyzed.
#

run=`awk -F[._] '{if (NR=='$1'+1) {print $5}}' tracer.list`
seg=`awk -F[._] '{if (NR=='$1'+1) {print $6}}' tracer.list`

./hd_root_evio.sh TAGM_online 4 $run $seg
