Re: Interactive Using Graphical Cuts

From: Rene BRUN <brun_at_mail.cern.ch>
Date: Mon, 31 Jan 2005 07:11:17 +0100 (MET)


Hi Chris,

Once you have created your TCutG, eg "mycut", you should reissue the command in your other pad to call again TTree::Draw with this cut. For instance, if your first command was

   ntuple.Draw("y:x");
you should call again

   ntuple.Draw("y:x","mycut");
or thye equivalent from the TTreeViewer.

Updating the pad cannot do the work because you may have created more than one TCutG in other pads and you do not want to reflect these cuts by default in all the other pads.

Rene Brun

On
Sun, 30
Jan 2005, Chris Roat wrote:

> Hi ROOTers,
>
> Has anyone ever used TCutG's in a fully interactive way? As an example:
>
> - from a tree browser, draw a 2D scatter plot in one pad
>
> - from the same browser, histogram some other quanitity from the tree
> on another pad
>
> - create a TCutG object using the graphical editor on the first canvas
>
> - have the 2nd pad automatically update it's contents based on the
> selection induced by the graphical cut
>
> This seems like a cool and useful thing, so before trying to do it
> myself, I'm wondering if someone already has done this.
>
> Cheers,
> Chris
>
Received on Mon Jan 31 2005 - 07:11:22 MET

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:04 MET