Changeset 4889 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 09/08/04 18:49:00 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mbase
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MParContainer.cc
r4601 r4889 56 56 57 57 #include <ctype.h> // isdigit 58 #include <fstream> // ofstream , AsciiWrite58 #include <fstream> // ofstream 59 59 60 60 #include <TEnv.h> // Env::Lookup … … 296 296 // container, overload this function. 297 297 // 298 void MParContainer::AsciiRead(i fstream &fin)298 void MParContainer::AsciiRead(istream &fin) 299 299 { 300 300 *fLog << warn << "To use the the ascii input of " << GetName(); -
trunk/MagicSoft/Mars/mbase/MParContainer.h
r4828 r4889 112 112 Bool_t WriteDataMember(ostream &out, const TList *list) const; 113 113 114 virtual void AsciiRead(i fstream &fin);114 virtual void AsciiRead(istream &fin); 115 115 virtual Bool_t AsciiWrite(ostream &out) const; 116 116 -
trunk/MagicSoft/Mars/mbase/MTime.cc
r4887 r4889 170 170 // local time (while here we return UTC) such, that you may encounter 171 171 // 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"); 177 173 // 178 174 Double_t MTime::GetAxisTime() const … … 573 569 fTime -= 11*kHour; 574 570 } 571 572 void 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 575 590 /* 576 591 MTime MTime::operator-(const MTime &tm1) … … 688 703 SetMjd(mean); 689 704 } 705 706 void MTime::AsciiRead(istream &fin) 707 { 708 fin >> *this; 709 } 710 711 Bool_t MTime::AsciiWrite(ostream &out) const 712 { 713 out << *this; 714 return out; 715 } -
trunk/MagicSoft/Mars/mbase/MTime.h
r4887 r4889 118 118 istream &ReadBinary(istream &fin); 119 119 120 void AsciiRead(istream &fin); 121 Bool_t AsciiWrite(ostream &out) const; 122 120 123 // Conversion functions 121 124 operator double() const; //[s] … … 124 127 // Calculation functions 125 128 void AddMilliSeconds(UInt_t ms); 129 void Minus1ns(); 126 130 void SetMean(const MTime &t0, const MTime &t1); 127 131 void SetMean(Double_t t0, Double_t t1);
Note:
See TracChangeset
for help on using the changeset viewer.