Re: GSL Libraries

From: Marcelo Zimbres <mzimbres_at_gmail.com>
Date: Wed, 9 Feb 2011 15:58:08 +0100


Hi, I am not a root expert but I have already faced this problem, so I think I can help you.

As far as I know not all gsl types are available in ROOT(via MathCore or MathCore), so if you want to able to use them via interpreter, you will have to generate dictionaries, for example, for the wavelet module of gsl, you can use:

root [0] gSystem->Load("/usr/lib/libgsl.so")
root [1] gSystem->Load("/usr/lib/libgslcblas.so");
root [2] gROOT->ProcessLine(".L /usr/include/gsl/gsl_sort.h+")
root [3] gROOT->ProcessLine(".L /usr/include/gsl/gsl_wavelet.h+")
root [4] gsl_trasform* // use tab here to see what types are available in
the command line (depending on root version.)

Just change the paths as needed.

Cheers, Marcelo

2011/2/9 Daniel A. Fagundes <fagundes_at_ifi.unicamp.br>

> I got a problem on trying to use gsl libraries in ROOT. How should I
> proceed to incorporate them to execute a macro C?
>
>
> -----------------------------------------------------------------------------------------
> Daniel Almeida Fagundes
> Estudante de Doutorado - PhD Physics Student
> Universidade Estadual de Campinas - UNICAMP
> Instituto de Física Gleb Wataghin - IFGW
> Departamento de Raios Cósmicos e Cronologia - DRCC
> Grupo Teórico - Fenomenologia das Interações Hadrônicas
> Sala: 205
> Ramal: 5535
> Contatos:
> Tel: +55 (19) 3521-5535
> Cel: +55 (19) 9366-4227
>
> -----------------------------------------------------------------------------------------
>
Received on Wed Feb 09 2011 - 15:58:13 CET

This archive was generated by hypermail 2.2.0 : Thu Feb 10 2011 - 17:50:02 CET