- Timestamp:
- 05/05/06 10:00:52 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhflux/MAlphaFitter.cc
r7618 r7694 138 138 fFunc->SetParameter(i, 0); 139 139 140 fFunc->SetParLimits(2, 0, 90);141 // fFunc->SetParLimits(3, -1, 1);142 143 140 // options : N do not store the function, do not draw 144 141 // I use integral of function in bin rather than value at bin center … … 163 160 // ------------------------------------ 164 161 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 167 164 fFunc->ReleaseParameter(2); 168 165 for (int i=3; i<fFunc->GetNpar(); i++) … … 173 170 const Double_t A = alpha0-s; 174 171 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 177 174 178 175 // Now fit a gaus in the on region on top of the polynom
Note:
See TracChangeset
for help on using the changeset viewer.