Ignore:
Timestamp:
06/14/08 16:55:58 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mbase
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbase/MLog.cc

    r8805 r8957  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: MLog.cc,v 1.59 2008-01-11 10:37:01 tbretz Exp $
     2! $Name: not supported by cvs2svn $:$Id: MLog.cc,v 1.60 2008-06-14 15:55:50 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    663663{
    664664    // gcc 3.2:
    665     char *txt = (char*)"logXXXXXX";
     665    const char *txt = "logXXXXXX";
    666666
    667667    TString n(fname ? fname : txt);
  • trunk/MagicSoft/Mars/mbase/MMath.cc

    r8673 r8957  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: MMath.cc,v 1.37 2007-08-17 10:53:48 tbretz Exp $
     2! $Name: not supported by cvs2svn $:$Id: MMath.cc,v 1.38 2008-06-14 15:55:50 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    128128}
    129129
     130/*
     131Double_t MMath::SignificanceLiMaErr(Double_t s, Double_t b, Double_t alpha)
     132{
     133    Double_t S = SignificanceLiMa(s, b, alpha);
     134    if (S<0)
     135        return -1;
     136
     137    const Double_t sum = s+b;
     138
     139
     140    Double_t l = TMath::Log(s/sum*(alpha+1)/alpha)/TMath::Sqrt(2*S);
     141    Double_t m = TMath::Log(s/sum*(alpha+1)/alpha)/TMath::Sqrt(2*S);
     142
     143
     144    const Double_t sum = s+b;
     145
     146    if (s<0 || b<0 || alpha<=0)
     147        return -1;
     148
     149    const Double_t l = s==0 ? 0 : s*TMath::Log(s/sum*(alpha+1)/alpha);
     150    const Double_t m = b==0 ? 0 : b*TMath::Log(b/sum*(alpha+1)      );
     151
     152    return l+m<0 ? -1 : TMath::Sqrt((l+m)*2);
     153}
     154*/
     155
    130156// --------------------------------------------------------------------------
    131157//
     
    752778        static const Double_t sqrt3 = TMath::Sqrt(3.);
    753779
    754         const Double_t s = TMath::Sin(t)*sqrt3;
    755         const Double_t c = TMath::Cos(t);
    756 
    757         x1 = 2*sqrtq *      c  - a/3;
    758         x2 =  -sqrtq * (s + c) - a/3;
    759         x3 =   sqrtq * (s - c) - a/3;
     780        const Double_t sn = TMath::Sin(t)*sqrt3;
     781        const Double_t cs = TMath::Cos(t);
     782
     783        x1 = 2*sqrtq *       cs  - a/3;
     784        x2 =  -sqrtq * (sn + cs) - a/3;
     785        x3 =   sqrtq * (sn - cs) - a/3;
    760786
    761787        /* --- Easier to understand but slower ---
  • trunk/MagicSoft/Mars/mbase/MParContainer.cc

    r8724 r8957  
    359359        return kFALSE;
    360360
    361     /*const*/ TMethodCall *call = ((TDataMember*)member)->GetterMethod(); //FIXME: Root
     361    /*const*/ TMethodCall *call = const_cast<TDataMember*>(member)->GetterMethod(); //FIXME: Root
    362362    if (!call)
    363363    {
Note: See TracChangeset for help on using the changeset viewer.