Changeset 11818
- Timestamp:
- 08/06/11 16:38:12 (13 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/DataCalib.cc
r11810 r11818 112 112 } 113 113 114 bool DataCalib::ReadFits(const string &str )114 bool DataCalib::ReadFits(const string &str, MessageImp &msg) 115 115 { 116 116 try … … 122 122 if (file.GetStr("TELESCOP")!="FACT") 123 123 { 124 Error("Reading "+str+" failed: Not a valid FACT file (TELESCOP not FACT in header)");124 msg.Error("Reading "+str+" failed: Not a valid FACT file (TELESCOP not FACT in header)"); 125 125 return false; 126 126 } … … 128 128 if (!file.HasKey("STEP")) 129 129 { 130 Error("Reading "+str+" failed: Is not a DRS calib file (STEP not found in header)");130 msg.Error("Reading "+str+" failed: Is not a DRS calib file (STEP not found in header)"); 131 131 return false; 132 132 } … … 134 134 if (file.GetNumRows()!=1) 135 135 { 136 Error("Reading "+str+" failed: Number of rows in table is not 1.");136 msg.Error("Reading "+str+" failed: Number of rows in table is not 1."); 137 137 return false; 138 138 } … … 154 154 if (!file.GetNextRow()) 155 155 { 156 Error("Reading data from "+str+" failed.");156 msg.Error("Reading data from "+str+" failed."); 157 157 return false; 158 158 } … … 166 166 catch (const runtime_error &e) 167 167 { 168 Error("Exception reading "+str+": "+e.what());168 msg.Error("Exception reading "+str+": "+e.what()); 169 169 return false; 170 170 } -
trunk/FACT++/src/DataCalib.h
r11811 r11818 28 28 DimDescribedService &fDim; // DimService through which statistics updates are transmitted 29 29 30 bool ReadFits(const string &fname);31 30 void WriteFits(); 32 31 … … 45 44 static void Apply(int16_t *val, const int16_t *start, uint32_t roi); 46 45 static void Apply(float *vec, int16_t *val, const int16_t *start, uint32_t roi); 46 47 static bool ReadFits(const string &fname, MessageImp &msg); 47 48 }; 48 49
Note:
See TracChangeset
for help on using the changeset viewer.