Ignore:
Timestamp:
05/05/06 10:00:52 (19 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhflux/MAlphaFitter.cc

    r7618 r7694  
    138138            fFunc->SetParameter(i, 0);
    139139
    140     fFunc->SetParLimits(2, 0, 90);
    141     //    fFunc->SetParLimits(3, -1, 1);
    142 
    143140    // options : N  do not store the function, do not draw
    144141    //           I  use integral of function in bin rather than value at bin center
     
    163160    // ------------------------------------
    164161
    165     fFunc->ReleaseParameter(0);
    166     //func.ReleaseParameter(1);
     162    fFunc->ReleaseParameter(0);  // It is also released by SetParLimits later on
     163    //func.ReleaseParameter(1);  // It is also released by SetParLimits later on
    167164    fFunc->ReleaseParameter(2);
    168165    for (int i=3; i<fFunc->GetNpar(); i++)
     
    173170    const Double_t A  = alpha0-s;
    174171    const Double_t dA = TMath::Abs(A);
    175     fFunc->SetParLimits(0, -dA*4, dA*4);
    176     fFunc->SetParLimits(2, 0, 90);
     172    fFunc->SetParLimits(0, -dA*4, dA*4);  // SetParLimits also releases the parameter
     173    fFunc->SetParLimits(2, 0, 90);        // SetParLimits also releases the parameter
    177174
    178175    // Now fit a gaus in the on region on top of the polynom
Note: See TracChangeset for help on using the changeset viewer.