[ROOT] Problem after loading a class to exit to root

From: Vincent Roberfroid (roberfroid@fynu.ucl.ac.be)
Date: Mon Dec 22 2003 - 16:58:04 MET


Hi rooters,

I work with cvs version of root.
I have a problem to exit to root using this simple macro (test.C):
----------------------------------------------------
char *rootfile = "file.root";

void test() {
  if (!TClassTable::GetDict("TParticle")) gSystem->Load("libEG");
  TFile *f = (TFile*)gROOT->GetListOfFiles()->FindObject(rootfile);
  if(!f) f = new TFile(rootfile,"READ");
}
------------------------------------------------------

This problem is similar to the problem already noticed in the url :
http://root.cern.ch/phpBB2/viewtopic.php?t=296

Could you help me ?

Thank you

Vincent



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