Re: [ROOT] spectrum

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Nov 17 2000 - 12:07:09 MET


Hi Matteo,
When you do .x dec.cc
Root loads the file dec.cc and executes the function dec().
In your case, you have no function dec() in your file dec.cc
In this case, you should do
 root > .L dec.cc
 root > Peakdec1()

I strongly suggest that you read the basics of the Root Users Guide
see : http://root.cern.ch/root/RootDoc.html

Rene Brun

Matteo Trisoglio wrote:
> 
> hi rooters,
> I got this function which makes the deconvolution of a
> signal accordind to its response. But I can't find out
> how to source file must be (lines, columns...) and why
> while loading the macro with root the compiler tells
> me:
> root [0] .x dec.cc
>  Error: Can not access pointer to function 0x14089efe0
> from interpreter(2) FILE: LINE:0
> Error: No symbol dec() in current scope  FILE: LINE:0
> 
> Have you already done something like this? Can you
> send me some samples,please?
> 
> Thanks a lot and serendipity for your life,
> Matteo
> 
> ______________________________________________________________________
> Do You Yahoo!?
> Il tuo indirizzo gratis e per sempre @yahoo.it su http://mail.yahoo.it
> 
>   --------------------------------------------------------------------------------
> 
>                    Name: dec.cc
>    dec.cc          Type: application/x-unknown
>                Encoding: base64
>             Description: dec.cc



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:37 MET