Re: user defined function fails

From: Roger Mason <rmason_at_esd.mun.ca>
Date: Thu, 29 Sep 2005 09:36:26 -0230


Rene and Daniel,

Rene Brun <brun_at_pcroot.cern.ch> writes:

> When execution .x tmp.C, the system expects a function
> named tmp inside the file. This is not your casse. You can do
> .L tmp.C
>
 

Daniel Cussol writes:

> The problem is in the way you call your function. When using ".x",
> the function name has to match the file name. In your case, your file
> should be named "background.C". Secondly, no argument is given to your
> function. The best way to use this function is to compile it and to
> call it separately.

[snip]

Thank you both very much for your help - I now have it working.

Regards,

Roger Received on Thu Sep 29 2005 - 14:08:48 MEST

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:12 MET