#!/bin/tcsh set fname=filelist.h echo "Making $fname ..." ############# No Truth ############### echo " Adding AddNoTruthFilesToChain ..." echo "// Generated by make_root_filelist" > $fname echo "void AddNoTruthFilesToChain(TChain *chain){" >> $fname foreach s (`ls -tr hd_root_no_truth_???????.root`) echo " chain->Add(\042$s\042);" >> $fname end echo "}" >> $fname echo " " >> $fname echo " " >> $fname ############# With Truth ############### echo " Adding AddWithTruthFilesToChain ..." echo "void AddWithTruthFilesToChain(TChain *chain){" >> $fname foreach s (`ls -tr hd_root_with_truth_???????.root`) echo " chain->Add(\042$s\042);" >> $fname end echo "}" >> $fname