how do I print a

Pasha Murat (murat@cdfsga.fnal.gov)
Mon, 1 Feb 1999 10:42:39 -0600 (CST)


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