Ignore:
Timestamp:
01/14/05 10:23:13 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mbase
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbase/BaseLinkDef.h

    r4964 r5832  
    2020
    2121// Basic Tools
    22 #pragma link C++ class MMath+;
     22#pragma link C++ namespace MMath;
    2323#pragma link C++ class MString+;
    2424#pragma link C++ class MIter+;
  • trunk/MagicSoft/Mars/mbase/MEvtLoop.cc

    r5807 r5832  
    883883//        file.Close();
    884884//
    885 Int_t MEvtLoop::Write(const char *name, Int_t option, Int_t bufsize)
     885Int_t MEvtLoop::Write(const char *name, Int_t option, Int_t bufsize) const
    886886{
    887887    if (!gFile)
  • trunk/MagicSoft/Mars/mbase/MEvtLoop.h

    r5809 r5832  
    7474
    7575    Int_t Read(const char *name="Evtloop");
    76     Int_t Write(const char *name="Evtloop", Int_t option=0, Int_t bufsize=0);
     76    Int_t Write(const char *name="Evtloop", Int_t option=0, Int_t bufsize=0) const;
     77    Int_t Write(const char *name="Evtloop", Int_t option=0, Int_t bufsize=0)
     78    {
     79        return const_cast<MEvtLoop*>(this)->Write(name, option, bufsize);
     80    }
    7781
    7882    void Print(Option_t *opt="") const;
  • trunk/MagicSoft/Mars/mbase/MMath.cc

    r4982 r5832  
    3030#include "MMath.h"
    3131
    32 ClassImp(MMath);
    33 
    34 using namespace std;
     32using namespace TMath;
    3533
    3634// --------------------------------------------------------------------------
  • trunk/MagicSoft/Mars/mbase/MMath.h

    r4966 r5832  
    99#endif
    1010
    11 class MMath : public TMath
     11namespace MMath
    1212{
    13 public:
    14     static Double_t GaussProb(Double_t x, Double_t sigma, Double_t mean=0);
     13    Double_t GaussProb(Double_t x, Double_t sigma, Double_t mean=0);
    1514
    16     static Double_t Significance(Double_t s, Double_t b);
    17     static Double_t SignificanceSym(Double_t s, Double_t b);
    18     static Double_t SignificanceLiMa(Double_t s, Double_t b, Double_t alpha=1);
    19     static Double_t SignificanceLiMaSigned(Double_t s, Double_t b, Double_t alpha=1);
     15    Double_t Significance(Double_t s, Double_t b);
     16    Double_t SignificanceSym(Double_t s, Double_t b);
     17    Double_t SignificanceLiMa(Double_t s, Double_t b, Double_t alpha=1);
     18    Double_t SignificanceLiMaSigned(Double_t s, Double_t b, Double_t alpha=1);
    2019
    21     static TVector3 GetParab(const TVector3 &x, const TVector3 &y);
    22     static Double_t InterpolParabLin(const TVector3 &vx, const TVector3 &vy, Double_t x);
    23     static Double_t InterpolParabLog(const TVector3 &vx, const TVector3 &vy, Double_t x);
    24     static Double_t InterpolParabCos(const TVector3 &vx, const TVector3 &vy, Double_t x);
    25 
    26     ClassDef(MMath, 0)
    27 };
     20    TVector3 GetParab(const TVector3 &x, const TVector3 &y);
     21    Double_t InterpolParabLin(const TVector3 &vx, const TVector3 &vy, Double_t x);
     22    Double_t InterpolParabLog(const TVector3 &vx, const TVector3 &vy, Double_t x);
     23    Double_t InterpolParabCos(const TVector3 &vx, const TVector3 &vy, Double_t x);
     24}
    2825
    2926#endif
Note: See TracChangeset for help on using the changeset viewer.