Re: How to define a graphical cut?

From: Rene Brun (Rene.Brun@cern.ch)
Date: Sat Apr 26 1997 - 12:34:43 MEST


Walter Karig wrote:
> 
> How to define a graphical cut (like NTUPLE/GCUT in PAW)?
> 

Graphical cuts (a la PAW) are not yet supported by Root.
This is something pretty simple to add and I will include
this facility in the next version.
I am thinking to provide the following functionality:
 Create an object of the class TCutG derived from TGraph.
 The graphics editor will be modified to include the creation
 of a TCutG object (and its editing).
 In a macro, you could also do:
   Root > TCutG c1("c1",n,x,y) (see TGraph)

 To use the graphical cut, you simply specify the name of the cut in the
selection expression (including standard boolean operations).
A TCutG object could also be referenced in a TCut (new class
announced in version 1.00 release notes).

Any comments on the above are welcome.

Rene Brun



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:26:18 MET