#!/bin/tcsh ############# MULS ON, Smearing ON ############### set fname=filelist.h echo "Making $fname ..." echo "// Generated by make_root_filelist" > $fname echo "void AddFilesToChain(TChain *chain){" >> $fname foreach s (`ls -tr hd_root_???????.root`) echo " chain->Add(\042$s\042);" >> $fname end echo "}" >> $fname