Changeset 8957 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 06/14/08 16:55:58 (16 years ago)
- Location:
- trunk/MagicSoft/Mars/mbase
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MLog.cc
r8805 r8957 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MLog.cc,v 1. 59 2008-01-11 10:37:01tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MLog.cc,v 1.60 2008-06-14 15:55:50 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 663 663 { 664 664 // gcc 3.2: 665 c har *txt = (char*)"logXXXXXX";665 const char *txt = "logXXXXXX"; 666 666 667 667 TString n(fname ? fname : txt); -
trunk/MagicSoft/Mars/mbase/MMath.cc
r8673 r8957 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MMath.cc,v 1.3 7 2007-08-17 10:53:48tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MMath.cc,v 1.38 2008-06-14 15:55:50 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 128 128 } 129 129 130 /* 131 Double_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 130 156 // -------------------------------------------------------------------------- 131 157 // … … 752 778 static const Double_t sqrt3 = TMath::Sqrt(3.); 753 779 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; 760 786 761 787 /* --- Easier to understand but slower --- -
trunk/MagicSoft/Mars/mbase/MParContainer.cc
r8724 r8957 359 359 return kFALSE; 360 360 361 /*const*/ TMethodCall *call = ((TDataMember*)member)->GetterMethod(); //FIXME: Root361 /*const*/ TMethodCall *call = const_cast<TDataMember*>(member)->GetterMethod(); //FIXME: Root 362 362 if (!call) 363 363 {
Note:
See TracChangeset
for help on using the changeset viewer.