~mbogomilov/maus/devel3

« back to all changes in this revision

Viewing changes to src/common_cpp/Recon/SciFi/RealDataDigitization.cc

  • Committer: Durga Rajaram
  • Date: 2014-01-14 07:07:02 UTC
  • mfrom: (659.1.80 relcand)
  • Revision ID: durga@fnal.gov-20140114070702-2l1fuj1w6rraw7xe
Tags: MAUS-v0.7.6
MAUS-v0.7.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
  bool map = load_mapping("mapping_7.txt");
39
39
  bool bad_channels = load_bad_channels();
40
40
  if ( !calib || !map || !bad_channels ) {
41
 
    throw(Squeal(Squeal::recoverable,
 
41
    throw(Exception(Exception::recoverable,
42
42
          "Could not load Tracker calibration, mapping or bad channel list.",
43
43
          "RealDataDigitization::process"));
44
44
  }
50
50
    spill->SetDAQData(new DAQData());
51
51
 
52
52
  if (spill->GetReconEvents() == NULL)
53
 
    spill->SetReconEvents(new ReconEventArray());
 
53
    spill->SetReconEvents(new ReconEventPArray());
54
54
 
55
55
  // Pick up JSON daq events.
56
56
  Json::Value tracker_event = daq["tracker1"];
271
271
  std::ifstream inf(fname.c_str());
272
272
 
273
273
  if (!inf) {
274
 
    throw(Squeal(Squeal::recoverable,
 
274
    throw(Exception(Exception::recoverable,
275
275
          "Could not load Tracker Calibration.",
276
276
          "RealDataDigitization::load_calibration"));
277
277
  }
309
309
 
310
310
  std::ifstream inf(fname.c_str());
311
311
  if (!inf) {
312
 
    throw(Squeal(Squeal::recoverable,
 
312
    throw(Exception(Exception::recoverable,
313
313
          "Could not load Tracker Mapping.",
314
314
          "RealDataDigitization::load_mapping"));
315
315
  }
369
369
 
370
370
  std::ifstream inf(fname.c_str());
371
371
  if (!inf) {
372
 
    throw(Squeal(Squeal::recoverable,
 
372
    throw(Exception(Exception::recoverable,
373
373
          "Could not load Tracker bad channel list.",
374
374
          "RealDataDigitization::load_bad_channels"));
375
375
  }