#!/bin/tcsh ############# Nominal ############### set fname=filelist.h echo "Making $fname ..." echo "// Generated by make_root_filelist" > $fname echo "void AddFilesToChain(TChain *chain){" >> $fname foreach s (`ls -tr reconstructed_??????.root`) echo " chain->Add(\042$s\042);" >> $fname end echo "}" >> $fname echo " " >> $fname echo " " >> $fname ############# No Cathode Info ############### set fname=filelist_NoCathodeInfo.h echo "Making $fname ..." echo "// Generated by make_root_filelist" > $fname echo "void AddFilesToChain(TChain *chain){" >> $fname foreach s (`ls -tr reconstructed_NoCathodeInfo_??????.root`) echo " chain->Add(\042$s\042);" >> $fname end echo "}" >> $fname echo " " >> $fname echo " " >> $fname ############# fdccathshift1.0 ############### set fname=filelist_fdccathshift1.0.h echo "Making $fname ..." echo "// Generated by make_root_filelist" > $fname echo "void AddFilesToChain(TChain *chain){" >> $fname foreach s (`ls -tr reconstructed_fdccathshift1.0_??????.root`) echo " chain->Add(\042$s\042);" >> $fname end echo "}" >> $fname echo " " >> $fname echo " " >> $fname