#!/bin/tcsh -f

foreach e ( *GeV )

  cd ${e}

  foreach a ( *degrees )

    cd ${a}
	 
	 mcsmear -H -K -M -Q -R10.0 -ohdgeant_smeared_no_darkhits.hddm hdgeant.hddm
	 hd_root -o hd_root_no_darkhits.root -PPLUGINS=bcal_single_photon hdgeant_smeared_no_darkhits.hddm
	 
	 cd -

  end
  
  cd ../
  
end
