Ignore:
Timestamp:
09/08/04 18:49:00 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mbase
Files:
4 edited

Legend:

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

    r4601 r4889  
    5656
    5757#include <ctype.h>        // isdigit
    58 #include <fstream>        // ofstream, AsciiWrite
     58#include <fstream>        // ofstream
    5959
    6060#include <TEnv.h>         // Env::Lookup
     
    296296//  container, overload this function.
    297297//
    298 void MParContainer::AsciiRead(ifstream &fin)
     298void MParContainer::AsciiRead(istream &fin)
    299299{
    300300    *fLog << warn << "To use the the ascii input of " << GetName();
  • trunk/MagicSoft/Mars/mbase/MParContainer.h

    r4828 r4889  
    112112    Bool_t WriteDataMember(ostream &out, const TList *list) const;
    113113
    114     virtual void AsciiRead(ifstream &fin);
     114    virtual void AsciiRead(istream &fin);
    115115    virtual Bool_t AsciiWrite(ostream &out) const;
    116116
  • trunk/MagicSoft/Mars/mbase/MTime.cc

    r4887 r4889  
    170170// local time (while here we return UTC) such, that you may encounter
    171171// strange offsets. You can get rid of this by calling:
    172 //    TAxis::SetTimeFormat("[your-format] %F1995-01-01 00:00:00");
    173 //
    174 // Be carefull: It seems that root takes sommer and winter time into account!
    175 //              In some circumstances you may need
    176 //    TAxis::SetTimeFormat("[your-format] %F1995-01-00 23:00:00");
     172//    TAxis::SetTimeFormat("[your-format] %F1995-01-01 00:00:00 GMT");
    177173//
    178174Double_t MTime::GetAxisTime() const
     
    573569    fTime -= 11*kHour;
    574570}
     571
     572void MTime::Minus1ns()
     573{
     574    if (fNanoSec>0)
     575    {
     576        fNanoSec--;
     577        return;
     578    }
     579
     580    fTime -= 1;
     581    fNanoSec = 999999;
     582
     583    if ((Long_t)fTime>=-(Long_t)kDay*11)
     584        return;
     585
     586    fTime = 13*kDay-1;
     587    fMjd--;
     588}   
     589
    575590/*
    576591MTime MTime::operator-(const MTime &tm1)
     
    688703    SetMjd(mean);
    689704}
     705
     706void MTime::AsciiRead(istream &fin)
     707{
     708    fin >> *this;
     709}
     710
     711Bool_t MTime::AsciiWrite(ostream &out) const
     712{
     713    out << *this;
     714    return out;
     715}
  • trunk/MagicSoft/Mars/mbase/MTime.h

    r4887 r4889  
    118118    istream &ReadBinary(istream &fin);
    119119
     120    void AsciiRead(istream &fin);
     121    Bool_t AsciiWrite(ostream &out) const;
     122
    120123    // Conversion functions
    121124    operator double() const;   //[s]
     
    124127    // Calculation functions
    125128    void AddMilliSeconds(UInt_t ms);
     129    void Minus1ns();
    126130    void SetMean(const MTime &t0, const MTime &t1);
    127131    void SetMean(Double_t t0, Double_t t1);
Note: See TracChangeset for help on using the changeset viewer.