~mbogomilov/maus/devel3

« back to all changes in this revision

Viewing changes to src/common_cpp/Simulation/DetectorConstruction.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:
93
93
  SetBTMagneticField();
94
94
  _materials = fillMaterials(NULL);
95
95
  if (_materials == NULL)
96
 
    throw(Squeal(Squeal::recoverable,
 
96
    throw(MAUS::Exception(MAUS::Exception::recoverable,
97
97
                 "Failed to acquire MiceMaterials",
98
98
                 "DetectorConstruction::DetectorConstruction()"));
99
99
}
147
147
 
148
148
void DetectorConstruction::SetDatacardVariables(const Json::Value& cards) {
149
149
  if (&cards == NULL)
150
 
    throw(Squeal(Squeal::recoverable,
 
150
    throw(MAUS::Exception(MAUS::Exception::recoverable,
151
151
                 "Failed to acquire datacards",
152
152
                 "DetectorConstruction::DetectorConstruction()"));
153
153
  _maxModDepth = JsonWrapper::GetProperty
480
480
    if (!_btField->HasRF()) _stepper = new G4CashKarpRKF45(_equationM);
481
481
    else                    _stepper = new G4CashKarpRKF45(_equationE, 8);
482
482
  } else {
483
 
    throw(Squeal(Squeal::recoverable,
 
483
    throw(MAUS::Exception(MAUS::Exception::recoverable,
484
484
                "stepping_algorithm '"+_stepperType+"' not found",
485
485
                "DetectorConstruction::SetSteppingAlgorithm()"));
486
486
  }