Get coordinates from tcut

Hi, does anyone know how to output the coordinates of a tcut?

The cuts themselves are saved, but the data needs to be presorted before using root.

Cheers, Ben.

Hi,

Do you mean TCut or TCutG?

Cheers,
Philippe

TCutG, Cheers.

Hi,

TCutG is a TGraph. Use the TGraph interface to lookup its content.

Cheers,
Philippe.

Hi. When I do this through the gui (i.e. right click, inspect) I see the info, part of which specifies the number of points in the cut and the first point’s geometry.

Example

fNpoints 5
*fX 6595
*fY 68.7

What I would like is the geometry for -all- the points, preferably via command, but the gui is fine if not.

Cheers, Ben.

Hi,

Well … as for any other Graph, calling mycut.GetX() returns a Double_t* which is the array of all the X of the points … (GetN() is the number of points, you also have GetY()).
See root.cern.ch/root/html/TGraph.html for all the details …

Cheers,
Philippe