[ROOT] Branches

From: Alberto Pulvirenti (alberto.pulvirenti@ct.infn.it)
Date: Tue Oct 08 2002 - 13:06:43 MEST


Dear all,

I would like to perform the following operation.

I read a TTree object from a file, but, in principle, I don't know WHAT
kind of objects are stored in it. The only thing I know is that it
should contain a unique branch, called "Points". 

Question 1: 
I guess that I can check the existence of that branch by using 
TTree::GetBranch("Points"), which should return a NULL pointer in case
that such branch does not exist. Am I right?

Question 2:
This branch should have been filled with objects if a given specified
class, say "point". How can I check if the entries stored into this
branch are of the correct type? 

Thanks

alberto



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:13 MET