#!/bin/tcsh
set i=0
setenv JANA_CALIB_URL mysql://ccdb_user@hallddb.jlab.org/ccdb 
while ($i<10)
    set j=0
    while ($j<10)
    	nice hd_root --loadconfigs $FCAL_CALIB_DIR/jana.config /volatile/halld/home/njarvis/pi0skim/$1/hd_rawdata_$1_$i$j*.pi0fcalskim.evio -o g$1_$i$j.root
 	@ j++
    end
    @ i++
end
