Re: TF2::DrawDerivative()

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Tue, 25 Aug 2009 16:32:43 +0200


Hi Margar,

see the changes in the SVN trunk and the new interface for TF1::DrawDerivative and DrawIntegral at
http://root.cern.ch/root/html/TF1.html#TF1:DrawDerivative

Rene Brun

Margar Simonyan wrote:
> Dear Rene
>
> then TF2::Derivative(x,y) method is needed. Can this be easily implemented ?
>
> Coming back to the implementation of TF1::DrawDerivative(), it would
> be much simpler for me (I hope also for others using cout instead of
> printf) to understand it, if the code was like this:
>
> TGraph * graph = new TGraph(this, option);
> graph->Draw()
>
> I would also propose to return the pointer of the graph instead of
> void. It will make easy the usage of TF1::DrawDerivative(), in case
> one wants to do something with the graph, instead with the current
> implementation one has to search for the graph.
>
> Best regards,
> Margar
> --------------------------------------------------------------------------------------------
> Dr Margar Simonyan ------ post-doctoral researcher, ATLAS exp.
> LAPP, 9 Chemin de Bellevue, BP 110 F-74941, Annecy-le-Vieux
> Tel: +33450091785 +41227671123 (CERN)
> -------------------------------------------------------------------------------------------
>
>
>
>
> On Sun, Aug 16, 2009 at 8:48 AM, Rene Brun<Rene.Brun_at_cern.ch> wrote:
>
>> The implementation of TF1::DrawDerivative is quite trivial, it simply calls
>> the TGraph constructor accepting a TF1 as input, then draw the graph.
>> It cannot work for a TF2, but TF2::DrawDerivative could easily be
>> implemented following the same trivial model.
>>
>> Rene Brun
>>
>> Margar Simonyan wrote:
>>
>>> Hello ROOT team
>>>
>>> is it possible to draw (or compute) the derivative of TF2 or it is
>>> only supported for TF1 ? The implementation of TF1::DrawDerivative()
>>> is not understandable for me.
>>>
>>> Thanks,
>>> Margar
>>>
>>> --------------------------------------------------------------------------------------------
>>> Dr Margar Simonyan ------ post-doctoral researcher, ATLAS exp.
>>> LAPP, 9 Chemin de Bellevue, BP 110 F-74941, Annecy-le-Vieux
>>> Tel: +33450091785 +41227671123 (CERN)
>>>
>>> -------------------------------------------------------------------------------------------
>>>
>>>
>>>
>>
>
>
Received on Tue Aug 25 2009 - 16:32:12 CEST

This archive was generated by hypermail 2.2.0 : Tue Aug 25 2009 - 17:50:03 CEST