#!/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 ############# MULS OFF, Smearing ON ############### set fname=filelist_no_muls.h echo "Making $fname ..." echo "// Generated by make_root_filelist" > $fname echo "void AddFilesToChain(TChain *chain){" >> $fname foreach s (`ls -tr hd_root_no_muls_??????.root`) echo " chain->Add(\042$s\042);" >> $fname end echo "}" >> $fname