#!/bin/tcsh
set i=0
while ($i<10)
    set j=0
    while ($j<10)
	test -e g$1_$i$j.root && root g$1_$i$j.root $FCAL_CALIB_DIR/fit_peaks.C -b -q -l
	@ j++
    end
    @ i++
end


