Re: Plotting a class function?

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Thu, 16 Nov 2006 21:26:51 +0100


Art,

Currently the only way to do this is to use a global variable pointing to the instance of your class
and define a c-style function calling this object, eg

  MyClass *obj;
  Double_t myfunc(Double_t *x, Double_t *par) {

      obj->Function(x,par,...);
 }

Rene Brun

Arthur E. Snyder wrote:
> Hi Rene (et al.),
>
>
> Is there a good trick for plotting a non-static function of class for a
> particalar instance of that class? E.g., some way to make a TF1 call
> through to it?
>
> -Art S.
>
> A.E. Snyder, Group EC \!c*p?/
> SLAC Mail Stop #95 ((. .))
> Box 4349 |
> Stanford, Ca, USA, 94309 '\|/`
> e-mail:snyder_at_slac.stanford.edu o
> phone:650-926-2701 _
> http://www.slac.stanford.edu/~snyder BaBar
> FAX:650-926-2657 Collaboration
>
>
>
Received on Thu Nov 16 2006 - 21:26:59 MET

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:32:02 MET