Fork me on GitHub

Changes in / [1bc1d10:a39b82e] in git


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/Validation.cpp

    r1bc1d10 ra39b82e  
    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.