Hi Krzysztof, What you do is OK. It should work. Please give more explanations and an example where it fails. Rene Brun Krzysztof Syryczynski wrote: > > 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