Re: : 3D straight line fit

From: Lorenzo Moneta <Lorenzo.Moneta_at_cern.ch>
Date: Mon, 18 Feb 2008 12:06:05 +0100


>

Hello Annalisa,

  to perform a 3D straight line fit, you have to minimize the square distance between the line and the 3D points. You can do that by using directly Minuit. Attached is an example on how to do that (not considering the errors on the points).

   Cheers

  Lorenzo

>
> From: "Annalisa De Caro" <Annalisa.de.Caro_at_cern.ch>
> Date: February 14, 2008 1:05:10 PM GMT+01:00
> To: "roottalk" <roottalk_at_lxbuild091.cern.ch>
> Subject: [ROOT]: 3D straight line fit
>
>
> Hello,
>
> I would make a straight linear fit in 3D.
>
> I thought to use a double linear fit in 2D:
> in fact, in 3D, I can describe a straight line
> as the intersection between 2 planes.
> Does it exist a tool already implemented in the ROOT pakage
> to do what I said?
>
> Thank you
> Annalisa
>
>
>
Received on Mon Feb 18 2008 - 12:06:50 CET

This archive was generated by hypermail 2.2.0 : Mon Feb 18 2008 - 17:50:01 CET