I was hoping to create at TF1 for each instance that would automatically
get made when object was instanciated, but I haven't been able to figure
out anyway to do it reasonably, so I'll just have to settle for making
object and calling it from c-function on a case-by-case basis.
Thanks anyway, 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
On Thu, 16 Nov 2006, Rene Brun wrote:
> 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:35:38 MET
This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:32:02 MET