- Timestamp:
- 06/13/12 14:25:42 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/DataCalib.cc
r14148 r14169 85 85 if (h->NPix != 1440) 86 86 { 87 fMsg.Error("Number of pixels in header for run " << GetRunId() <<" not 1440.");87 Error("Number of pixels in header for run "+to_string(GetRunId())+" not 1440."); 88 88 return false; 89 89 } … … 91 91 if (fProcessing) 92 92 { 93 fMsg.Warn("Previous DRS calibration run not yet finished (current run " << GetRunId() <<")");93 Warn("Previous DRS calibration run not yet finished (current run "+to_string(GetRunId())+")"); 94 94 return false; 95 95 } … … 97 97 if (fData.fStep==3) 98 98 { 99 fMsg.Warn("DRS Calibration already finished before current run " << GetRunId() <<"... please restart!");99 Warn("DRS Calibration already finished before current run "+to_string(GetRunId())+"... please restart!"); 100 100 return false; 101 101 } … … 105 105 ostringstream msg; 106 106 msg << "Region of interest of run " << GetRunId() << " not 1024, but " << h->Nroi << " in step " << fData.fStep << " ... as it ought to be."; 107 fMsg.Error(msg);107 Error(msg); 108 108 return false; 109 109 } … … 218 218 const size_t n = 1440*1024*4 + 1440*roi*2 + ntm*roi*2 + 3; 219 219 220 if (vec.size()!=n+1) 221 throw runtime_error("Size of vector does not match region-of-interest"); 220 // The vector has a fixed size 221 //if (vec.size()!=n+1) 222 // throw runtime_error("Size of vector does not match region-of-interest"); 222 223 223 224 ofits file(filename.c_str()); … … 265 266 { 266 267 ostringstream str; 267 str << "DRS calibration run (run=" << GetRunId() << ", step=" << fData.fStep << ", roi=" << roi << ") has 0 events.";268 str << "DRS calibration run (run=" << GetRunId() << ", step=" << fData.fStep << ", roi=" << fData.fRoi << ") has 0 events."; 268 269 Warn(str); 269 270 }
Note:
See TracChangeset
for help on using the changeset viewer.