Re: retrieve points from a graphical cut

From: Ricardo Yanez <Ricardo.Yanez_at_correo.calel.cl>
Date: Mon, 22 Aug 2005 15:02:22 -0400


Hi,

        Never mind, I found the way; a simple,

x = gcut->GetX()

will do the trick.

Thanks,
Ricardo

On Mon, 2005-08-22 at 13:14 -0400, Ricardo Yanez wrote:
> Hi Rene,
> I do
>
> gcut->Print()
> x[0]=1084.32, y[0]=94.7369
> x[1]=1363.86, y[1]=91.1887
> x[2]=1084.32, y[2]=94.7369
>
> then I try
>
> Double_t x[2] = (TCutG*)gcut->GetObjectX()
> Double_t x[2] = (TCutG*)gcut->GetX()
>
> and no luck. What other variants can I try?
> Ricardo
>
> On Sat, 2005-08-20 at 08:32 +0200, Rene Brun wrote:
> > Hi Ricardo,
> >
> > A TCutG is a TGraph. Use the TGraph Get functions to access
> > the points in it.
> >
> > Rene Brun
> >
> > On Fri, 19 Aug
> > 2005, Ricardo Yanez wrote:
> >
> > > Hi,
> > > I need to locate two points to set the fitting limits to a gamma peak.
> > > How can I locate two points graphically?
> > >
> > > My solution thus far has been to make a graphical cut,
> > >
> > > TCutG *gcut = (TCutG*)gPad->WaitPrimitive("CUTG","CutG");
> > >
> > > But, how do I retrieve the points I click?
> > >
> > > Thanks,
> > > Ricardo
> > >
> > >

-- 
Ricardo Yanez
PO Box 156
Penaflor CHILE
phone: +56 2 8140550
mobile: +56 9 5112241
email: Ricardo.Yanez_at_correo.calel.cl
jabber: ricardo.yanez_at_jabber.org
web: http://www.calel.cl/
PGP public key: 5B625B93

Received on Mon Aug 22 2005 - 21:09:32 MEST

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