Changeset 7386


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

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7385 r7386  
    1919                                                 -*-*- END OF LINE -*-*-
    2020
    21  2005/09/29 Daniela Dorner
     21 2005/10/11 Thomas Bretz
     22
     23   * mbase/MMath.cc:
     24     - fixed a typo in SignificanceLiMaExc
     25
     26   * mhflux/MAlphaFitter.[h,cc]:
     27     - added a comment
     28     - increased ClassDef
     29
     30   * mhflux/MHAlpha.cc:
     31     - correctly use SignificanceExc for bins instead of Significance
     32
     33
     34
     35 2005/10/11 Daniela Dorner
    2236
    2337   * datacenter/macros/setupdb.C:
  • trunk/MagicSoft/Mars/NEWS

    r7380 r7386  
    88     and where to search for the image data
    99       --ind=/magic/data/star
     10
     11   - ganymed/sponde: Calculation of the error of single size-/energy-
     12     bins now uses Li/Ma (5) instead of LiMa (17)
    1013
    1114
  • trunk/MagicSoft/Mars/mbase/MMath.cc

    r7384 r7386  
    139139{
    140140    Double_t Ns = s - alpha*b;
    141     Double_t sN = s - alpha*alpha*b;
     141    Double_t sN = s + alpha*alpha*b;
    142142
    143143    return Ns<0 || sN<0 ? 0 : Ns/TMath::Sqrt(sN);
  • 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.