Multiple fits on histograms

Fit of the histogram 110 with two Gaussians

histogram/File 1 pawhists.hbook hrin * 1 VECT/CREATE PAR(6) histo/plot 110 5 SET FWID 6 5 SET DMOD 2 2 HISTO/FIT 110(1:50) G QS 0 PAR(1:3) 3 HISTO/FIT 110(50:100) G QS 0 PAR(4:6) 5 SET DMOD 1 4 HISTO/FIT 110 G+G QS 6 PAR

  1. The vector PAR will be used to get the initial values of the fit parameters.
  2. Compute a gaussian fit on the first 50 channels. After this command the gaussian parameters are stored in PAR(1:3) .
  3. Compute a gaussian fit on the last 50 channels. After this command the gaussian parameters are stored in PAR(4:6) .
  4. Compute the global fit using PAR for initial values.

    Note also:

  5. The first two gaussian fits are drawn with dashed lines and the third one with a solid line.



Last update: 96/05/24 17.20
Olivier.Couet@Cern.Ch