Changeset 1810 for trunk/MagicSoft/Cosy/base
- Timestamp:
- 03/11/03 13:52:48 (22 years ago)
- Location:
- trunk/MagicSoft/Cosy/base
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/base/MStar.h
r1691 r1810 21 21 void Set(Double_t mx, Double_t my) { fX=mx; fY=my; } 22 22 23 Int_t Compare(const TObject *obj) const 24 { 25 const MStar *const s = (MStar*)obj; 26 27 if (fMag<s->fMag) 28 return -1; 29 30 if (fMag>s->fMag) 31 return 1; 32 33 return 0; 34 } 35 36 Bool_t IsSortable() const { return kTRUE; } 37 38 23 39 ClassDef(MStar, 1) 24 40 }; -
trunk/MagicSoft/Cosy/base/MStarList.cc
r1691 r1810 1 1 #include "MStarList.h" 2 3 #include <iostream.h> 2 4 3 5 void MStarList::RemoveTwins(Double_t radius) … … 18 20 return; 19 21 22 fStars.RemoveAt(idx); 23 20 24 MStarListIter Next(this, *first, radius); 21 Delete(idx);22 25 23 26 MStar *pos; … … 29 32 mx += pos->GetX(); 30 33 my += pos->GetY(); 31 Delete(pos);34 fStars.Remove(pos); 32 35 cnt++; 33 36 } -
trunk/MagicSoft/Cosy/base/MStarList.h
r1760 r1810 38 38 39 39 void RemoveTwins(Double_t radius); 40 41 void Sort() { fStars.Sort(); } 42 43 void Expand(int n) { fStars.Expand(n); } 40 44 }; 41 45 -
trunk/MagicSoft/Cosy/base/timer.cc
r1793 r1810 26 26 // fDiv = fmod((fMs+fSecs)/(60*60*24), 1.0); 27 27 } 28 29 void Timer::GetTimeval(struct timeval *tv) const 30 { 31 tv->tv_sec = fSecs; 32 tv->tv_usec = fMs; 33 } 34 28 35 /* 29 36 void Timer::Set(const long mjd) -
trunk/MagicSoft/Cosy/base/timer.h
r1760 r1810 33 33 void SetTimer(const struct timeval *tv); 34 34 35 void GetTimeval(struct timeval *tv) const; 36 35 37 int GetSecs() { return fSecs; } 36 38
Note:
See TracChangeset
for help on using the changeset viewer.