#!/bin/tcsh ############# No Truth ############### set fname=filelist_ALT1_no_truth.h echo "Making $fname ..." echo "// Generated by make_root_filelist" > $fname echo "void AddFilesToChain(TChain *chain){" >> $fname foreach s (`ls -tr ALT1_*_no_truth*.root`) echo " chain->Add(\042$s\042);" >> $fname end echo "}" >> $fname echo " " >> $fname echo " " >> $fname ############# With Truth ############### set fname=filelist_ALT1_with_truth.h echo "Making $fname ..." echo "// Generated by make_root_filelist" > $fname echo "void AddFilesToChain(TChain *chain){" >> $fname foreach s (`ls -tr ALT1_*_with_truth*.root`) echo " chain->Add(\042$s\042);" >> $fname end echo "}" >> $fname echo " " >> $fname echo " " >> $fname ############# Kalman ############### set fname=filelist_Kalman.h echo "Making $fname ..." echo "// Generated by make_root_filelist" > $fname echo "void AddFilesToChain(TChain *chain){" >> $fname foreach s (`ls -tr Kalman*.root`) echo " chain->Add(\042$s\042);" >> $fname end echo "}" >> $fname echo " " >> $fname echo " " >> $fname