~c-e-pidcott/maus/devel

« back to all changes in this revision

Viewing changes to src/input/InputCppDAQData/InputCppDAQData.cc

  • Committer: Chris Rogers
  • Date: 2011-12-22 17:56:36 UTC
  • mfrom: (659.1.5 release-candidate)
  • Revision ID: chris.rogers@stfc.ac.uk-20111222175636-rw9uujiup42a7gnt
Tags: MAUS-v0.1.1
ReleaseĀ 0.1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
195
195
  // Deal with exceptions
196
196
  catch(MDexception & lExc) {
197
197
    Squeak::mout(Squeak::error) << lExc.GetDescription() << std::endl
198
 
    << "*** Unpacking exception in InputCppDAQData::getCurEvent() : " << endl;
199
 
    Squeak::mout(Squeak::error) <<"DAQ Event skipped!" << endl;
 
198
    << "*** Unpacking exception in InputCppDAQData::getCurEvent() : " << std::endl;
 
199
    Squeak::mout(Squeak::error) <<"DAQ Event skipped!" << std::endl << std::endl;
200
200
    xDocSpill.clear();
201
201
    Json::Value errors;
202
202
    std::stringstream ss;
203
 
    ss << _classname << " says:" << lExc.GetDescription() << "  Phys. Event " << endl
 
203
    ss << _classname << " says:" << lExc.GetDescription() << "  Phys. Event " << std::endl
204
204
    << _dataProcessManager.GetPhysEventNumber() << " skipped!";
205
205
    errors["bad_data_input"] = ss.str();
206
206
    xDocRoot["errors"] = errors;
207
207
  }
208
208
  catch(std::exception & lExc) {
209
209
    Squeak::mout(Squeak::error) << lExc.what() << std::endl
210
 
    << "*** Standard exception in InputCppDAQData::getCurEvent() : " << endl;
211
 
    Squeak::mout(Squeak::error) <<"DAQ Event skipped!" << endl;
 
210
    << "*** Standard exception in InputCppDAQData::getCurEvent() : " << std::endl;
 
211
    Squeak::mout(Squeak::error) <<"DAQ Event skipped!" << std::endl << std::endl;
212
212
    xDocSpill.clear();
213
213
    Json::Value errors;
214
214
    std::stringstream ss;
218
218
    xDocRoot["errors"] = errors;
219
219
  }
220
220
  catch(...) {
221
 
    Squeak::mout(Squeak::error) << "InputCppDAQData::getCurEvent() : Unknown exception occurred."
222
 
    << std::endl << "DAQ Event skipped!" << std::endl;
 
221
    Squeak::mout(Squeak::error) <<
 
222
    "*** InputCppDAQData::getCurEvent() : Unknown exception occurred." << std::endl;
 
223
    Squeak::mout(Squeak::error) << "DAQ Event skipped!" << std::endl << std::endl;
223
224
    xDocSpill.clear();
224
225
    Json::Value errors;
225
226
    std::stringstream ss;