Re: running macros

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue Nov 16 1999 - 09:09:43 MET


Hi Phil,
This is the expected behaviour.
When a macro contains one or more named functions (eg void backsig())
you can do
 .x backsig.C
or
 .L backsig.C
 backsig()

The convention is that CINT will load the specified filename and invoke 
the function with the same name in the file. Otherwise, it does not know
which function to call.

Rene Brun

Philip M Borawski wrote:
> 
> Hello. I have what is sure to be a very stupid question but it is driving
> me nuts...I am trying to run the macro for Tutorial #16 - fitting
> background and signal and it will only run if I name the macro backsig.C
> or backsig.c.  Any other filename produces the error:
> 
> root [1] .X 'filename.C'
> Error: No symbol 'filename'() in current scope  FILE: LINE:0
> Possible candidates are...
> filename       line:size busy function type and name
> *** Interpreter error recovered ***
> 
> but when I rename the same file backsig.c it runs just fine.  Could
> sombody please tell me what I am doing wrong?
> 
> Thanks.
> 
> -phil



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:43 MET