Changes in / [058006a:3986893] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/Validation.cpp
r058006a r3986893 476 476 TF1 *f1 = new TF1("f1", "gaus", hist->GetMean()-2*hist->GetRMS(), hist->GetMean()+2*hist->GetRMS()); 477 477 hist->Fit("f1","RQ"); 478 479 TF1 *f2 = new TF1("f2", "gaus", f1->GetParameter(1) - 2*f1->GetParameter(2), f1->GetParameter(1) + 2*f1->GetParameter(2)); 480 hist->Fit("f2","RQ"); 481 482 Double_t sig = f2->GetParameter(2); 483 Double_t sigErr = f2->GetParError(2); 484 478 Double_t sig = f1->GetParameter(2); 479 Double_t sigErr = f1->GetParError(2); 485 480 delete f1; 486 481 return make_pair (sig, sigErr);
Note:
See TracChangeset
for help on using the changeset viewer.