Changeset 18148 for trunk/Mars
- Timestamp:
- 02/18/15 12:12:15 (10 years ago)
- Location:
- trunk/Mars/mdrs
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mdrs/MDrsCalibration.h
r18144 r18148 30 30 } 31 31 32 bool ReadFits( const TString &str)32 bool ReadFits(TString fname) 33 33 { 34 gSystem->ExpandPathName( str);34 gSystem->ExpandPathName(fname); 35 35 36 st ring msg;36 std::string msg; 37 37 try 38 38 { 39 msg = ReadFitsImp( str.Data());39 msg = ReadFitsImp(fname.Data()); 40 40 } 41 catch (const exception &e)41 catch (const std::exception &e) 42 42 { 43 43 msg = e.what(); … … 46 46 if (msg.empty()) 47 47 { 48 *fLog << inf << "Read DRS calibration file " << fname << endl;48 *fLog << inf << "Read DRS calibration file " << fname << std::endl; 49 49 return true; 50 50 } 51 51 52 *fLog << err << "Error reading from " << fname << ": " << msg << endl;52 *fLog << err << "Error reading from " << fname << ": " << msg << std::endl; 53 53 return false; 54 54 } -
trunk/Mars/mdrs/MDrsCalibrationTime.cc
r18144 r18148 49 49 } 50 50 51 bool MDrsCalibrationTime::ReadFits( const string &fname)51 bool MDrsCalibrationTime::ReadFits(TString fname) 52 52 { 53 gSystem->ExpandPathName(fname); 54 53 55 string msg; 54 56 try 55 57 { 56 msg = DrsCalibrateTime::ReadFitsImp(fname );58 msg = DrsCalibrateTime::ReadFitsImp(fname.Data()); 57 59 } 58 60 catch (const exception &e) -
trunk/Mars/mdrs/MDrsCalibrationTime.h
r18123 r18148 47 47 } 48 48 49 bool ReadFits( const std::string &fname);49 bool ReadFits(TString fname); 50 50 bool WriteFits(const std::string &fname) const; 51 51
Note:
See TracChangeset
for help on using the changeset viewer.