Re: [ROOT] including CLHEP library

From: Ivana Hrivnacova (ihrivnac@mail.cern.ch)
Date: Fri Oct 15 2004 - 12:23:40 MEST


 Hi David,

 You have also the possibility to use Root classes in your
 program without using CINT.
 You just need to add Root includes to the include path:
 -I$(ROOTSYS)/include
 and link your program with Root libraries; the list
 of libraries can be produced via root-config program:
 root-config --glibs

 Best regards,

 Ivana

==============================================================
e-mail:  Ivana.Hrivnacova@cern.ch
address: Institut Physique Nucleaire, 91406 Orsay, France
phone:   (33) 01 69 15 65 94
==============================================================

On Thu, 14 Oct 2004, Rene Brun wrote:

> David,
> 
> To call CLHEP classes from CINT, you must have the corresponding CINT
> dictionary. Some people have been courageous enough to build this dictionary.
> May be someone will respond to your request!
> 
> Note that most functions/classes in CLHEP have an equivalent (if not better)
> functionality in ROOT itself. In this case, you do not have to worry generating
> a dictionary.
> 
> You can see an example of convolution between a landau and a gaussian
> in the standard ROOT tutorial langaus.C. You can adapt it to your case.
> 
> Rene Brun
> 
> BORRAS David wrote:
> > 
> > Hi all,
> > 
> > I'm a new user of root (previously use PAW).
> > I have written a little code which do the convolution between an
> > exponential and a gaussian function.
> > It compiles and execute fine.
> > My problem is that i would want to see the results of this convolution in
> > a histogram.
> > In this code, iuse the CLHEP function to make this convolution. So, ihave
> > some line like this: #include "CLHEP/GenericFunctions/GenericFunctions.hh"
> > 
> > When i do, in root, .L mycode.cpp, I have this error message:
> > Error: cannot open file "CLHEP/GenericFunctions/GenericFunctions.hh"
> > 
> > Is there exist a way in root to link with the CLHEP package or it is not
> > possible ?
> > 
> > Cheers, David.
> > *************************************************
> > *  David Borras                                 *
> > *  PhD Student                                  *
> > *************************************************
> > *  Laboratoire de Physique Corpusculaire (LPC)  *
> > *  IN2P3/CNRS                                   *
> > *  Universite Blaise Pascal                     *
> > *  24 avenue des Landais                        *
> > *  63177 Aubiere Cedex                          *
> > *                                               *
> > *  tel : 04 73 40 72 77 (work)                  *
> > *  mail: borras@clermont.in2p3.fr               *
> > *************************************************
> 
> 

-- 



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:10 MET