Changeset 4566 for trunk/MagicSoft/Mars/mastro
- Timestamp:
- 08/10/04 16:34:19 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mastro
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mastro/MAstro.cc
r4564 r4566 509 509 510 510 const Double_t et = mjd-epoch0; // Ellapsed time 511 return TMath::Floor(et/synmonth);511 return et/synmonth; 512 512 } 513 513 … … 533 533 // GetMagicPeriod(t.GetMjd()); 534 534 // 535 Double_t MAstro::GetMagicPeriod(Double_t mjd) 536 { 537 return GetMoonPeriod(TMath::Nint(mjd))-284; 538 } 535 Int_t MAstro::GetMagicPeriod(Double_t mjd) 536 { 537 const Double_t mmjd = (Double_t)TMath::Nint(mjd); 538 const Double_t period = GetMoonPeriod(mmjd); 539 540 return (Int_t)TMath::Floor(period)-284; 541 } -
trunk/MagicSoft/Mars/mastro/MAstro.h
r4564 r4566 58 58 static Double_t GetMoonPhase(Double_t mjd); 59 59 static Double_t GetMoonPeriod(Double_t mjd); 60 static Double_tGetMagicPeriod(Double_t mjd);60 static Int_t GetMagicPeriod(Double_t mjd); 61 61 62 62 ClassDef(MAstro, 0)
Note:
See TracChangeset
for help on using the changeset viewer.