Changeset 7058 for trunk/MagicSoft/Mars/msignal
- Timestamp:
- 05/18/05 18:38:53 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractPINDiode.cc
r7043 r7058 354 354 } 355 355 356 fSlices->Fit("gaus", "RQ", "", maxpos-fLowerFitLimit,maxpos+fUpperFitLimit); 357 358 TF1 *gausfunc = fSlices->GetFunction("gaus"); 359 360 fPINDiode->SetExtractedSignal(gausfunc->GetParameter(0), gausfunc->GetParError(0)); 361 fPINDiode->SetExtractedTime (gausfunc->GetParameter(1), gausfunc->GetParError(1)); 362 fPINDiode->SetExtractedSigma (gausfunc->GetParameter(2), gausfunc->GetParError(2)); 363 fPINDiode->SetExtractedChi2 (gausfunc->GetChisquare()); 356 // Must be created manually. Otherwise we cannot use N-option 357 TF1 gaus("func", "gaus"); 358 359 fSlices->Fit(&gaus, "QN", "", maxpos-fLowerFitLimit,maxpos+fUpperFitLimit); 360 361 fPINDiode->SetExtractedSignal(gaus.GetParameter(0), gaus.GetParError(0)); 362 fPINDiode->SetExtractedTime (gaus.GetParameter(1), gaus.GetParError(1)); 363 fPINDiode->SetExtractedSigma (gaus.GetParameter(2), gaus.GetParError(2)); 364 fPINDiode->SetExtractedChi2 (gaus.GetChisquare()); 364 365 fPINDiode->SetReadyToSave(); 365 366
Note:
See TracChangeset
for help on using the changeset viewer.