- Timestamp:
- 01/14/05 12:00:15 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mbase
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MEvtLoop.cc
r5832 r5836 910 910 fParList->GetNames(list); 911 911 912 #if ROOT_VERSION_CODE < ROOT_VERSION(4,02,00) 913 n += const_cast<MEvtLoop*>(this)->TObject::Write(name, option, bufsize); 914 #else 912 915 n += TObject::Write(name, option, bufsize); 916 #endif 913 917 914 918 if (n==0) -
trunk/MagicSoft/Mars/mbase/MMath.cc
r5832 r5836 30 30 #include "MMath.h" 31 31 32 using namespace TMath;33 34 32 // -------------------------------------------------------------------------- 35 33 // … … 45 43 const Double_t f = s+k*k*b; 46 44 47 return f==0 ? 0 : (s-b)/ Sqrt(f);45 return f==0 ? 0 : (s-b)/TMath::Sqrt(f); 48 46 } 49 47 … … 84 82 return -1; 85 83 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) ); 88 86 89 return l+m<0 ? -1 : Sqrt((l+m)*2);87 return l+m<0 ? -1 : TMath::Sqrt((l+m)*2); 90 88 } 91 89 … … 102 100 return 0; 103 101 104 return Sign(sig, s-alpha*b);102 return TMath::Sign(sig, s-alpha*b); 105 103 } 106 104 … … 111 109 Double_t MMath::GaussProb(Double_t x, Double_t sigma, Double_t mean) 112 110 { 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)); 115 113 } 116 114 … … 124 122 // If the determinant==0 an empty TVector3 is returned. 125 123 // 126 #include <iostream>127 124 TVector3 MMath::GetParab(const TVector3 &x, const TVector3 &y) 128 125 {
Note:
See TracChangeset
for help on using the changeset viewer.