Help using TChain::SetEntryListFromFile()

Hi,
I need help using TChain::SetEntryListFromFile(). I’ve attached two macros and a ROOT file with a tree inside that demonstrate how I’m attempting to do this, but I think I might be doing it wrong. Help! Thanks in advance!

root [3] .x elcreate.C root [4] .q [xx@xx tmp]$ root root [0] .x elread.C OpenGL Warning: Failed to connect to host. Make sure 3D acceleration is enabled for this VM. Info in <TCanvas::MakeDefCanvas>: created default TCanvas with name c1 Error in <TEntryListFromFile::Next>: All lists are empty root [1] .q
elread.C (149 Bytes)
elcreate.C (317 Bytes)
in.root (887 KB)