Re: setting two or more parameters in fit function to be the same

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Tue, 27 Feb 2007 17:56:00 +0100


Victor,

You can find an example in the script in the attachment. It is a modified version of the standard tutorial in $ROOTSYS/tutorials/spectrum/peaks.C
To run it do, eg
 root > .x peaks2fit.C(4)

Rene Brun

Victor Golovko wrote:
> Dear Rooters,
>
> I have a question about fitting.
>
> I would like to set in a fitting function two (or more parameters) to be
> equal to each other (for example: if I am fitting a spectrum with a few
> Gaussian picks, I would like to have the Gaussian with to be the same for
> all picks). Is there some function where I could specify that one parameter
> should be equal to the other one?
>
>
> Best wishes,
>
> Victor.
>
> February 27, 2007
>

Received on Tue Feb 27 2007 - 17:56:07 CET

This archive was generated by hypermail 2.2.0 : Tue Feb 27 2007 - 23:50:01 CET