how do I print a

From: Pasha Murat (murat@cdfsga.fnal.gov)
Date: Mon Feb 01 1999 - 17:42:39 MET


Simon George writes:
 > I have a couple of ntuples in the same format, which I have converted to
 > root files with h2root. I want to chain them together, so I do: 
 > 
 > TChain* chain = new TChain("T2GL/h1202"); // ntuple was 1202 in T2GL.
 > chain->Add("file1.root");
 > chain->Add("file2.root");
 > 
 > Now, if I do `chain->Print()' I get the same as `chain->ls()' - just the
 > names of the files in the chain.  How can the equivalent of hbook's
 > nt/print for the chain?


Hi Simon, try 
                   chain->LoadTree(0);               // initialization
	           chain->GetTree()->Print();        // print itself

							-pasha



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:28 MET