About TChain

From: Hayk Hakobyan <hayk_at_jlab.org>
Date: Mon, 9 Jan 2006 10:53:03 -0500 (EST)

Dear ROOTers,

Here is attached the following program

   TChain *ch = new TChain("TTT");
   Float_t Q2;    

   TBranch *b_Q2 =TTT->GetBranch("Q2");    


   Long64_t localEntry = ch->LoadTree(5);    b_Q2->GetEntry(localEntry);
   return 0;

file1.root and file2.root are C-structure .root files with TTT tree which in has
Q2 branch.

When I run this program I get

But it is working perfectly if I enter each line from program by hand using CINT.

What is the problem?

Thanks for any help,

Received on Mon Jan 09 2006 - 16:53:12 MET

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:31:56 MET