[ROOT] error wtih the tree name in creating a TChain

From: tcli (tcli@ic.sunysb.edu)
Date: Mon Jul 28 2003 - 18:06:55 MEST


Dear root users,
      I tried to creat a TChain to chain 2 trees in 2 root files as
follows:

root{] TChain chain("tt")
root[] chain.Add("file1.root")
root[] chain.Add("file2.root")
root[] tt.StartViewer()

After typing the first 3 lines, nothing wrong happens. That seems the
TChain is created. But after typing the 4th command to view the content
of the TChain, an error appears:
Symbol tt is not defined in current scope  FILE:(tmpfile) LINE:1  
Failed to evaluate tt.StartViewer.......

I've checked the tree name of both trees separately before with the Tree
Viewer. So I'm very sure the name is "tt". So is there anything I can do
to solve this problem?

Thank you very much!

Lesley



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:14 MET