RE: Tutorial Problem

From: Bertrand Bellenot <Bertrand.Bellenot_at_cern.ch>
Date: Wed, 4 Jun 2008 08:41:12 +0200


Hi Chris,  

As I already replied in your previous (same) question in [ROOTDEV]: The file fit1_C.C is in $ROOTSYS/tutorials/fit (the same directory than fit1.C)  

Cheers,
Bertrand.  


From: owner-roottalk_at_root.cern.ch [mailto:owner-roottalk_at_root.cern.ch] On Behalf Of Chris Powell
Sent: Tuesday, June 03, 2008 12:23 PM
To: roottalk_at_root.cern.ch
Subject: [ROOT] Tutorial Problem

I am going through some of the tutorials on the ROOT home page. I have been looking at the simple example of fitting a 1-D histogram (see http://root.cern.ch/root/html/examples/fit1.C.html).

In the last few lines of the tutorial, we create a Pave Text called 'fitlabel', and fill it with information from the fitting. It reads the information in:

fitlabel->ReadFile("fit1_C.C");

However while running this macro, we encounter errors when hitting this line, which read:

Error in <TPaveText::ReadFile>: illegal file name

It seems like we have not created thie file "fit1_C.C" for the fitting data to be written to. How do we do this?

Thanks,
Chris

Received on Wed Jun 04 2008 - 08:41:16 CEST

This archive was generated by hypermail 2.2.0 : Thu Jun 05 2008 - 17:50:01 CEST