Changeset 8907 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 06/02/08 09:52:26 (17 years ago)
- Location:
- trunk/MagicSoft/Mars/mbase
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MDirIter.cc
r7808 r8907 18 18 ! Author(s): Thomas Bretz, 6/2003 <mailto:tbretz@astro.uni-wuerzburg.de> 19 19 ! 20 ! Copyright: MAGIC Software Development, 2000-200 320 ! Copyright: MAGIC Software Development, 2000-2008 21 21 ! 22 22 ! … … 65 65 #include <iostream> 66 66 67 #include <TList.h> 67 68 #include <TNamed.h> 68 69 #include <TRegexp.h> -
trunk/MagicSoft/Mars/mbase/MEnv.cc
r8741 r8907 49 49 #include <Gtypes.h> 50 50 #include <TObjString.h> 51 #include <TObjArray.h> 51 52 52 53 #include <TPave.h> … … 594 595 case kFullDotMedium: val = "fulldotmedium"; 595 596 case kFullDotLarge: val = "fulldotlarge"; 596 case kOpenTriangleDown: val = "opentriangledown";597 case kFullCross: val = "fullcross";597 // case kOpenTriangleDown: val = "opentriangledown"; 598 // case kFullCross: val = "fullcross"; 598 599 case kFullCircle: val = "fullcircle"; 599 600 case kFullSquare: val = "fullsquare"; -
trunk/MagicSoft/Mars/mbase/MFilter.cc
r6892 r8907 18 18 ! Author(s): Thomas Bretz, 07/2001 <mailto:tbretz@astro.uni-wuerzburg.de> 19 19 ! 20 ! Copyright: MAGIC Software Development, 2000-200 420 ! Copyright: MAGIC Software Development, 2000-2008 21 21 ! 22 22 ! … … 71 71 ///////////////////////////////////////////////////////////////////////////// 72 72 #include "MFilter.h" 73 74 #include <TMath.h> 73 75 74 76 #include "MLog.h" -
trunk/MagicSoft/Mars/mbase/MGMap.cc
r7808 r8907 18 18 ! Author(s): Thomas Bretz, 05/2004 <mailto:tbretz@astro.uni-wuerzburg.de> 19 19 ! 20 ! Copyright: MAGIC Software Development, 2002-200 420 ! Copyright: MAGIC Software Development, 2002-2008 21 21 ! 22 22 ! … … 39 39 #include "MGMap.h" 40 40 41 #include <limits.h> // INT_MAX 41 //#include <limits.h> // INT_MAX 42 43 #include <TMath.h> 42 44 43 45 #include <TPad.h> // gPad, TPad::GetMaxDistance() -
trunk/MagicSoft/Mars/mbase/MGTask.cc
r2206 r8907 16 16 ! 17 17 ! 18 ! Author(s): Thomas Bretz 11/2001 <mailto:tbretz@ uni-sw.gwdg.de>18 ! Author(s): Thomas Bretz 11/2001 <mailto:tbretz@astro.uni-wuerzburg.de> 19 19 ! 20 ! Copyright: MAGIC Software Development, 2000-200 120 ! Copyright: MAGIC Software Development, 2000-2008 21 21 ! 22 22 ! … … 33 33 #include "MGTask.h" 34 34 35 #include <TClass.h> 35 36 #include <TMethod.h> 36 37 -
trunk/MagicSoft/Mars/mbase/MRunIter.cc
r7808 r8907 19 19 ! Author(s): Javier Rico, 4/2004 <mailto:jrico@ifae.es> 20 20 ! 21 ! Copyright: MAGIC Software Development, 2000-200 421 ! Copyright: MAGIC Software Development, 2000-2008 22 22 ! 23 23 ! … … 35 35 #include "MRunIter.h" 36 36 37 #include <iostream> 38 39 #include <TMath.h> 37 40 #include <TSystem.h> 38 #include <iostream>39 41 40 42 ClassImp(MRunIter); 41 43 42 44 using namespace std; 45 46 void MRunIter::SortRuns() 47 { 48 const int n = GetNumRuns(); 49 50 TArrayI idx(n); 51 TMath::Sort(n, fRuns.GetArray(), idx.GetArray(), kFALSE); 52 53 for (int i=0; i<n; i++) 54 idx[i] = fRuns[idx[i]]; 55 56 fRuns = idx; 57 } 43 58 44 59 Int_t MRunIter::AddRun(UInt_t run, const char *path) -
trunk/MagicSoft/Mars/mbase/MRunIter.h
r5469 r8907 28 28 } 29 29 30 void SortRuns() 31 { 32 const int n = GetNumRuns(); 33 34 TArrayI idx(n); 35 TMath::Sort(n, fRuns.GetArray(), idx.GetArray(), kFALSE); 36 37 for (int i=0; i<n; i++) 38 idx[i] = fRuns[idx[i]]; 39 40 fRuns = idx; 41 } 30 void SortRuns(); 42 31 43 32 public: -
trunk/MagicSoft/Mars/mbase/MTask.cc
r8642 r8907 98 98 #include <fstream> 99 99 100 #include <TClass.h> 100 101 #include <TBaseClass.h> // OverwritesProcess 101 102 #include <TStopwatch.h> // TStopwatch -
trunk/MagicSoft/Mars/mbase/MTime.cc
r8765 r8907 18 18 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@astro.uni-wuerzburg.de> 19 19 ! 20 ! Copyright: MAGIC Software Development, 2000-200 320 ! Copyright: MAGIC Software Development, 2000-2008 21 21 ! 22 22 ! … … 510 510 return fmod(sum, 1)*TMath::TwoPi();//+TMath::TwoPi(); 511 511 } 512 513 // -------------------------------------------------------------------------- 514 // 515 // Return Day of the week: Sun=0, Mon=1, ..., Sat=6 516 // 517 Byte_t MTime::WeekDay() const 518 { 519 return TMath::FloorNint(GetMjd()+3)%7; 520 } 512 521 513 522 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mbase/MTime.h
r8765 r8907 21 21 #include <TTime.h> 22 22 #endif 23 24 #include <TMath.h> 23 25 24 26 struct timeval; … … 131 133 UInt_t Month() const { UShort_t y; Byte_t m, d; GetDate(y,m,d); return m; } 132 134 UInt_t Day() const { UShort_t y; Byte_t m, d; GetDate(y,m,d); return d; } 133 Byte_t WeekDay() const { return TMath::Nint(TMath::Floor(GetMjd()+3))%7; } // Return Day of the week: Sun=0, Mon=1, ..., Sat=6135 Byte_t WeekDay() const; // { return TMath::FloorNint(GetMjd()+3)%7; } // Return Day of the week: Sun=0, Mon=1, ..., Sat=6 134 136 UInt_t Hour() const { Byte_t h, m, s; GetTime(h,m,s); return h; } 135 137 UInt_t Min() const { Byte_t h, m, s; GetTime(h,m,s); return m; }
Note:
See TracChangeset
for help on using the changeset viewer.