Changeset 14148
- Timestamp:
- 06/10/12 22:50:59 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/DataCalib.cc
r14075 r14148 85 85 if (h->NPix != 1440) 86 86 { 87 fMsg.Error("Number of pixels in header not 1440.");87 fMsg.Error("Number of pixels in header for run " << 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 !");93 fMsg.Warn("Previous DRS calibration run not yet finished (current run " << GetRunId() << ")"); 94 94 return false; 95 95 } … … 97 97 if (fData.fStep==3) 98 98 { 99 fMsg.Warn("DRS Calibration already finished ... please restart!");99 fMsg.Warn("DRS Calibration already finished before current run " << GetRunId() << "... please restart!"); 100 100 return false; 101 101 } … … 104 104 { 105 105 ostringstream msg; 106 msg << "Region of interest not 1024, but " << h->Nroi << " in step " << fData.fStep << " ... as it ought to be.";106 msg << "Region of interest of run " << GetRunId() << " not 1024, but " << h->Nroi << " in step " << fData.fStep << " ... as it ought to be."; 107 107 fMsg.Error(msg); 108 108 return false; … … 262 262 bool DataCalib::Close(RUN_TAIL *tail) 263 263 { 264 if (fNumEntries==0) 265 { 266 ostringstream str; 267 str << "DRS calibration run (run=" << GetRunId() << ", step=" << fData.fStep << ", roi=" << roi << ") has 0 events."; 268 Warn(str); 269 } 270 264 271 if (fData.fStep==0) 265 272 { … … 311 318 312 319 ostringstream str; 313 str << "Wrote DRS calibration data ( step=" << fData.fStep << ", roi=" << fData.fRoi << ") to '" << filename << "'";320 str << "Wrote DRS calibration data (run=" << GetRunId() << ", step=" << fData.fStep << ", roi=" << fData.fRoi << ") to '" << filename << "'"; 314 321 Info(str); 315 322 } 316 323 catch (const exception &e) 317 324 { 318 Error("Exception writing '"+filename+"': "+e.what());325 Error("Exception writing run "+to_string(GetRunId())+" '"+filename+"': "+e.what()); 319 326 } 320 327 }
Note:
See TracChangeset
for help on using the changeset viewer.