Changeset 14755


Ignore:
Timestamp:
12/17/12 15:36:31 (12 years ago)
Author:
Jens Buss
Message:
calc integral error, calc fit boarders correctly
File:
1 edited

Legend:

Unmodified
Added
Removed
  • fact/tools/rootmacros/PulseTemplates/pulse.C

    r14748 r14755  
    7272        )
    7373{
    74     int fitMin = mHisto->GetXaxis()->GetFirst();
    75     int fitMax = mHisto->GetXaxis()->GetLast();
     74    int fitMin = mHisto->GetXaxis()->GetBinLowEdge( mHisto->GetXaxis()->GetFirst() );
     75    int fitMax = mHisto->GetXaxis()->GetBinUpEdge(  mHisto->GetXaxis()->GetLast() );
    7676
    7777    Fit(
     
    272272{
    273273    mIntegral.first     = mModel->Integral(mFitMin, mFitMax);
     274    mIntegral.second    = mModel->IntegralError(mFitMin, mFitMax);
    274275    mAmplitude.first    = mModel->GetMaximum() - mBsl.first;
     276//    mAmplitude.second   = mModel->GetMaximum() - mBsl.first;
    275277    mFitProb            = mFitResultPtr->Prob();
    276278    mFitNCalls          = mFitResultPtr->NCalls();
Note: See TracChangeset for help on using the changeset viewer.