RE: reading TTree from a TDirectory

From: Philippe Canal <>
Date: Wed, 17 Aug 2005 10:09:08 -0500


Given a pointer to a TDirectory (or TFile) object 'mydir', the best is to do:

   TTree *t;

Then 't' is updated with the address of the TTree object. If treename is not in the directory or if treename points to something that is __not__ a TTree, 't' will be set to 0.


-----Original Message-----
From: [] On Behalf Of Tulun Ergin
Sent: Tuesday, August 16, 2005 9:30 PM
Subject: [ROOT] reading TTree from a TDirectory


Could somebody tell me the way to read a tree, which is saved in a TDirectory. I could not find any answer in the Root manual and tutorials...


Tulun Ergin Received on Wed Aug 17 2005 - 17:14:34 MEST

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:11 MET