Fork me on GitHub

Changes in / [f01b690:da12534] in git


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/Validation.cpp

    rf01b690 rda12534  
    476476  TF1 *f1 = new TF1("f1", "gaus", hist->GetMean()-2*hist->GetRMS(), hist->GetMean()+2*hist->GetRMS());
    477477  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);
    485480  delete f1;
    486481  return make_pair (sig, sigErr);
Note: See TracChangeset for help on using the changeset viewer.