Changeset 5836 for trunk


Ignore:
Timestamp:
01/14/05 12:00:15 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mbase
Files:
2 edited

Legend:

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

    r5832 r5836  
    910910    fParList->GetNames(list);
    911911
     912#if ROOT_VERSION_CODE < ROOT_VERSION(4,02,00)
     913    n += const_cast<MEvtLoop*>(this)->TObject::Write(name, option, bufsize);
     914#else
    912915    n += TObject::Write(name, option, bufsize);
     916#endif
    913917
    914918    if (n==0)
  • trunk/MagicSoft/Mars/mbase/MMath.cc

    r5832 r5836  
    3030#include "MMath.h"
    3131
    32 using namespace TMath;
    33 
    3432// --------------------------------------------------------------------------
    3533//
     
    4543    const Double_t f = s+k*k*b;
    4644
    47     return f==0 ? 0 : (s-b)/Sqrt(f);
     45    return f==0 ? 0 : (s-b)/TMath::Sqrt(f);
    4846}
    4947
     
    8482        return -1;
    8583
    86     const Double_t l = s*Log(s/sum*(alpha+1)/alpha);
    87     const Double_t m = b*Log(b/sum*(alpha+1)      );
     84    const Double_t l = s*TMath::Log(s/sum*(alpha+1)/alpha);
     85    const Double_t m = b*TMath::Log(b/sum*(alpha+1)      );
    8886
    89     return l+m<0 ? -1 : Sqrt((l+m)*2);
     87    return l+m<0 ? -1 : TMath::Sqrt((l+m)*2);
    9088}
    9189
     
    102100        return 0;
    103101
    104     return Sign(sig, s-alpha*b);
     102    return TMath::Sign(sig, s-alpha*b);
    105103}
    106104
     
    111109Double_t MMath::GaussProb(Double_t x, Double_t sigma, Double_t mean)
    112110{
    113     static const Double_t sqrt2 = Sqrt(2.);
    114     return Erf((x-mean)/(sigma*sqrt2));
     111    static const Double_t sqrt2 = TMath::Sqrt(2.);
     112    return TMath::Erf((x-mean)/(sigma*sqrt2));
    115113}
    116114
     
    124122// If the determinant==0 an empty TVector3 is returned.
    125123//
    126 #include <iostream>
    127124TVector3 MMath::GetParab(const TVector3 &x, const TVector3 &y)
    128125{
Note: See TracChangeset for help on using the changeset viewer.