Ignore:
Timestamp:
10/11/05 14:34:04 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhflux
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhflux/MAlphaFitter.cc

    r7384 r7386  
    3434// container in the parlisrt
    3535//
    36 // PRELIMINARY!
     36// Version 2:
     37// ----------
     38//  +Double_t fSignificanceExc;  // significance of excess
     39//
    3740//
    3841//////////////////////////////////////////////////////////////////////////////
  • trunk/MagicSoft/Mars/mhflux/MAlphaFitter.h

    r7384 r7386  
    220220    Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print=kFALSE);
    221221
    222     ClassDef(MAlphaFitter, 1)
     222    ClassDef(MAlphaFitter, 2)
    223223};
    224224
  • trunk/MagicSoft/Mars/mhflux/MHAlpha.cc

    r7178 r7386  
    163163        {
    164164            fHEnergy.SetBinContent(i, fit.GetEventsExcess());
    165             if (fit.GetSignificance()>1)
    166                 fHEnergy.SetBinError(i, fit.GetEventsExcess()/fit.GetSignificance());
     165            if (fit.GetSignificanceExc()>1)
     166                fHEnergy.SetBinError(i, fit.GetEventsExcess()/fit.GetSignificanceExc());
    167167            else
    168168                fHEnergy.SetBinError(i, fit.GetEventsExcess());
    169169
    170             if (fit.GetSignificance()>1)
     170            if (fit.GetSignificanceExc()>1)
    171171            {
    172                 mean += fit.GetSignificance();
     172                mean += fit.GetSignificanceExc()*fit.GetSignificanceExc();
    173173                num++;
    174174            }
    175175        }
    176176    }
    177     return mean/num;
     177    return TMath::Sqrt(mean)/num;
    178178}
    179179
     
    192192        {
    193193            fHTheta.SetBinContent(i, fit.GetEventsExcess());
    194             if (fit.GetSignificance()>1)
    195                 fHTheta.SetBinError(i, fit.GetEventsExcess()/fit.GetSignificance());
     194            if (fit.GetSignificanceExc()>1)
     195                fHTheta.SetBinError(i, fit.GetEventsExcess()/fit.GetSignificanceExc());
    196196            else
    197197                fHTheta.SetBinError(i, fit.GetEventsExcess());
     
    430430    //
    431431    fHTime.SetBinContent(n+1, fit.GetEventsExcess());
    432     if (fit.GetSignificance()>1)
    433         fHTime.SetBinError(n+1, fit.GetEventsExcess()/fit.GetSignificance());
     432    if (fit.GetSignificanceExc()>1)
     433        fHTime.SetBinError(n+1, fit.GetEventsExcess()/fit.GetSignificanceExc());
    434434    else
    435435        fHTime.SetBinError(n+1, fit.GetEventsExcess());
     
    810810        if (hof ? fit.Fit(*hon, *hof, alpha) : fit.Fit(*hon))
    811811        {
    812             *fLog << dbg << "Bin " << i << ": sigma=" << fit.GetSignificance() << " omega=" << fit.GetGausSigma() << " events=" << fit.GetEventsExcess() << " scale=" << fit.GetScaleFactor() << endl;
     812            *fLog << dbg << "Bin " << i << ": sigmaexc=" << fit.GetSignificanceExc() << " omega=" << fit.GetGausSigma() << " events=" << fit.GetEventsExcess() << " scale=" << fit.GetScaleFactor() << endl;
    813813            fit.PaintResult();
    814814        }
Note: See TracChangeset for help on using the changeset viewer.