Re: using class methods in treeViewer/Draw()

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Mon, 20 Aug 2007 15:47:57 +0200


With TTree::Draw you can do
  T.Draw("obj.Function(params,..)" (see doc)

same with TBrowser.
A future version of TTreeViewer will also provide this functionality.

Rene Brun

Christian Hoeppner wrote:
> Hi everybody,
>
> I have a question: Is it possible to directly plot or cut on a return
> value of a method instead of a member variable. E.g.: I have a class
> event : public TObject, that I write to my tree, that has a method with
> the prototype
>
> double getMinResid();
>
> I want to plot some histogram out of the tree viewer or with Draw() and
> want to cut on this for example. Is this possible and if yes how. Of
> course if it is not possible I could just save the output of the method
> in the event as well.
>
> Thanks a bunch, Christian
>
Received on Mon Aug 20 2007 - 15:48:03 CEST

This archive was generated by hypermail 2.2.0 : Tue Aug 21 2007 - 11:50:02 CEST