Re: Manage a ROOT file from a streaming of the ROOT file content

From: Massimiliano Fasi <Massimiliano.Fasi_at_pg.infn.it>
Date: Sat, 21 Apr 2012 09:08:37 +0200


Dear all,

we tried to use hdfs plugin with a very simple ROOT code (attached), but we get the issue described below.

We succesfully created a TFile pointer, with a statement like:

TFile* fileInput = new
TFile("hdfs://hydra1:54310/user/mySearchTreeFile.root");

and a TTree pointer with:

TTree* myTree= (TTree *)fileInput->Get("data2");

but when we call any method on myTree, as

myTree->Print();

we get that error at runtime:

Error in <TFile::TFile>: file user/mySearchTreeFile.root does not exist

We don't understand why we don't get any error when we create the object, and what causes such kind of issue. Have you got any idea about?

Thanks,

Massimiliano



This message was sent using IMP, the INFN Perugia Internet Messaging Program.

Received on Sat Apr 21 2012 - 09:08:54 CEST

This archive was generated by hypermail 2.2.0 : Sat Apr 21 2012 - 17:50:02 CEST