[ROOT] read tree in directory inside file

From: Krzysztof Syryczynski (ksyrycz@fuw.edu.pl)
Date: Thu Feb 13 2003 - 12:25:52 MET


Hello

In file "Ntuples.root" there is an object, I will call it a directory 
"myDir".
In this directory there are trees: "treeA", "treeB", ...
Trees are ntuples with vectors and arrays inside.

How to read a tree in a way similar to:

>  TFile *f = new TFile("Ntuples.root");
>  TTree *treeA = (TTree*)f->Get("myDir/treeA");

What is missing?

This file is OK (trees can be read be clicking in Browser).

I use ROOT 3.03/04 / CINT/ROOT C/C++ Interpreter version 5.15.35 / Red Hat 
7.2

Cheers
Krzysztof



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:09 MET