#!/bin/tcsh -f

# Run root, executing the mk_event_hists.C macro
# for each data set to produce the event_XXX.root
# file.
#
# This is done in a shell script rather than a ROOT
# macro to avoid seg. faults that seem to occur when
# running a macro multiple times in ROOT.

foreach s (fine course fine_matt course_matt)
	root -l -q -b ../macros/'mk_event_hists.C("'$s'")'
end

