Ignore:
Timestamp:
03/01/09 12:51:04 (16 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

    r9302 r9367  
    115115    {
    116116    case kGauss:
    117         fFunc=new TF1("", MString::Format("gaus(0) + pol%d(3)", fPolynomOrder));
     117        fFunc=new TF1("", MString::Format("gaus(0) + pol%d(3)", fPolynomOrder).Data());
    118118        break;
    119119    case kThetaSq:
     
    417417    /*
    418418     cout << MMath::SignificanceLiMaSigned(hon.Integral(1, bin), fit.GetEventsBackground()/sc, sc) << " ";
    419      cout << sc << " ";
     419     cout << sc << " " << fit.GetEventsBackground() << " ";
    420420     cout << fit.fChiSqBg << endl;
    421421     */
     
    847847            return 0;
    848848        return -GetSignificance()*TMath::Log10(GetEventsExcess());
     849    case kSignificanceSqrtExcess:
     850        if (GetEventsExcess()<1)
     851            return 0;
     852        return -GetSignificance()*TMath::Sqrt(GetEventsExcess());
    849853    case kSignificanceExcess:
    850854        return -GetSignificance()*GetEventsExcess();
  • trunk/MagicSoft/Mars/mhflux/MAlphaFitter.h

    r9302 r9367  
    3030        kSignificanceChi2,
    3131        kSignificanceLogExcess,
     32        kSignificanceSqrtExcess,
    3233        kSignificanceExcess,
    3334        kExcess,
  • trunk/MagicSoft/Mars/mhflux/MHFalseSource.cc

    r9303 r9367  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: MHFalseSource.cc,v 1.25 2009-02-07 20:47:33 tbretz Exp $
     2! $Name: not supported by cvs2svn $:$Id: MHFalseSource.cc,v 1.26 2009-03-01 12:51:03 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    11891189        }
    11901190
    1191         TF1 f1("f1", MString::Format("gaus(0) + pol%d(3)", fHistOff ? 0 : polynom), 0, 90);
    1192         TF1 f2("f2", MString::Format("gaus(0) + pol%d(3)", fHistOff ? 0 : polynom), 0, 90);
     1191        TF1 f1("f1", MString::Format("gaus(0) + pol%d(3)", fHistOff ? 0 : polynom).Data(), 0, 90);
     1192        TF1 f2("f2", MString::Format("gaus(0) + pol%d(3)", fHistOff ? 0 : polynom).Data(), 0, 90);
    11931193        f1.SetParameters(maxpar.GetArray());
    11941194        f2.SetParameters(maxpar.GetArray());
Note: See TracChangeset for help on using the changeset viewer.