Hi Andres, these message are due to some problem/limitation in CINT. I've contacted Masa about this. As far as I can see you can ignore the messages for the time being (the infile2 is still connected correctly). Cheers, Fons. Andre Holzner wrote: > > Hello, > > another (hopefully) trivial problem: > > Here is LlrTupleInfo.C: > > class LlrTupleInfo > { > public: > LlrTupleInfo(TTree *ntuple) > { > TCanvas *c = new TCanvas; > > ntuple->Draw("mh"); > delete c; > } > }; > > (I basically want to use Draw() to read the values from the ntuple after > some user defined > cut into arrays and I don't want to leave canvases lying around after > calling the constructor). > > I do: > root [0] .L LlrTupleInfo.C > root [1] TFile *infile = new TFile("test.root"); > root [2] LlrTupleInfo *tuple1 = new LlrTupleInfo((TTree > *)(infile->Get("h7000"))); > > which works fine. > But trying to open a second file (or the same file again) fails: > > root [3] TFile *infile2 = new TFile("test.root"); > Error: class,struct,union or type TProof not defined > FILE:/tmp/filekBIxS1_cint LINE:1 > *** Interpreter error recovered *** > > I also saw the same message using h7000 (and infile->cd(); ) instead of > infile->Get(..). > > Does somebody have a solution ? > > (I'm using 2.26/00 on Linux). > > thanks, > > Andre > > -- > ------------------+---------------------------------- > Andre Holzner | +41 22 76 76750 > Bureau 32 2-C13 | Building 32 > CERN | Office 2-C13 > CH-1211 Geneve 23 | http://wwweth.cern.ch/~holzner/ -- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248 WWW: http://root.cern.ch/~rdm/ Fax: +41 22 7677910
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:38 MET