Changeset 5832 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 01/14/05 10:23:13 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mbase
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/BaseLinkDef.h
r4964 r5832 20 20 21 21 // Basic Tools 22 #pragma link C++ class MMath+;22 #pragma link C++ namespace MMath; 23 23 #pragma link C++ class MString+; 24 24 #pragma link C++ class MIter+; -
trunk/MagicSoft/Mars/mbase/MEvtLoop.cc
r5807 r5832 883 883 // file.Close(); 884 884 // 885 Int_t MEvtLoop::Write(const char *name, Int_t option, Int_t bufsize) 885 Int_t MEvtLoop::Write(const char *name, Int_t option, Int_t bufsize) const 886 886 { 887 887 if (!gFile) -
trunk/MagicSoft/Mars/mbase/MEvtLoop.h
r5809 r5832 74 74 75 75 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 } 77 81 78 82 void Print(Option_t *opt="") const; -
trunk/MagicSoft/Mars/mbase/MMath.cc
r4982 r5832 30 30 #include "MMath.h" 31 31 32 ClassImp(MMath); 33 34 using namespace std; 32 using namespace TMath; 35 33 36 34 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mbase/MMath.h
r4966 r5832 9 9 #endif 10 10 11 class MMath : public TMath11 namespace MMath 12 12 { 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); 15 14 16 staticDouble_t Significance(Double_t s, Double_t b);17 staticDouble_t SignificanceSym(Double_t s, Double_t b);18 staticDouble_t SignificanceLiMa(Double_t s, Double_t b, Double_t alpha=1);19 staticDouble_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); 20 19 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 } 28 25 29 26 #endif
Note:
See TracChangeset
for help on using the changeset viewer.