Changeset 9518 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 10/26/09 14:31:19 (15 years ago)
- Location:
- trunk/MagicSoft/Mars/mbase
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MAGIC.cc
r9195 r9518 40 40 bool MARS::CheckRootVer() 41 41 { 42 if (strcmp(gROOT->GetVersion(), "5.22/00")>0) 43 { 44 cout << "WARNING - Especially root 5.24/00 has a severe bug in projection 2D histograms" << endl; 45 cout << " which might cause unexpected crashes and could also affect the results." << endl; 46 cout << " Please, avoid using these root versions." << endl; 47 } 48 42 49 if (!strcmp(gROOT->GetVersion(), ROOT_RELEASE)) 43 50 return true; -
trunk/MagicSoft/Mars/mbase/MEnv.h
r9345 r9518 41 41 Int_t GetValue(const char *name, Int_t dflt); 42 42 Double_t GetValue(const char *name, Double_t dflt); 43 const char *GetValue(const char *name, const char *dflt );43 const char *GetValue(const char *name, const char *dflt=""); 44 44 45 45 // GetValue: regexp -
trunk/MagicSoft/Mars/mbase/MLut.cc
r9462 r9518 38 38 #include <stdlib.h> // atoi (Ubuntu 8.10) 39 39 40 #include <TRegexp.h> 41 40 42 #include "MLog.h" 41 43 #include "MLogManip.h" … … 286 288 Int_t MLut::ReadStream(istream &fin) 287 289 { 290 static const TRegexp reg("[^ 1234567890]"); 291 288 292 Delete(); 293 294 Int_t n = 0; 289 295 290 296 while (1) … … 294 300 if (!fin) 295 301 break; 302 303 n++; 304 305 if (line.Contains(reg)) 306 { 307 gLog << warn << "WARNING - MLut::ReadStream: Line #" << n << " contains invalid character... ignored." << endl; 308 continue; 309 } 296 310 297 311 // Split line by whitespaces -
trunk/MagicSoft/Mars/mbase/MParSpline.cc
r9428 r9518 322 322 fSpline->Paint("PC"); 323 323 } 324 325 void MParSpline::RecursiveRemove(TObject *obj) 326 { 327 if (obj==fSpline) 328 fSpline=0; 329 } -
trunk/MagicSoft/Mars/mbase/MParSpline.h
r9428 r9518 23 23 public: 24 24 MParSpline(const char *name=0, const char *title=0); 25 ~MParSpline() { Clear(); } 25 26 26 27 // MParSpline … … 50 51 void Paint(Option_t *o=""); 51 52 53 void RecursiveRemove(TObject *obj); 54 52 55 ClassDef(MParSpline, 1) // Container to hold a MSpline3 53 56 }; -
trunk/MagicSoft/Mars/mbase/MSpline3.cc
r9450 r9518 157 157 // W := fX[i+1]-fX[i] 158 158 // 159 Double_t MSpline3::Integral (Int_t i, Double_t x) const159 Double_t MSpline3::IntegralBin(Int_t i, Double_t x) const 160 160 { 161 161 Double_t x0, y, b, c, d; … … 171 171 // Return the integral of the spline's bin i. 172 172 // 173 Double_t MSpline3::Integral (Int_t i) const173 Double_t MSpline3::IntegralBin(Int_t i) const 174 174 { 175 175 Double_t x, y; … … 177 177 GetKnot(i+1, x, y); 178 178 179 return Integral (i, x);179 return IntegralBin(i, x); 180 180 } 181 181 … … 189 189 const Int_t m = FindX(b); 190 190 191 Double_t sum = -Integral (n, a);191 Double_t sum = -IntegralBin(n, a); 192 192 193 193 for (int i=n; i<=m-1; i++) 194 sum += Integral (i);195 196 sum += Integral (m, b);194 sum += IntegralBin(i); 195 196 sum += IntegralBin(m, b); 197 197 198 198 return sum; … … 208 208 209 209 for (int i=0; i<GetNp()-1; i++) 210 sum += Integral (i);210 sum += IntegralBin(i); 211 211 212 212 return sum; -
trunk/MagicSoft/Mars/mbase/MSpline3.h
r9424 r9518 15 15 MArrayD &ConvertFunc(const TF1 &f, Float_t freq) const; 16 16 17 Double_t Integral (Int_t i, Double_t x) const;18 Double_t Integral (Int_t i) const;17 Double_t IntegralBin(Int_t i, Double_t x) const; 18 Double_t IntegralBin(Int_t i) const; 19 19 20 20 public: -
trunk/MagicSoft/Mars/mbase/Makefile
r9428 r9518 6 6 # 7 7 ################################################################## 8 include ../Makefile.conf.general 8 9 include ../Makefile.conf.$(OSTYPE) 9 include ../Makefile.conf.general10 10 11 11 #------------------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.