Re: [ROOT] including CLHEP library

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Oct 14 2004 - 18:20:03 MEST


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:09 MET