Ignore:
Timestamp:
11/12/08 13:55:31 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mbase
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbase/MTime.cc

    r9027 r9156  
    179179// --------------------------------------------------------------------------
    180180//
     181// Set the time corresponding to the moon period.
     182//
     183//   see MTime::GetMoonPeriod and MAstro::GetMoonPeriod
     184//
     185void MTime::SetMoonPeriod(Double_t p)
     186{
     187    SetMjd(MAstro::GetMoonPeriodMjd(p));
     188}
     189
     190// --------------------------------------------------------------------------
     191//
    181192// To get the moon period as defined for MAGIC observation we take the
    182193// nearest integer mjd, eg:
     
    208219}
    209220
     221// --------------------------------------------------------------------------
     222//
     223// Set the start time (noon) of a MAGIC period
     224//
     225//   see MTime::GetMagicPeriod and MAstro::GetMagicPeriod
     226//
     227void MTime::SetMagicPeriodStart(Int_t p)
     228{
     229    SetMjd(MAstro::GetMagicPeriodStart(p));
     230}
    210231
    211232// --------------------------------------------------------------------------
  • trunk/MagicSoft/Mars/mbase/MTime.h

    r8996 r9156  
    104104    void     SetMjd(Double_t m);
    105105    void     SetAxisTime(Double_t time);
     106    void     SetMoonPeriod(Double_t p);
     107    void     SetMagicPeriodStart(Int_t p);
    106108    void     SetUnixTime(Long64_t sec, ULong64_t usec=0);
    107109    void     SetEaster(Short_t year=0);
Note: See TracChangeset for help on using the changeset viewer.